Использование сборника рассказов в приложении "Реакция", так как я могу определить testid для элемента сборника рассказов

Ниже приведен элемент Storybook, как можно определить test_ID для них. Может ли кто-нибудь помочь мне в этом? Ниже приведен элемент Storybook, как можно определить test_ID для них.

import { Spacings } from 'constants/layout'

import React from 'react'
import { CenteredStoriesOf } from 'storybook/helpers'
import WrapperWithTitle from 'components/atoms/wrapper-with-title'
import Spacer from 'components/atoms/spacer'

import ButtonWithRipple from './index'

CenteredStoriesOf('Atoms/Buttons', module).add('ripple', () => (
  <WrapperWithTitle title={'Buttons with ripple'}>
    <ButtonWithRipple text={'This is a button'} onPress={() => {}} />
    <Spacer height={Spacings.S} />
    <ButtonWithRipple
      text={
        'This is a button with a very long text and it is maybe even too long'
      }
      onPress={() => {}}
    />
    <Spacer height={Spacings.S} />
    <ButtonWithRipple
      text={'This is a bordered button'}
      isButtonBordered
      onPress={() => {}}
    />
  </WrapperWithTitle>
))

0 ответов

Другие вопросы по тегам