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
|
@ -57,7 +57,7 @@ const OwnBeaconStatus: React.FC<Props & HTMLProps<HTMLDivElement>> = ({ beacon,
|
|||
>
|
||||
{ownDisplayStatus === BeaconDisplayStatus.Active && (
|
||||
<AccessibleButton
|
||||
data-test-id="beacon-status-stop-beacon"
|
||||
data-testid="beacon-status-stop-beacon"
|
||||
kind="link"
|
||||
// eat events here to avoid 1) the map and 2) reply or thread tiles
|
||||
// moving under the beacon status on stop/retry click
|
||||
|
@ -70,7 +70,7 @@ const OwnBeaconStatus: React.FC<Props & HTMLProps<HTMLDivElement>> = ({ beacon,
|
|||
)}
|
||||
{hasLocationPublishError && (
|
||||
<AccessibleButton
|
||||
data-test-id="beacon-status-reset-wire-error"
|
||||
data-testid="beacon-status-reset-wire-error"
|
||||
kind="link"
|
||||
// eat events here to avoid 1) the map and 2) reply or thread tiles
|
||||
// moving under the beacon status on stop/retry click
|
||||
|
@ -82,7 +82,7 @@ const OwnBeaconStatus: React.FC<Props & HTMLProps<HTMLDivElement>> = ({ beacon,
|
|||
)}
|
||||
{hasStopSharingError && (
|
||||
<AccessibleButton
|
||||
data-test-id="beacon-status-stop-beacon-retry"
|
||||
data-testid="beacon-status-stop-beacon-retry"
|
||||
kind="link"
|
||||
// eat events here to avoid 1) the map and 2) reply or thread tiles
|
||||
// moving under the beacon status on stop/retry click
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue