verify, that boat is not on water on adding log entry; Fixes #625 #696

Merged
philipp merged 10 commits from boat-water-check into staging 2024-08-21 17:05:38 +02:00
2 changed files with 10 additions and 5 deletions
Showing only changes of commit b9b81ea46c - Show all commits

View File

@ -109,7 +109,7 @@ test("Cox can start and finish trip", async ({ page }, testInfo) => {
await page.getByRole('link', { name: 'Ausloggen' }).click(); await page.getByRole('link', { name: 'Ausloggen' }).click();
// Login as admin // Login as admin
await page.getByPlaceholder("Name").click(); 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("Name").press("Tab");
await page.getByPlaceholder("Passwort").fill("rower"); await page.getByPlaceholder("Passwort").fill("rower");
await page.getByPlaceholder("Passwort").press("Enter"); await page.getByPlaceholder("Passwort").press("Enter");
@ -219,7 +219,7 @@ test("Kiosk can start and finish trip", async ({ page }, testInfo) => {
await page.goto("/auth"); await page.goto("/auth");
// Login as admin // Login as admin
await page.getByPlaceholder("Name").click(); 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("Name").press("Tab");
await page.getByPlaceholder("Passwort").fill("rower"); await page.getByPlaceholder("Passwort").fill("rower");
await page.getByPlaceholder("Passwort").press("Enter"); 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(); await page.getByRole('link', { name: 'Ausloggen' }).click();
// Login as admin // Login as admin
await page.getByPlaceholder("Name").click(); 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("Name").press("Tab");
await page.getByPlaceholder("Passwort").fill("rower"); await page.getByPlaceholder("Passwort").fill("rower");
await page.getByPlaceholder("Passwort").press("Enter"); 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"); await page.goto("/auth");
// Login as admin // Login as admin
await page.getByPlaceholder("Name").click(); 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("Name").press("Tab");
await page.getByPlaceholder("Passwort").fill("rower"); await page.getByPlaceholder("Passwort").fill("rower");
await page.getByPlaceholder("Passwort").press("Enter"); await page.getByPlaceholder("Passwort").press("Enter");

View File

@ -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_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" (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,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 "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); INSERT INTO "planned_event" (name, planned_amount_cox, trip_details_id) VALUES('test-planned-event', 2, 1);