fix ci
All checks were successful
CI/CD Pipeline / test (push) Successful in 18m51s
CI/CD Pipeline / deploy-main (push) Successful in 17m56s

This commit is contained in:
2024-12-11 16:47:53 +01:00
parent caea656620
commit a5a5b1ec25
2 changed files with 6 additions and 391 deletions

View File

@@ -7,7 +7,6 @@ test("cox can create and delete trip", async ({ page }) => {
await page.getByPlaceholder("Name").press("Tab");
await page.getByPlaceholder("Passwort").fill("cox");
await page.getByPlaceholder("Passwort").press("Enter");
await page.locator('li').filter({ hasText: 'Geplante Ausfahrten' }).getByRole('link').click();
await page.locator('a[href="#"]:has-text("Ausfahrt")').first().click();
await page.locator("#sidebar #planned_starting_time").click();
await page.locator("#sidebar #planned_starting_time").fill("18:00");
@@ -17,7 +16,7 @@ test("cox can create and delete trip", async ({ page }) => {
await page.getByRole("button", { name: "Erstellen", exact: true }).click();
await expect(page.locator("body")).toContainText("18:00 Uhr (cox) Details");
await page.goto("/planned");
await page.goto("/");
await page.getByRole('link', { name: 'Details' }).nth(1).click();
await page.getByRole("link", { name: "Termin löschen" }).click();
await expect(page.locator("body")).toContainText("Erfolgreich gelöscht!");
@@ -38,7 +37,6 @@ test.describe("cox can edit trips", () => {
await page.getByPlaceholder("Name").press("Tab");
await page.getByPlaceholder("Passwort").fill("cox");
await page.getByPlaceholder("Passwort").press("Enter");
await page.locator('li').filter({ hasText: 'Geplante Ausfahrten' }).getByRole('link').click();
await page.locator('a[href="#"]:has-text("Ausfahrt")').first().click();
await page.locator("#sidebar #planned_starting_time").click();
await page.locator("#sidebar #planned_starting_time").fill("18:00");
@@ -51,7 +49,7 @@ test.describe("cox can edit trips", () => {
});
test("edit remarks", async () => {
await sharedPage.goto("/planned");
await sharedPage.goto("/");
await sharedPage.getByRole('link', { name: 'Details' }).nth(1).click();
await sharedPage.locator("#sidebar #notes").click();
await sharedPage.locator("#sidebar #notes").fill("Meine Anmerkung");
@@ -67,7 +65,7 @@ test.describe("cox can edit trips", () => {
});
test("add and remove guest", async () => {
await sharedPage.goto("/planned");
await sharedPage.goto("/");
await sharedPage.getByRole("link", { name: "Details" }).nth(1).click();
await sharedPage.locator("#sidebar #user_note").click();
await sharedPage.locator("#sidebar #user_note").fill("Mein Gast");
@@ -107,7 +105,7 @@ test.describe("cox can edit trips", () => {
});
test("change amount rower", async () => {
await sharedPage.goto("/planned");
await sharedPage.goto("/");
await sharedPage.getByRole("link", { name: "Details" }).nth(1).click();
await expect(sharedPage.locator("#sidebar")).toContainText(
"Freie Plätze: 5",
@@ -121,7 +119,7 @@ test.describe("cox can edit trips", () => {
});
test("call off trip", async () => {
await sharedPage.goto("/planned");
await sharedPage.goto("/");
await sharedPage.getByRole("link", { name: "Details" }).nth(1).click();
await expect(sharedPage.locator("#sidebar")).toContainText(
"Freie Plätze: 3",
@@ -136,7 +134,7 @@ test.describe("cox can edit trips", () => {
});
test.afterAll(async () => {
await sharedPage.goto("/planned");
await sharedPage.goto("/");
await sharedPage.getByRole('link', { name: 'Details' }).nth(1).click();
await sharedPage.getByRole("link", { name: "Termin löschen" }).click();
await sharedPage.close();