From ac9e2b19cb2c00d8455bb6c7648f950bc3658a5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 1 Feb 2023 11:05:31 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Add=20back=20two=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/playwright/specs/login.spec.js | 9 ++++----- tests/playwright/specs/settings.spec.js | 5 ++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/tests/playwright/specs/login.spec.js b/tests/playwright/specs/login.spec.js index cd8409772..924d51cee 100644 --- a/tests/playwright/specs/login.spec.js +++ b/tests/playwright/specs/login.spec.js @@ -25,20 +25,19 @@ test.describe.parallel("Successful login", async () => { await util.loginCookiesWithRememberMe(); }); - test.fixme("by keyboard", async ({page, ui, util, credentials}) => { - // TODO: this doesn't work yet + test("by keyboard", async ({page, ui, util, credentials}) => { await expect(page.getByTestId("login-username")).toBeFocused(); await page.getByTestId("login-username").type(credentials.username); - await page.getByTestId("login-username").press("Tab"); + await page.getByTestId("login-username").press("Tab"); await expect(page.getByTestId("login-password")).toBeFocused(); await page.getByTestId("login-password").type(credentials.password); - await page.getByTestId("login-password").press("Tab"); + await page.getByTestId("login-password").press("Tab"); await expect(page.getByTestId("login-remember-me")).toBeFocused(); await page.getByTestId("login-remember-me").press("Space"); - await page.getByTestId("login-remember-me").press("Tab"); + await page.getByTestId("login-remember-me").press("Tab"); await expect(page.getByTestId("login-submit")).toBeFocused(); await page.getByTestId("login-submit").press("Enter"); diff --git a/tests/playwright/specs/settings.spec.js b/tests/playwright/specs/settings.spec.js index 5cc5ec93b..060a936af 100644 --- a/tests/playwright/specs/settings.spec.js +++ b/tests/playwright/specs/settings.spec.js @@ -30,9 +30,8 @@ test.describe.parallel("Close settings", () => { await page.getByTestId("settings-dialog").press("Escape"); }); - test.fixme("via click outside", async ({page}) => { - // TODO: this doesn't work yet - await page.locator(".modal-scrollable").click(); + test("via click outside", async ({page}) => { + await page.locator(".modal-scrollable").click({position: {x: 10, y: 10}}); }); test.afterEach(async ({page}) => {