Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(e2e): wait for the create task dialog to close

Tine9c2c46ea59c
diff --git a/tests/e2e/tasks.spec.ts b/tests/e2e/tasks.spec.ts
index 9b492f585..da26ea810 100644
--- a/tests/e2e/tasks.spec.ts
+++ b/tests/e2e/tasks.spec.ts
@@ -67,6 +67,10 @@ async function createTask(page: Page, title: string) {
await page.getByTitle("Add task", { exact: true }).first().click();
await page.getByPlaceholder("Task title", { exact: true }).fill(title);
await page.getByRole("button", { name: "Create Task", exact: true }).click();
+ // The modal's title field also matches the text until the dialog closes.
+ await expect(
+ page.getByPlaceholder("Task title", { exact: true }),
+ ).toBeHidden();
await expect(page.getByText(title, { exact: true })).toBeVisible();
}