Skip to content

Commit

Permalink
Fixes Playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Nov 22, 2023
1 parent 276238c commit b66d9f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions tests/anonymous/manager/app.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ test.describe("manager tests", () => {
await page.goto("/app");

// help
await page.getByText("Help").click();
await page.getByText("Help").click();
await expect(page.getByRole("button", { name: "FAQ" })).toBeVisible();

// close the menu
await page.locator(".shim").click();
await page.locator(".overlay").click();

// language
await page.getByText("Language").click();
await expect(page.getByRole("button", { name: "English" })).toBeVisible();
await page.getByText("Language").click();
await expect(page.getByRole("button", { name: "English" })).toBeVisible();

await page.locator(".shim").click();
await page.locator(".overlay").click();
});
});
2 changes: 1 addition & 1 deletion tests/anonymous/pages/home.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test("basic homepage test", async ({ page }) => {
await page.getByRole("banner").getByRole("link").first().click();

// and back
await page.getByRole("link", { name: "Home" }).click();
await page.goBack();

await expect(page).toHaveTitle("Home | DocumentCloud");
});

0 comments on commit b66d9f9

Please sign in to comment.