Использование сборника рассказов в приложении «Реакция», так как я могу определить testid для элемента сборника рассказов - PullRequest
0 голосов
/ 31 октября 2018

Ниже приведен элемент 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>
))
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...