-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(reduce e2e tests against deployed app) (#1586)
Co-authored-by: Spencer Peace <47868304+Spencer6497@users.noreply.github.com> Co-authored-by: chris <christoph.hohnerlein@digitalservice.bund.de>
- Loading branch information
1 parent
ab18e5e
commit 0107594
Showing
6 changed files
with
29 additions
and
9 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
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
File renamed without changes.
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,18 @@ | ||
import { test, expect } from "@playwright/test"; | ||
import { CookieSettings } from "../domains/shared/CookieSettings"; | ||
|
||
test.describe("Data submission", () => { | ||
test("radio group value is restored", async ({ page }) => { | ||
await page.goto("/beratungshilfe/vorabcheck"); | ||
const cookieSettings = new CookieSettings(page); | ||
await cookieSettings.acceptCookieBanner(); | ||
|
||
await page.getByLabel("Ja").click(); | ||
await page.getByText("Weiter").click(); | ||
await expect( | ||
page.getByText("wahrscheinlich keine Beratungshilfe"), | ||
).toBeVisible(); | ||
await page.getByRole("link", { name: "Zurück", exact: true }).click(); | ||
await expect(page.getByLabel("Ja")).toBeChecked(); | ||
}); | ||
}); |
2 changes: 1 addition & 1 deletion
2
tests/e2e/pages/homepage.spec.ts → tests/e2e/critical/homepage.spec.ts
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
File renamed without changes.