Compare commits
No commits in common. "b3779bfefdb739908ceebfdd7d8a19e3ecd5abb8" and "5cbdb2ae6342194feab9b79ff4679016ea5d56d8" have entirely different histories.
b3779bfefd
...
5cbdb2ae63
@ -29,7 +29,7 @@ test("cox can create and delete trip", async ({ page }) => {
|
|||||||
test.describe("cox can edit trips", () => {
|
test.describe("cox can edit trips", () => {
|
||||||
let sharedPage: Page;
|
let sharedPage: Page;
|
||||||
|
|
||||||
test.beforeAll(async ({ browser }) => {
|
test.beforeEach(async ({ browser }) => {
|
||||||
const page = await browser.newPage();
|
const page = await browser.newPage();
|
||||||
|
|
||||||
await page.goto("http://localhost:8000/auth");
|
await page.goto("http://localhost:8000/auth");
|
||||||
@ -124,7 +124,7 @@ test.describe("cox can edit trips", () => {
|
|||||||
await sharedPage.goto("http://localhost:8000/planned");
|
await sharedPage.goto("http://localhost:8000/planned");
|
||||||
await sharedPage.getByRole("link", { name: "Details" }).click();
|
await sharedPage.getByRole("link", { name: "Details" }).click();
|
||||||
await expect(sharedPage.locator("#sidebar")).toContainText(
|
await expect(sharedPage.locator("#sidebar")).toContainText(
|
||||||
"Freie Plätze: 3",
|
"Freie Plätze: 5",
|
||||||
);
|
);
|
||||||
await sharedPage.getByRole("spinbutton").click();
|
await sharedPage.getByRole("spinbutton").click();
|
||||||
await sharedPage.getByRole("spinbutton").fill("0");
|
await sharedPage.getByRole("spinbutton").fill("0");
|
||||||
@ -135,7 +135,7 @@ test.describe("cox can edit trips", () => {
|
|||||||
await expect(sharedPage.locator("body")).toContainText("(Absage cox)");
|
await expect(sharedPage.locator("body")).toContainText("(Absage cox)");
|
||||||
});
|
});
|
||||||
|
|
||||||
test.afterAll(async () => {
|
test.afterEach(async () => {
|
||||||
await sharedPage.goto("http://localhost:8000/planned");
|
await sharedPage.goto("http://localhost:8000/planned");
|
||||||
await sharedPage.getByRole("link", { name: "Details" }).click();
|
await sharedPage.getByRole("link", { name: "Details" }).click();
|
||||||
await sharedPage.getByRole("link", { name: "Termin löschen" }).click();
|
await sharedPage.getByRole("link", { name: "Termin löschen" }).click();
|
||||||
|
Loading…
Reference in New Issue
Block a user