Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikSchmidt committed Apr 12, 2024
1 parent a9055f5 commit 82b4067
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/e2e/workTime.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ test.describe("work time form", () => {

test("should add, edit and delete work time", async ({ page }) => {
await fillWorkTimeFormAndSubmit(page, "08:00", 60, "17:00");
await expect(page.getByRole("table")).toContainText("8:00")
await expect(page.getByRole("table")).toContainText("8:00");

await clickWorkTimeButton(page, "Edit");
await page.getByLabel("Start time").fill("09:00");
await clickWorkTimeButton(page, "Update");
await expect(page.getByRole("table")).toContainText("7:00")
await expect(page.getByRole("table")).toContainText("7:00");

await clickWorkTimeButton(page, "Delete");
await expect(page.getByRole("table")).not.toContainText("7:00")
await expect(page.getByRole("table")).not.toContainText("7:00");
});

test("should be disabled after submitting, enabled after edit, disabled after cancel or update and enabled after deleting", async ({
Expand Down Expand Up @@ -74,7 +74,7 @@ test.describe("work time form", () => {

test("should function with <=6h work and no break", async ({ page }) => {
await fillWorkTimeFormAndSubmit(page, "08:00", 0, "14:00");
await expect(page.getByRole("table")).toContainText("6:00")
await expect(page.getByRole("table")).toContainText("6:00");
await clickWorkTimeButton(page, "Delete");
});

Expand Down

0 comments on commit 82b4067

Please sign in to comment.