test(e2e): i18n test broken due to button

This commit is contained in:
Elian Doran
2025-08-20 19:10:41 +03:00
parent 0754011909
commit ce19d84247
3 changed files with 5 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ test("User can change language from settings", async ({ page, context }) => {
// Select Chinese and ensure the translation is set.
await languageCombobox.selectOption("cn");
await app.currentNoteSplit.locator("button.restart-app-button").click();
await app.currentNoteSplit.locator("button[name=restart-app-button]").click();
await expect(app.currentNoteSplit).toContainText("一周的第一天", { timeout: 15000 });
await expect(languageCombobox).toHaveValue("cn");