From e85b7f5e79662680c8f39080649419004a491eb8 Mon Sep 17 00:00:00 2001 From: --global Date: Wed, 26 Mar 2025 18:56:28 +0200 Subject: [PATCH 1/2] chore(vscode): add playwright to recommendations --- .vscode/extensions.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 5eb23aafc..1eeb900b2 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -2,6 +2,7 @@ "recommendations": [ "lokalise.i18n-ally", "editorconfig.editorconfig", - "vitest.explorer" + "vitest.explorer", + "ms-playwright.playwright" ] } From fd0018677c95665f876205e13e757b32fa5b521f Mon Sep 17 00:00:00 2001 From: --global Date: Wed, 26 Mar 2025 19:11:07 +0200 Subject: [PATCH 2/2] test(i18n): add refresh button click after language change --- e2e/i18n.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/e2e/i18n.spec.ts b/e2e/i18n.spec.ts index 21fd1880b..0124f271b 100644 --- a/e2e/i18n.spec.ts +++ b/e2e/i18n.spec.ts @@ -47,6 +47,10 @@ test("User can change language from settings", async ({ page, context }) => { // Select Chinese and ensure the translation is set. await languageCombobox.selectOption("cn"); + + // Press the refresh button. + await app.currentNoteSplit.getByRole("button", { name: "Restart the application" }).click(); + await expect(app.currentNoteSplit).toContainText("一周的第一天", { timeout: 15000 }); await expect(languageCombobox).toHaveValue("cn");