From d57753811cd84dce3356304860a826b064df9be0 Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Fri, 27 Sep 2024 17:04:29 +0200 Subject: [PATCH] Update tests --- web-app/tests/website.spec.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/web-app/tests/website.spec.ts b/web-app/tests/website.spec.ts index 1cbcf4d..211dd71 100644 --- a/web-app/tests/website.spec.ts +++ b/web-app/tests/website.spec.ts @@ -80,10 +80,14 @@ test.describe.serial("Website tests", () => { test.describe.serial("Update settings", () => { test("Global", async ({ authenticatedPage: page }) => { await page.getByRole("link", { name: "Blog" }).click(); - await page.getByLabel("Light accent color:").click(); - await page.getByLabel("Light accent color:").fill("#3975a2"); - await page.getByLabel("Dark accent color:").click(); - await page.getByLabel("Dark accent color:").fill("#41473e"); + await page.getByLabel("Background color dark theme: ").click(); + await page.getByLabel("Background color dark theme:").fill("#3975a2"); + await page.getByLabel("Background color light theme:").click(); + await page.getByLabel("Background color light theme:").fill("#41473e"); + await page.getByLabel("Accent color dark theme: ").click(); + await page.getByLabel("Accent color dark theme:").fill("#3975a2"); + await page.getByLabel("Accent color light theme:").click(); + await page.getByLabel("Accent color light theme:").fill("#41473e"); await page.locator("#global").getByRole("button", { name: "Submit" }).click(); await expect(page.getByText("Successfully updated global")).toBeVisible(); await page.getByLabel("Favicon:").click();