Make test ID compatible with findByTestId() of Cypress Testing Library (#10617)
'data-test-id' is not discoverable with findByTestId() of Cypress Testing Library. Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
This commit is contained in:
parent
daad630827
commit
8a4a584ba0
11 changed files with 15 additions and 15 deletions
|
@ -71,7 +71,7 @@ const LiveDurationDropdown: React.FC<Props> = ({ timeout, onChange }) => {
|
|||
>
|
||||
{
|
||||
options.map(({ key, label }) => (
|
||||
<div data-test-id={`live-duration-option-${key}`} key={key}>
|
||||
<div data-testid={`live-duration-option-${key}`} key={key}>
|
||||
{label}
|
||||
</div>
|
||||
)) as NonEmptyArray<ReactElement & { key: string }>
|
||||
|
|
|
@ -91,7 +91,7 @@ const ShareType: React.FC<Props> = ({ setShareType, enabledShareTypes }) => {
|
|||
onClick={() => setShareType(type)}
|
||||
label={labels[type]}
|
||||
shareType={type}
|
||||
data-test-id={`share-location-option-${type}`}
|
||||
data-testid={`share-location-option-${type}`}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue