Skip to content

Commit

Permalink
fix: e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
caichi-t committed Nov 28, 2024
1 parent 33997a4 commit 045bee6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions web/e2e/project/item/fields/markdown.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ test("Markdown field editing has succeeded", async ({ page }) => {
await page.getByRole("button", { name: "delete" }).first().click();
await expect(page.getByText("Please input field!")).toBeVisible();
await page.getByRole("button", { name: "plus New" }).click();
await page.getByRole("button", { name: "Save" }).click();
await closeNotification(page, false);
await expect(page.getByRole("button", { name: "Save" })).toBeDisabled();
await page.locator("div:nth-child(1) > .css-1ago99h").click();
await page.getByRole("textbox").fill("text");
await page.getByRole("button", { name: "plus New" }).click();
Expand Down
3 changes: 1 addition & 2 deletions web/e2e/project/item/fields/text.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ test("Text field editing has succeeded", async ({ page }) => {
await expect(page.getByText("Please input field!")).toBeVisible();
await page.getByRole("button", { name: "plus New" }).click();
await expect(page.getByText("/ 5")).toBeVisible();
await page.getByRole("button", { name: "Save" }).click();
await closeNotification(page, false);
await expect(page.getByRole("button", { name: "Save" })).toBeDisabled();
await page.getByRole("textbox").nth(0).click();
await page.getByRole("textbox").nth(0).fill("text");
await page.getByRole("button", { name: "plus New" }).click();
Expand Down
3 changes: 1 addition & 2 deletions web/e2e/project/item/fields/textarea.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ test("Textarea field editing has succeeded", async ({ page }) => {
await page.getByRole("button", { name: "delete" }).first().click();
await expect(page.getByText("Please input field!")).toBeVisible();
await page.getByRole("button", { name: "plus New" }).click();
await page.getByRole("button", { name: "Save" }).click();
await closeNotification(page, false);
await expect(page.getByRole("button", { name: "Save" })).toBeDisabled();
await page.getByRole("textbox").nth(0).click();
await page.getByRole("textbox").nth(0).fill("text");
await page.getByRole("button", { name: "plus New" }).click();
Expand Down

0 comments on commit 045bee6

Please sign in to comment.