Skip to content

Commit

Permalink
this test man
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeseast committed Nov 16, 2023
1 parent 3c4282d commit 3ae110b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/anonymous/viewer/document.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ test("test", async ({ page }) => {
"/documents/20000007-finalseasonal_allergies_pollen_and_mold_2023__en";
await page.goto(url);

expect(new URL(page.url()).pathname).toBe(url);
console.log(page.url());

await expect(page.locator(".sidebar").getByRole("heading")).toHaveText(title);
expect(new URL(page.url()).pathname).toBe(url);

await page.getByRole("link", { name: "Original Document (PDF) »" }).click();

Expand All @@ -33,4 +33,6 @@ test("test", async ({ page }) => {
// switch to thumbnail view, click the first image
await page.getByRole("combobox").selectOption("thumbnail");
await page.locator("img").first().click();

await expect(page.locator(".sidebar").getByRole("heading")).toHaveText(title);
});

0 comments on commit 3ae110b

Please sign in to comment.