Update tests

This commit is contained in:
thiloho
2024-09-27 17:04:29 +02:00
parent b3b499e218
commit d57753811c

View File

@@ -80,10 +80,14 @@ test.describe.serial("Website tests", () => {
test.describe.serial("Update settings", () => { test.describe.serial("Update settings", () => {
test("Global", async ({ authenticatedPage: page }) => { test("Global", async ({ authenticatedPage: page }) => {
await page.getByRole("link", { name: "Blog" }).click(); await page.getByRole("link", { name: "Blog" }).click();
await page.getByLabel("Light accent color:").click(); await page.getByLabel("Background color dark theme: ").click();
await page.getByLabel("Light accent color:").fill("#3975a2"); await page.getByLabel("Background color dark theme:").fill("#3975a2");
await page.getByLabel("Dark accent color:").click(); await page.getByLabel("Background color light theme:").click();
await page.getByLabel("Dark accent color:").fill("#41473e"); 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 page.locator("#global").getByRole("button", { name: "Submit" }).click();
await expect(page.getByText("Successfully updated global")).toBeVisible(); await expect(page.getByText("Successfully updated global")).toBeVisible();
await page.getByLabel("Favicon:").click(); await page.getByLabel("Favicon:").click();