Compare commits
No commits in common. "3c6e938949e5da134408e3584ba20e89aaef7a30" and "bb2771b41295120e3c3a301215cd4026272f57f7" have entirely different histories.
3c6e938949
...
bb2771b412
@ -52,11 +52,11 @@ 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' }).nth(1).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();
|
||||||
await sharedPage.getByRole("link", { name: "Details" }).nth(1).click();
|
await sharedPage.getByRole("link", { name: "Details" }).click();
|
||||||
await expect(sharedPage.locator("#sidebar")).toContainText(
|
await expect(sharedPage.locator("#sidebar")).toContainText(
|
||||||
"Meine Anmerkung",
|
"Meine Anmerkung",
|
||||||
);
|
);
|
||||||
@ -68,14 +68,14 @@ test.describe("cox can edit trips", () => {
|
|||||||
|
|
||||||
test("add and remove guest", async () => {
|
test("add and remove guest", async () => {
|
||||||
await sharedPage.goto("/planned");
|
await sharedPage.goto("/planned");
|
||||||
await sharedPage.getByRole("link", { name: "Details" }).nth(1).click();
|
await sharedPage.getByRole("link", { name: "Details" }).click();
|
||||||
await sharedPage.locator("#sidebar #user_note").click();
|
await sharedPage.locator("#sidebar #user_note").click();
|
||||||
await sharedPage.locator("#sidebar #user_note").fill("Mein Gast");
|
await sharedPage.locator("#sidebar #user_note").fill("Mein Gast");
|
||||||
await sharedPage.getByRole("button", { name: "Gast hinzufügen" }).click();
|
await sharedPage.getByRole("button", { name: "Gast hinzufügen" }).click();
|
||||||
await expect(sharedPage.locator("body")).toContainText(
|
await expect(sharedPage.locator("body")).toContainText(
|
||||||
"Erfolgreich angemeldet!",
|
"Erfolgreich angemeldet!",
|
||||||
);
|
);
|
||||||
await sharedPage.getByRole("link", { name: "Details" }).nth(1).click();
|
await sharedPage.getByRole("link", { name: "Details" }).click();
|
||||||
await expect(sharedPage.locator("#sidebar")).toContainText(
|
await expect(sharedPage.locator("#sidebar")).toContainText(
|
||||||
"Freie Plätze: 4",
|
"Freie Plätze: 4",
|
||||||
);
|
);
|
||||||
@ -90,7 +90,7 @@ test.describe("cox can edit trips", () => {
|
|||||||
await expect(sharedPage.locator("body")).toContainText(
|
await expect(sharedPage.locator("body")).toContainText(
|
||||||
"Erfolgreich abgemeldet!",
|
"Erfolgreich abgemeldet!",
|
||||||
);
|
);
|
||||||
await sharedPage.getByRole("link", { name: "Details" }).nth(1).click();
|
await sharedPage.getByRole("link", { name: "Details" }).click();
|
||||||
await expect(sharedPage.locator("#sidebar")).toContainText(
|
await expect(sharedPage.locator("#sidebar")).toContainText(
|
||||||
"Freie Plätze: 5",
|
"Freie Plätze: 5",
|
||||||
);
|
);
|
||||||
@ -108,7 +108,7 @@ test.describe("cox can edit trips", () => {
|
|||||||
|
|
||||||
test("change amount rower", async () => {
|
test("change amount rower", async () => {
|
||||||
await sharedPage.goto("/planned");
|
await sharedPage.goto("/planned");
|
||||||
await sharedPage.getByRole("link", { name: "Details" }).nth(1).click();
|
await sharedPage.getByRole("link", { name: "Details" }).click();
|
||||||
await expect(sharedPage.locator("#sidebar")).toContainText(
|
await expect(sharedPage.locator("#sidebar")).toContainText(
|
||||||
"Freie Plätze: 5",
|
"Freie Plätze: 5",
|
||||||
);
|
);
|
||||||
@ -122,7 +122,7 @@ test.describe("cox can edit trips", () => {
|
|||||||
|
|
||||||
test("call off trip", async () => {
|
test("call off trip", async () => {
|
||||||
await sharedPage.goto("/planned");
|
await sharedPage.goto("/planned");
|
||||||
await sharedPage.getByRole("link", { name: "Details" }).nth(1).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: 3",
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user