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:
Suguru Hirahara 2023-04-17 06:10:11 +00:00 committed by GitHub
parent daad630827
commit 8a4a584ba0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 15 additions and 15 deletions

View file

@ -65,14 +65,14 @@ exports[`<BeaconViewDialog /> renders own beacon status when user is live sharin
</span>
<span
class="mx_LiveTimeRemaining"
data-test-id="room-live-share-expiry"
data-testid="room-live-share-expiry"
>
1h left
</span>
</div>
<div
class="mx_AccessibleButton mx_OwnBeaconStatus_button mx_OwnBeaconStatus_destructiveButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_link"
data-test-id="beacon-status-stop-beacon"
data-testid="beacon-status-stop-beacon"
role="button"
tabindex="0"
>

View file

@ -15,7 +15,7 @@ exports[`<RoomLiveShareWarning /> when user has live beacons and geolocation is
</span>
<span
class="mx_LiveTimeRemaining"
data-test-id="room-live-share-expiry"
data-testid="room-live-share-expiry"
>
1h left
</span>
@ -46,7 +46,7 @@ exports[`<RoomLiveShareWarning /> when user has live beacons and geolocation is
</span>
<span
class="mx_LiveTimeRemaining"
data-test-id="room-live-share-expiry"
data-testid="room-live-share-expiry"
>
12h left
</span>

View file

@ -2,7 +2,7 @@
exports[`LocationPicker <LocationPicker /> for Live location share type updates selected duration 1`] = `
<div
data-test-id="live-duration-option-3600000"
data-testid="live-duration-option-3600000"
>
Share for 1h
</div>