diff --git a/e2e/support/helpers/e2e-ui-elements-helpers.js b/e2e/support/helpers/e2e-ui-elements-helpers.js index 0bcdacfa9c099..043b96fa0aec6 100644 --- a/e2e/support/helpers/e2e-ui-elements-helpers.js +++ b/e2e/support/helpers/e2e-ui-elements-helpers.js @@ -64,7 +64,7 @@ export function closeNavigationSidebar() { appBar().findByTestId("sidebar-toggle").click(); } -export function browse() { +export function browseData() { return navigationSidebar().findByLabelText("Browse data"); } diff --git a/e2e/test/scenarios/question/settings.cy.spec.js b/e2e/test/scenarios/question/settings.cy.spec.js index 977eda7df8b28..fcb5dded990a0 100644 --- a/e2e/test/scenarios/question/settings.cy.spec.js +++ b/e2e/test/scenarios/question/settings.cy.spec.js @@ -1,7 +1,7 @@ import { SAMPLE_DB_ID } from "e2e/support/cypress_data"; import { SAMPLE_DATABASE } from "e2e/support/cypress_sample_database"; import { - browse, + browseData, restore, openOrdersTable, openNavigationSidebar, @@ -455,8 +455,8 @@ describe("scenarios > question > settings", () => { // create a new question to see if the "add to a dashboard" modal is still there openNavigationSidebar(); - browse().click(); - cy.findByRole("tab", { name: "Databases" }).click(); + browseData().click(); + // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage cy.contains("Sample Database").click(); // eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage