Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalabbad committed Oct 31, 2024
1 parent c181e8f commit 5f7314c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions frontend/app/tests/e2e/branches.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ test.describe("Branches creation and deletion", () => {
await page.getByTestId("branch-selector-trigger").click();
await expect(page.getByTestId("branch-list")).not.toContainText("test123");
});
});

test("allow to create a branch with a name that does not exists", async ({ page }) => {
await page.goto("/");
await page.getByTestId("branch-selector-trigger").click();
await page.getByTestId("branch-search-input").fill("quick-branch-form");
await page.getByRole("option", { name: "Create branch quick-branch-form" }).click();
await expect(page.getByLabel("New branch name *")).toHaveValue("quick-branch-form");
test("allow to create a branch with a name that does not exists", async ({ page }) => {
await page.goto("/");
await page.getByTestId("branch-selector-trigger").click();
await page.getByTestId("branch-search-input").fill("quick-branch-form");
await page.getByRole("option", { name: "Create branch quick-branch-form" }).click();
await expect(page.getByLabel("New branch name *")).toHaveValue("quick-branch-form");
});
});
});

0 comments on commit 5f7314c

Please sign in to comment.