fix(e2e): flaky test due to timeout

This commit is contained in:
Elian Doran 2025-01-13 17:46:57 +02:00
parent b69cad2298
commit 093f9d60f0
No known key found for this signature in database

View File

@ -49,9 +49,9 @@ test("User can change language from settings", async ({ page, context }) => {
// Select Chinese and ensure the translation is set. // Select Chinese and ensure the translation is set.
await languageCombobox.selectOption("cn"); await languageCombobox.selectOption("cn");
await expect(app.currentNoteSplit).toContainText("主题"); await expect(app.currentNoteSplit).toContainText("主题", { timeout: 15000 });
// Select English again. // Select English again.
await languageCombobox.selectOption("en"); await languageCombobox.selectOption("en");
await expect(app.currentNoteSplit).toContainText("Language"); await expect(app.currentNoteSplit).toContainText("Language", { timeout: 15000 });
}); });