diff --git a/frontend/tests/log.spec.ts b/frontend/tests/log.spec.ts index b13c1ed..802de5f 100644 --- a/frontend/tests/log.spec.ts +++ b/frontend/tests/log.spec.ts @@ -109,7 +109,7 @@ 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("Vorstandsmitglied"); + await page.getByPlaceholder("Name").fill("main"); await page.getByPlaceholder("Name").press("Tab"); await page.getByPlaceholder("Passwort").fill("rower"); await page.getByPlaceholder("Passwort").press("Enter"); @@ -219,7 +219,7 @@ 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("Vorstandsmitglied"); + await page.getByPlaceholder("Name").fill("main"); await page.getByPlaceholder("Name").press("Tab"); await page.getByPlaceholder("Passwort").fill("rower"); await page.getByPlaceholder("Passwort").press("Enter"); @@ -296,7 +296,7 @@ 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("Vorstandsmitglied"); + await page.getByPlaceholder("Name").fill("main"); await page.getByPlaceholder("Name").press("Tab"); await page.getByPlaceholder("Passwort").fill("rower"); await page.getByPlaceholder("Passwort").press("Enter"); @@ -365,7 +365,7 @@ 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("Vorstandsmitglied"); + await page.getByPlaceholder("Name").fill("main"); await page.getByPlaceholder("Name").press("Tab"); await page.getByPlaceholder("Passwort").fill("rower"); await page.getByPlaceholder("Passwort").press("Enter"); diff --git a/seeds.sql b/seeds.sql index 98b51be..d89090a 100644 --- a/seeds.sql +++ b/seeds.sql @@ -37,7 +37,12 @@ INSERT INTO "user_role" (user_id, role_id) VALUES(8,5); INSERT INTO "user_role" (user_id, role_id) VALUES(8,7); INSERT INTO "user" (name, pw) VALUES('Vorstandsmitglied', '$argon2id$v=19$m=19456,t=2,p=1$dS/X5/sPEKTj4Rzs/CuvzQ$jWKzDmI0jqT2dqINFt6/1NjVF4Dx15n07PL1ZMBmFsY'); INSERT INTO "user_role" (user_id, role_id) VALUES(9,5); -INSERT INTO "user_role" (user_id, role_id) VALUES(9,9); +INSERT INTO "user" (name, pw) VALUES('main', '$argon2id$v=19$m=19456,t=2,p=1$dS/X5/sPEKTj4Rzs/CuvzQ$4P4NCw4Ukhv80/eQYTsarHhnw61JuL1KMx/L9dm82YM'); +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 "trip_details" (planned_starting_time, max_people, day, notes) VALUES('10:00', 2, '1970-01-01', 'trip_details for a planned event'); INSERT INTO "planned_event" (name, planned_amount_cox, trip_details_id) VALUES('test-planned-event', 2, 1);