Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mpanne committed Feb 17, 2025
1 parent 3662670 commit c6778e9
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions packages/dito/tests/e2e/general.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,21 +129,18 @@ test.describe("test error pages", () => {
await expect(page).toHaveURL(staticRoutes.ROUTE_LANDING.url);
});

test("clicking on example link on landing page leads to correct page", async ({
test("clicking on link to interoperability landing page leads to correct page", async ({
page,
}) => {
await page.goto("/");
await page.getByRole("link", { name: "Jetzt Beispiele entdecken" }).click();
await expect(
page.getByRole("heading", { name: "Beispiele für Digitaltauglichkeit" }),
).toBeInViewport();
await page
.getByRole("link", { name: "Übersicht zur Interoperabilität" })
.click();
await expect(page).toHaveURL(staticRoutes.ROUTE_INTEROPERABILITY.url);
await expect(
page.getByRole("heading", {
name: "Die 5 Prinzipien im Regelungstext",
name: "EU-Vorgaben zur Interoperabilität: Alles Wichtige für Ihre Regelung im Überblick",
}),
).toBeVisible();
await expect(
page.getByRole("heading", { name: "IT-Wissen einfach erklärt" }),
).not.toBeVisible();
).toBeInViewport();
});
});

0 comments on commit c6778e9

Please sign in to comment.