generated from digitalservicebund/remix-application-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import { expect, test } from "@playwright/test"; | ||
import { | ||
ROUTE_INTEROPERABILITY, | ||
ROUTE_PRECHECK, | ||
} from "~/resources/staticRoutes"; | ||
|
||
test.describe("test interoperabel landing page", () => { | ||
test.beforeEach("Go to interoperabel landing page", async ({ page }) => { | ||
await page.goto(ROUTE_INTEROPERABILITY.url); | ||
}); | ||
|
||
test("links to pre-check", async ({ page }) => { | ||
await page.getByRole("link", { name: "Zur Vorprüfung" }).click(); | ||
await expect(page).toHaveURL(ROUTE_PRECHECK.url); | ||
await expect(page.getByRole("main")).toContainText( | ||
"Vorprüfung: Digitalbezug einschätzen", | ||
); | ||
}); | ||
|
||
[ | ||
{ | ||
name: "Verordnung für ein interoperables Europa (EU 2024/903)", | ||
href: "https://eur-lex.europa.eu/legal-content/DE/TXT/?uri=CELEX%3A32024R0903", | ||
}, | ||
{ | ||
name: "EUR-Lex - Verordnung für ein interoperables Europa EU 2024/903", | ||
href: "https://eur-lex.europa.eu/legal-content/DE/TXT/?uri=CELEX%3A32024R0903", | ||
}, | ||
{ | ||
name: "Ressourcen auf dem Interoperable Europe Portal", | ||
href: "https://interoperable-europe.ec.europa.eu/", | ||
}, | ||
{ | ||
name: "Interoperabilitätsrahmen", | ||
href: "https://interoperable-europe.ec.europa.eu/collection/nifo-national-interoperability-framework-observatory/solution/european-interoperability-framework-eif-toolbox", | ||
}, | ||
{ | ||
name: "Richtlinien Interoperabilitätsbewertungen", | ||
href: "https://interoperable-europe.ec.europa.eu/collection/assessments/assessment-guidelines", | ||
}, | ||
{ | ||
name: "Interoperable Europe Portal - FAQs", | ||
href: "https://interoperable-europe.ec.europa.eu/interoperable-europe/faqs", | ||
}, | ||
{ | ||
name: "European Commission - European Interoperability Framework", | ||
href: "https://ec.europa.eu/isa2/eif_en/", | ||
}, | ||
{ | ||
name: "Guidelines for interoperability assessments", | ||
href: "https://interoperable-europe.ec.europa.eu/collection/assessments/assessment-guidelines", | ||
}, | ||
].forEach(({ name, href }) => { | ||
test(`link "${name}" has href "${href}"`, async ({ page }) => { | ||
const links = await page.getByRole("link", { name: name }).all(); | ||
|
||
for (const link of links) { | ||
await expect(link).toHaveAttribute("href", href); | ||
} | ||
}); | ||
}); | ||
}); |