Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BRAK IdP spike related markup #38

Merged
merged 2 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,26 @@ export const meta: MetaFunction = () => {
];
};

const onBeaLoginClick = () => {
alert("beA Login with BRAK IdP");
};

export default function Index() {
return (
<main className={"flex flex-col items-center m-40"}>
<h1 className={"ds-heading-01-reg mb-40"}>
Hello Kommunikationsplattform!
<main className={"m-40 flex flex-col items-center"}>
<h1 className={"ds-heading-01-bold mb-40 break-all"}>
Kommunikationsplattform
</h1>
<h2 className={"ds-heading-03-reg break-word"}>
Willkommen auf der Pilotplattform für den digitalen Austausch zwischen
Gerichten und Verfahrensbeteiligten in Zivilprozessen vor Amtsgerichten
</h2>
<div className={"m-40 text-center"}>
<p className={"pb-20"}>Bitte wählen Sie Ihre Loginmethode:</p>
<button onClick={onBeaLoginClick} className={"ds-button"}>
beA-Portal
</button>
</div>
</main>
);
}
6 changes: 2 additions & 4 deletions tests/e2e/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ test.describe("basic example test", () => {
await expect(page).toHaveTitle("Kommunikationsplattform");
});

test("shows hello message", async ({ page }) => {
test("shows Kommunikationsplattform text", async ({ page }) => {
await page.goto("/");
await expect(
page.locator("text=Hello Kommunikationsplattform!"),
).toBeVisible();
await expect(page.locator("text=Kommunikationsplattform")).toBeVisible();
});
});