From 10de4e798b57e5fbdbb0a7a6aca71aaad5f8d08e Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Thu, 13 Mar 2025 06:10:09 +0200 Subject: [PATCH] client/options: fix failing test --- e2e/i18n.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e/i18n.spec.ts b/e2e/i18n.spec.ts index 1f711b060..21fd1880b 100644 --- a/e2e/i18n.spec.ts +++ b/e2e/i18n.spec.ts @@ -26,7 +26,7 @@ test("Displays translations in Settings", async ({ page, context }) => { await app.goto(); await app.closeAllTabs(); await app.goToSettings(); - await app.noteTree.getByText("Appearance").click(); + await app.noteTree.getByText("Language & Region").click(); await expect(app.currentNoteSplit).toContainText("Localization"); await expect(app.currentNoteSplit).toContainText("Language"); @@ -38,16 +38,16 @@ test("User can change language from settings", async ({ page, context }) => { await app.closeAllTabs(); await app.goToSettings(); - await app.noteTree.getByText("Appearance").click(); + await app.noteTree.getByText("Language & Region").click(); // Check that the default value (English) is set. - await expect(app.currentNoteSplit).toContainText("Theme"); + await expect(app.currentNoteSplit).toContainText("First day of the week"); const languageCombobox = app.currentNoteSplit.getByRole("combobox").first(); await expect(languageCombobox).toHaveValue("en"); // Select Chinese and ensure the translation is set. await languageCombobox.selectOption("cn"); - await expect(app.currentNoteSplit).toContainText("主题", { timeout: 15000 }); + await expect(app.currentNoteSplit).toContainText("一周的第一天", { timeout: 15000 }); await expect(languageCombobox).toHaveValue("cn"); // Select English again.