Skip to content

Commit

Permalink
📝 Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh committed Jan 9, 2025
1 parent db81c16 commit 7c5c238
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions aksel.nav.no/website/e2e/search.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ test.describe("Check website search", () => {
await page.getByRole("button", { name: "Søk" }).click();

/* Check that we have more than 0 "nyeste artikler" */
const artikleSection = page.getByLabel("Nyeste artikler");
expect(artikleSection).not.toBeNull();
const links = await artikleSection.locator("li").all();
const articleSection = page.getByLabel("Nyeste artikler");
expect(articleSection).not.toBeNull();
const links = await articleSection.locator("li").all();

expect(links.length).toBeGreaterThan(0);
});
Expand All @@ -24,10 +24,10 @@ test.describe("Check website search", () => {
await page.getByPlaceholder("Søk på artikler, f.eks. Button").fill("link");

/* Check that we have more than 0 search-results */
const artikleSection = page.getByLabel("Søkeresultater");
const articleSection = page.getByLabel("Søkeresultater");
await page.waitForTimeout(1000);
expect(artikleSection).not.toBeNull();
const links = await artikleSection.locator("li").all();
expect(articleSection).not.toBeNull();
const links = await articleSection.locator("li").all();

expect(links.length).toBeGreaterThan(0);
});
Expand Down

0 comments on commit 7c5c238

Please sign in to comment.