updates #714
@ -18,7 +18,7 @@ test("cox can create and delete trip", async ({ page }) => {
|
|||||||
await expect(page.locator("body")).toContainText("18:00 Uhr (cox) Details");
|
await expect(page.locator("body")).toContainText("18:00 Uhr (cox) Details");
|
||||||
|
|
||||||
await page.goto("/planned");
|
await page.goto("/planned");
|
||||||
await page.getByRole("link", { name: "Details" }).click();
|
await page.getByRole('link', { name: 'Details' }).nth(1).click();
|
||||||
await page.getByRole("link", { name: "Termin löschen" }).click();
|
await page.getByRole("link", { name: "Termin löschen" }).click();
|
||||||
await expect(page.locator("body")).toContainText("Erfolgreich gelöscht!");
|
await expect(page.locator("body")).toContainText("Erfolgreich gelöscht!");
|
||||||
});
|
});
|
||||||
@ -52,7 +52,7 @@ test.describe("cox can edit trips", () => {
|
|||||||
|
|
||||||
test("edit remarks", async () => {
|
test("edit remarks", async () => {
|
||||||
await sharedPage.goto("/planned");
|
await sharedPage.goto("/planned");
|
||||||
await sharedPage.getByRole("link", { name: "Details" }).click();
|
await page.getByRole('link', { name: 'Details' }).nth(1).click();
|
||||||
await sharedPage.locator("#sidebar #notes").click();
|
await sharedPage.locator("#sidebar #notes").click();
|
||||||
await sharedPage.locator("#sidebar #notes").fill("Meine Anmerkung");
|
await sharedPage.locator("#sidebar #notes").fill("Meine Anmerkung");
|
||||||
await sharedPage.getByRole("button", { name: "Speichern" }).click();
|
await sharedPage.getByRole("button", { name: "Speichern" }).click();
|
||||||
@ -137,7 +137,7 @@ test.describe("cox can edit trips", () => {
|
|||||||
|
|
||||||
test.afterAll(async () => {
|
test.afterAll(async () => {
|
||||||
await sharedPage.goto("/planned");
|
await sharedPage.goto("/planned");
|
||||||
await sharedPage.getByRole("link", { name: "Details" }).click();
|
await sharedPage.getByRole('link', { name: 'Details' }).nth(1).click();
|
||||||
await sharedPage.getByRole("link", { name: "Termin löschen" }).click();
|
await sharedPage.getByRole("link", { name: "Termin löschen" }).click();
|
||||||
await sharedPage.close();
|
await sharedPage.close();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user