diff --git a/src/pages/app/AccountNavigation/LanguageMenu.svelte b/src/pages/app/AccountNavigation/LanguageMenu.svelte index 2154a28cc..ccb1bb3f3 100644 --- a/src/pages/app/AccountNavigation/LanguageMenu.svelte +++ b/src/pages/app/AccountNavigation/LanguageMenu.svelte @@ -32,10 +32,7 @@ {#if langs.length > 1} - +
diff --git a/tests/anonymous/manager/app.spec.js b/tests/anonymous/manager/app.spec.js index 41703742b..5b338d954 100644 --- a/tests/anonymous/manager/app.spec.js +++ b/tests/anonymous/manager/app.spec.js @@ -29,16 +29,16 @@ test.describe("manager tests", () => { await page.goto("/app"); // help - await page.getByText("Help ▼").click(); + await page.getByText("Help", { exact: true }).dispatchEvent("click"); await expect(page.getByRole("button", { name: "FAQ" })).toBeVisible(); // close the menu - await page.locator(".shim").click(); + await page.locator(".overlay").click(); // language - await page.getByText("Language ▼").click(); - await expect(page.getByRole("button", { name: "English ✓" })).toBeVisible(); + await page.getByText("Language", { exact: true }).dispatchEvent("click"); + await expect(page.getByRole("button", { name: "Español" })).toBeVisible(); - await page.locator(".shim").click(); + await page.locator(".overlay").click(); }); }); diff --git a/tests/anonymous/pages/home.spec.js b/tests/anonymous/pages/home.spec.js index 699c9aecc..6bc3be552 100644 --- a/tests/anonymous/pages/home.spec.js +++ b/tests/anonymous/pages/home.spec.js @@ -11,7 +11,7 @@ test("basic homepage test", async ({ page }) => { await page.getByRole("banner").getByRole("link").first().click(); // and back - await page.getByRole("link", { name: "Home" }).click(); + await page.goBack(); await expect(page).toHaveTitle("Home | DocumentCloud"); });