diff --git a/integration/__tests__/app-preferences.tests.ts b/integration/__tests__/app-preferences.tests.ts index 6c0c8fd65b..e5cca7c19c 100644 --- a/integration/__tests__/app-preferences.tests.ts +++ b/integration/__tests__/app-preferences.tests.ts @@ -24,8 +24,8 @@ describe("preferences page tests", () => { await app.evaluate(async ({ app }) => { await app.applicationMenu - .getMenuItemById(process.platform === "darwin" ? "root" : "file") - .submenu.getMenuItemById("preferences") + .getMenuItemById(process.platform === "darwin" ? "mac" : "file") + .submenu.getMenuItemById("navigate-to-preferences") .click(); }); }, 10*60*1000); @@ -37,7 +37,7 @@ describe("preferences page tests", () => { it('shows "preferences" and can navigate through the tabs', async () => { const pages = [ { - id: "application", + id: "app", header: "Application", }, { @@ -51,8 +51,8 @@ describe("preferences page tests", () => { ]; for (const { id, header } of pages) { - await window.click(`[data-testid=tab-link-for-${id}]`); - await window.waitForSelector(`[data-testid=${id}-header] >> text=${header}`); + await window.click(`[data-preference-tab-link-test=${id}]`); + await window.waitForSelector(`[data-preference-page-title-test] >> text=${header}`); } }, 10*60*1000);