From 54085f3f13fcd625517981ede6ebc2a1f9d26641 Mon Sep 17 00:00:00 2001 From: philipp Date: Mon, 19 Aug 2024 16:29:50 +0200 Subject: [PATCH] fix seeds (again) --- frontend/tests/log.spec.ts | 16 ++++++++-------- seeds.sql | 1 - 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/frontend/tests/log.spec.ts b/frontend/tests/log.spec.ts index dad2e03..b13c1ed 100644 --- a/frontend/tests/log.spec.ts +++ b/frontend/tests/log.spec.ts @@ -109,9 +109,9 @@ test("Cox can start and finish trip", async ({ page }, testInfo) => { await page.getByRole('link', { name: 'Ausloggen' }).click(); // Login as admin await page.getByPlaceholder("Name").click(); - await page.getByPlaceholder("Name").fill("admin"); + await page.getByPlaceholder("Name").fill("Vorstandsmitglied"); await page.getByPlaceholder("Name").press("Tab"); - await page.getByPlaceholder("Passwort").fill("admin"); + await page.getByPlaceholder("Passwort").fill("rower"); await page.getByPlaceholder("Passwort").press("Enter"); await page.goto("/log/show"); @@ -219,9 +219,9 @@ test("Kiosk can start and finish trip", async ({ page }, testInfo) => { await page.goto("/auth"); // Login as admin await page.getByPlaceholder("Name").click(); - await page.getByPlaceholder("Name").fill("admin"); + await page.getByPlaceholder("Name").fill("Vorstandsmitglied"); await page.getByPlaceholder("Name").press("Tab"); - await page.getByPlaceholder("Passwort").fill("admin"); + await page.getByPlaceholder("Passwort").fill("rower"); await page.getByPlaceholder("Passwort").press("Enter"); await page.goto("/log/show"); @@ -296,9 +296,9 @@ test("Cox can start and finish trip with cox steering only", async ({ page }, te await page.getByRole('link', { name: 'Ausloggen' }).click(); // Login as admin await page.getByPlaceholder("Name").click(); - await page.getByPlaceholder("Name").fill("admin"); + await page.getByPlaceholder("Name").fill("Vorstandsmitglied"); await page.getByPlaceholder("Name").press("Tab"); - await page.getByPlaceholder("Passwort").fill("admin"); + await page.getByPlaceholder("Passwort").fill("rower"); await page.getByPlaceholder("Passwort").press("Enter"); await page.goto("/log/show"); @@ -365,9 +365,9 @@ test("Kiosk can start and finish trip in one stop", async ({ page }, testInfo) = await page.goto("/auth"); // Login as admin await page.getByPlaceholder("Name").click(); - await page.getByPlaceholder("Name").fill("admin"); + await page.getByPlaceholder("Name").fill("Vorstandsmitglied"); await page.getByPlaceholder("Name").press("Tab"); - await page.getByPlaceholder("Passwort").fill("admin"); + await page.getByPlaceholder("Passwort").fill("rower"); await page.getByPlaceholder("Passwort").press("Enter"); await page.goto("/log/show"); diff --git a/seeds.sql b/seeds.sql index 540d77e..98b51be 100644 --- a/seeds.sql +++ b/seeds.sql @@ -16,7 +16,6 @@ INSERT INTO "user_role" (user_id, role_id) VALUES(1,1); INSERT INTO "user_role" (user_id, role_id) VALUES(1,2); INSERT INTO "user_role" (user_id, role_id) VALUES(1,5); INSERT INTO "user_role" (user_id, role_id) VALUES(1,6); -INSERT INTO "user_role" (user_id, role_id) VALUES(1,9); INSERT INTO "user" (name, pw) VALUES('rower', '$argon2id$v=19$m=19456,t=2,p=1$dS/X5/sPEKTj4Rzs/CuvzQ$jWKzDmI0jqT2dqINFt6/1NjVF4Dx15n07PL1ZMBmFsY'); INSERT INTO "user_role" (user_id, role_id) VALUES(2,5); INSERT INTO "user" (name, pw) VALUES('guest', '$argon2id$v=19$m=19456,t=2,p=1$dS/X5/sPEKTj4Rzs/CuvzQ$GF6gizbI79Bh0zA9its8S0gram956v+YIV8w8VpwJnQ');