Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 9c50d22

Browse files
author
Kerry Archibald
committed
findByTestId
1 parent 2bacc8f commit 9c50d22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cypress/e2e/settings/preferences-user-settings-tab.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ describe("Preferences user settings tab", () => {
3535
it("should be rendered properly", () => {
3636
cy.openUserSettings("Preferences");
3737

38-
cy.get("[data-testid='mx_PreferencesUserSettingsTab']").within(() => {
38+
cy.findByTestId("mx_PreferencesUserSettingsTab").within(() => {
3939
// Assert that the top heading is rendered
4040
cy.contains("Preferences").should("be.visible");
4141
});
4242

43-
cy.get("[data-testid='mx_PreferencesUserSettingsTab']").percySnapshotElement(
43+
cy.findByTestId("mx_PreferencesUserSettingsTab").percySnapshotElement(
4444
"User settings tab - Preferences",
4545
{
4646
// Emulate TabbedView's actual min and max widths

0 commit comments

Comments
 (0)