Skip to content

Commit

Permalink
Address flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mpanne committed Jan 22, 2025
1 parent 3d03f5b commit 63f4f70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dito/tests/e2e/examplePages.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ test.describe("Digitaltauglichkeit main functionality", () => {
const url = `${ROUTE_PRINCIPLES.url}/${principle}`;
await page.goto(url);

const mainContent = page.getByRole("main");
const mainContent = page.locator("main");
await mainContent.waitFor();
await expect(mainContent).toContainText(
`Prinzip ${principles.indexOf(principle) + 1} in Regelungstexten`,
);
Expand All @@ -32,7 +33,6 @@ test.describe("Digitaltauglichkeit main functionality", () => {
}) => {
const url = `${ROUTE_PRINCIPLES.url}/${principle}`;
await page.goto(url);
await page.locator("main").waitFor();

const nextPrincipleIndex = principles.indexOf(principle) + 1;
if (nextPrincipleIndex < principles.length) {
Expand Down

0 comments on commit 63f4f70

Please sign in to comment.