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

refactor(e2e test folder structure) #1464

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getBeratungshilfeParameters } from "data/pdf/beratungshilfe/beratungshilfe.generated";
import { happyPathData } from "tests/fixtures/beratungshilfeFormularData";
import { happyPathData } from "~/domains/beratungshilfe/services/pdf/__test__/beratungshilfeFormularData";

Check warning on line 2 in app/domains/beratungshilfe/services/pdf/pdfForm/__test__/header.test.ts

View workflow job for this annotation

GitHub Actions / code-quality / npm run lint

`~/domains/beratungshilfe/services/pdf/__test__/beratungshilfeFormularData` import should occur after type import of `~/domains/beratungshilfe/formular`
import { CheckboxValue } from "~/components/inputs/Checkbox";
import type { BeratungshilfeFormularContext } from "~/domains/beratungshilfe/formular";
import { gerbehAmtsgericht } from "~/services/gerichtsfinder/__test__/convertJsonDataTable.test";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint sonarjs/no-duplicate-string: 0 */
import { createMachine } from "xstate";
import { happyPathData } from "tests/fixtures/beratungshilfeVorabcheckData";
import type { TestCases } from "~/domains/__test__/TestCases";
import { happyPathData } from "~/domains/beratungshilfe/vorabcheck/__test__/beratungshilfeVorabcheckData";
import type { BeratungshilfeVorabcheckContext } from "~/domains/beratungshilfe/vorabcheck/context";
import { beratungshilfeVorabcheckXstateConfig } from "~/domains/beratungshilfe/vorabcheck/xstateConfig";
import type { FlowStateMachine } from "~/services/flow/server/buildFlowController";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {

Check warning on line 2 in app/domains/fluggastrechte/services/pdf/sections/__test__/createBankInformation.test.ts

View workflow job for this annotation

GitHub Actions / code-quality / npm run lint

`tests/factories/mockPdfKit` import should occur before import of `~/domains/fluggastrechte/services/pdf/__test__/userDataMock`
mockPdfKitDocument,
mockPdfKitDocumentStructure,
} from "tests/factories/mockPdfKit";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {

Check warning on line 2 in app/domains/fluggastrechte/services/pdf/sections/__test__/createFooter.test.ts

View workflow job for this annotation

GitHub Actions / code-quality / npm run lint

`tests/factories/mockPdfKit` import should occur before import of `~/domains/fluggastrechte/services/pdf/__test__/userDataMock`
mockPdfKitDocument,
mockPdfKitDocumentStructure,
} from "tests/factories/mockPdfKit";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {

Check warning on line 2 in app/domains/fluggastrechte/services/pdf/sections/firstPage/__test__/createFirstPage.test.ts

View workflow job for this annotation

GitHub Actions / code-quality / npm run lint

`tests/factories/mockPdfKit` import should occur before import of `~/domains/fluggastrechte/services/pdf/__test__/userDataMock`
mockPdfKitDocument,
mockPdfKitDocumentStructure,
} from "tests/factories/mockPdfKit";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {

Check warning on line 2 in app/domains/fluggastrechte/services/pdf/sections/firstPage/__test__/createFlightCompensationClaim.test.ts

View workflow job for this annotation

GitHub Actions / code-quality / npm run lint

`tests/factories/mockPdfKit` import should occur before import of `~/domains/fluggastrechte/services/pdf/__test__/userDataMock`
mockPdfKitDocument,
mockPdfKitDocumentStructure,
} from "tests/factories/mockPdfKit";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";

Check warning on line 1 in app/domains/fluggastrechte/services/pdf/sections/firstPage/__test__/createLocalCourtAndDate.test.ts

View workflow job for this annotation

GitHub Actions / code-quality / npm run lint

`~/domains/fluggastrechte/services/pdf/__test__/userDataMock` import should occur after import of `~/domains/fluggastrechte/services/getCourtByStartAndEndAirport`
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";

Check warning on line 1 in app/domains/fluggastrechte/services/pdf/sections/firstPage/__test__/createStatementClaim.test.ts

View workflow job for this annotation

GitHub Actions / code-quality / npm run lint

`~/domains/fluggastrechte/services/pdf/__test__/userDataMock` import should occur after import of `~/domains/fluggastrechte/formular/services/getTotalCompensationClaim`
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {

Check warning on line 2 in app/domains/fluggastrechte/services/pdf/sections/firstPage/claimData/__test__/addAirlineDetails.test.ts

View workflow job for this annotation

GitHub Actions / code-quality / npm run lint

`tests/factories/mockPdfKit` import should occur before import of `~/domains/fluggastrechte/services/pdf/__test__/userDataMock`
mockPdfKitDocument,
mockPdfKitDocumentStructure,
} from "tests/factories/mockPdfKit";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from "true-myth";
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userDataMock } from "tests/factories/fluggastrechte/userDataMock";
import { userDataMock } from "~/domains/fluggastrechte/services/pdf/__test__/userDataMock";
import {
mockPdfKitDocument,
mockPdfKitDocumentStructure,
Expand Down
2 changes: 1 addition & 1 deletion app/domains/geldEinklagen/vorabcheck/__test__/testcases.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint sonarjs/no-duplicate-string: 0 */
import { createMachine } from "xstate";
import { happyPathData } from "tests/fixtures/geldEinklagenVorabcheckData";
import type { TestCases } from "~/domains/__test__/TestCases";
import { happyPathData } from "~/domains/geldEinklagen/vorabcheck/__test__/geldEinklagenVorabcheckData";
import type { GeldEinklagenVorabcheckContext } from "~/domains/geldEinklagen/vorabcheck/context";
import geldEinklagenFlow from "~/domains/geldEinklagen/vorabcheck/flow.json";
import { guards } from "~/domains/geldEinklagen/vorabcheck/guards";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createMachine } from "xstate";
import { happyPathData } from "tests/fixtures/prozesskostenhilfeFormularData";
import { happyPathData } from "~/domains/prozesskostenhilfe/formular/__test__/prozesskostenhilfeFormularData";
import type { TestCases } from "~/domains/__test__/TestCases";
import {
prozesskostenhilfeFormular,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { happyPathData } from "tests/fixtures/prozesskostenhilfeFormularData";
import { happyPathData } from "~/domains/prozesskostenhilfe/formular/__test__/prozesskostenhilfeFormularData";
import { CheckboxValue } from "~/components/inputs/Checkbox";
import { finanzielleAngabeEinkuenfteGuards as guards } from "~/domains/prozesskostenhilfe/formular/finanzielleAngaben/einkuenfte/guards";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { faker } from "@faker-js/faker";
import type { ProzesskostenhilfePDF } from "data/pdf/prozesskostenhilfe/prozesskostenhilfe.generated";
import { getProzesskostenhilfeParameters } from "data/pdf/prozesskostenhilfe/prozesskostenhilfe.generated";
import { createFinancialEntry } from "tests/fixtures/prozesskostenhilfeFormularData";
import { createFinancialEntry } from "~/domains/prozesskostenhilfe/formular/__test__/prozesskostenhilfeFormularData";
import { CheckboxValue } from "~/components/inputs/Checkbox";
import { SEE_IN_ATTACHMENT_DESCRIPTION } from "~/services/pdf/attachment";
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { faker } from "@faker-js/faker";
import type { ProzesskostenhilfePDF } from "data/pdf/prozesskostenhilfe/prozesskostenhilfe.generated";
import { getProzesskostenhilfeParameters } from "data/pdf/prozesskostenhilfe/prozesskostenhilfe.generated";
import { createFinancialEntry } from "tests/fixtures/prozesskostenhilfeFormularData";
import { createFinancialEntry } from "~/domains/prozesskostenhilfe/formular/__test__/prozesskostenhilfeFormularData";
import { CheckboxValue } from "~/components/inputs/Checkbox";
import { SEE_IN_ATTACHMENT_DESCRIPTION } from "~/services/pdf/attachment";
import * as fillOutFunctions from "~/services/pdf/fillOutFunction";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { happyPathData } from "tests/fixtures/beratungshilfeFormularData";
import { happyPathData } from "~/domains/beratungshilfe/services/pdf/__test__/beratungshilfeFormularData";
import {
eigentumZusammenfassungShowPartnerschaftWarnings,
getArrayIndexStrings,
Expand Down
2 changes: 1 addition & 1 deletion doc/adr/0014-testing-strategy-assessment.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ End-to-end tests validate the application's functionality from the user's perspe
Examples:

- Navigation for content pages (e.g. `/tests/e2e/pages/beratungshilfe.spec.ts` ensures the `/beratungshilfe` page is can be accessed and navigated).
- Interactive forms (e.g. `/tests/e2e/flowPages/beratungshilfe/vorabcheck/beratungshilfe.vorabcheck.spec.ts` tests the complete traversal of the Beratungshilfe Vorabcheck flow).
- Interactive forms (e.g. `/tests/e2e/domains/beratungshilfe/vorabcheck/beratungshilfe.vorabcheck.spec.ts` tests the complete traversal of the Beratungshilfe Vorabcheck flow).
- Accessibility (e.g. `tests/e2e/pages/accessibilityScans.spec.ts` tests most of the content pages).
- Application security (e.g. `/tests/e2e/common/csrf.spec.ts`, which validates CSRF token behavior across multiple tabs).

Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/common/csrf.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test, expect } from "@playwright/test";
import { BeratungshilfeVorabcheck } from "tests/e2e/pom/BeratungshilfeVorabcheck";
import { CookieSettings } from "tests/e2e/pom/CookieSettings";
import { BeratungshilfeVorabcheck } from "tests/e2e/domains/beratungshilfe/vorabcheck/BeratungshilfeVorabcheck";
import { CookieSettings } from "tests/e2e/domains/shared/CookieSettings";
import { csrfCountMax } from "~/services/security/csrf/csrfKey";

let vorabcheck: BeratungshilfeVorabcheck;
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/common/hiddenfields.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { test, expect } from "@playwright/test";
import { BeratungshilfeVorabcheck } from "tests/e2e/pom/BeratungshilfeVorabcheck";
import { BeratungshilfeVorabcheck } from "tests/e2e/domains/beratungshilfe/vorabcheck/BeratungshilfeVorabcheck";

const nextButtonName = "_action";

Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/common/userfeedback.vorabcheck.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test, expect, type Page } from "@playwright/test";
import { BeratungshilfeVorabcheck } from "tests/e2e/pom/BeratungshilfeVorabcheck";
import { CookieSettings } from "tests/e2e/pom/CookieSettings";
import { BeratungshilfeVorabcheck } from "tests/e2e/domains/beratungshilfe/vorabcheck/BeratungshilfeVorabcheck";
import { CookieSettings } from "tests/e2e/domains/shared/CookieSettings";

let vorabcheck: BeratungshilfeVorabcheck;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Formular } from "./Formular";
import { Formular } from "tests/e2e/domains/shared/Formular";

export class BeratungshilfeFormular extends Formular {
readonly url = "/beratungshilfe/antrag";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { type Page } from "@playwright/test";
import type { BeratungshilfeFormular } from "tests/e2e/pom/BeratungshilfeFormular";
import type { BeratungshilfeFormular } from "tests/e2e/domains/beratungshilfe/formular/BeratungshilfeFormular";

export async function startAnwaltlicheVertretung(
page: Page,
beratungshilfeFormular: BeratungshilfeFormular,
) {
// beratungshilfe/antrag/anwaltliche-vertretung/start
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type Page, type Response, expect, test } from "@playwright/test";
import { BeratungshilfeFormular } from "tests/e2e/pom/BeratungshilfeFormular";
import { CookieSettings } from "tests/e2e/pom/CookieSettings";
import { BeratungshilfeFormular } from "tests/e2e/domains/beratungshilfe/formular/BeratungshilfeFormular";
import { CookieSettings } from "tests/e2e/domains/shared/CookieSettings";
import { expectPageToBeAccessible } from "tests/e2e/util/expectPageToBeAccessible";
import { startAnwaltlicheVertretung } from "./anwaltlicheVertretung";
import { startFinanzielleAngabenEinkommen } from "./finanzielleAngabenEinkommen";
Expand Down Expand Up @@ -45,9 +45,9 @@ test("beratungshilfe formular can be traversed", async ({ page }) => {
await beratungshilfeFormular.clickNext();

await startGrundvoraussetzungen(page, beratungshilfeFormular);
await startAnwaltlicheVertretung(page, beratungshilfeFormular);
await startAnwaltlicheVertretung(beratungshilfeFormular);
await startRechtsproblem(page, beratungshilfeFormular);
await startFinanzielleAngabenGrundsicherung(page, beratungshilfeFormular);
await startFinanzielleAngabenGrundsicherung(beratungshilfeFormular);
await startPersoenlicheDaten(page, beratungshilfeFormular);
await startAbgabe(page);
});
Expand All @@ -59,9 +59,9 @@ test("invalid array index redirects to initial step of subflow", async ({
await beratungshilfeFormular.clickNext();

await startGrundvoraussetzungen(page, beratungshilfeFormular);
await startAnwaltlicheVertretung(page, beratungshilfeFormular);
await startAnwaltlicheVertretung(beratungshilfeFormular);
await startRechtsproblem(page, beratungshilfeFormular);
await startFinanzielleAngabenEinkommen(page, beratungshilfeFormular);
await startFinanzielleAngabenEinkommen(beratungshilfeFormular);
await startFinanzielleAngabenPartner(beratungshilfeFormular);
await startFinanzielleAngabenKinder(page, beratungshilfeFormular);
await page.goto(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import type { Page } from "@playwright/test";
import type { BeratungshilfeFormular } from "tests/e2e/pom/BeratungshilfeFormular";
import type { BeratungshilfeFormular } from "tests/e2e/domains/beratungshilfe/formular/BeratungshilfeFormular";

export async function startFinanzielleAngabenEinkommen(
page: Page,
beratungshilfeFormular: BeratungshilfeFormular,
) {
// beratungshilfe/antrag/finanzielle-angaben/einkommen/start
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import type { Page } from "@playwright/test";
import type { BeratungshilfeFormular } from "tests/e2e/pom/BeratungshilfeFormular";
import type { BeratungshilfeFormular } from "tests/e2e/domains/beratungshilfe/formular/BeratungshilfeFormular";

export async function startFinanzielleAngabenGrundsicherung(
page: Page,
beratungshilfeFormular: BeratungshilfeFormular,
) {
// beratungshilfe/antrag/finanzielle-angaben/einkommen/start
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type Page } from "@playwright/test";
import type { BeratungshilfeFormular } from "tests/e2e/pom/BeratungshilfeFormular";
import type { BeratungshilfeFormular } from "tests/e2e/domains/beratungshilfe/formular/BeratungshilfeFormular";
import { expectPageToBeAccessible } from "tests/e2e/util/expectPageToBeAccessible";

export async function startGrundvoraussetzungen(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type Page } from "@playwright/test";
import type { BeratungshilfeFormular } from "tests/e2e/pom/BeratungshilfeFormular";
import type { BeratungshilfeFormular } from "tests/e2e/domains/beratungshilfe/formular/BeratungshilfeFormular";
import { expectPageToBeAccessible } from "tests/e2e/util/expectPageToBeAccessible";

export async function startPersoenlicheDaten(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type Page } from "@playwright/test";
import type { BeratungshilfeFormular } from "tests/e2e/pom/BeratungshilfeFormular";
import type { BeratungshilfeFormular } from "tests/e2e/domains/beratungshilfe/formular/BeratungshilfeFormular";
import { expectPageToBeAccessible } from "tests/e2e/util/expectPageToBeAccessible";

export async function startRechtsproblem(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Vorabcheck } from "./Vorabcheck";
import { Vorabcheck } from "tests/e2e/domains/shared/Vorabcheck";

export class BeratungshilfeVorabcheck extends Vorabcheck {
readonly url = "/beratungshilfe/vorabcheck";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test, expect } from "@playwright/test";
import { BeratungshilfeVorabcheck } from "tests/e2e/pom/BeratungshilfeVorabcheck";
import { CookieSettings } from "tests/e2e/pom/CookieSettings";
import { BeratungshilfeVorabcheck } from "tests/e2e/domains/beratungshilfe/vorabcheck/BeratungshilfeVorabcheck";
import { CookieSettings } from "tests/e2e/domains/shared/CookieSettings";
import { expectPageToBeAccessible } from "tests/e2e/util/expectPageToBeAccessible";

let vorabcheck: BeratungshilfeVorabcheck;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Formular } from "./Formular";
import { Formular } from "tests/e2e/domains/shared/Formular";

export class FluggastrechteFormular extends Formular {
readonly url = "/fluggastrechte/formular";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test, expect } from "@playwright/test";
import { FluggastrechteFormular } from "tests/e2e/pom/FluggastrechteFormular";
import { FluggastrechteVorabcheck } from "tests/e2e/pom/FluggastrechteVorabcheck";
import { FluggastrechteFormular } from "tests/e2e/domains/fluggastrechte/formular/FluggastrechteFormular";
import { FluggastrechteVorabcheck } from "tests/e2e/domains/fluggastrechte/vorabcheck/FluggastrechteVorabcheck";
import { startFluggastrechteFormular } from "./startFluggastrechteFormular";
import { startFluggastrechteVorabcheckVerspaetung } from "../vorabcheck/vorabcheckVerspaetung";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type Page, expect } from "@playwright/test";
import type { FluggastrechteFormular } from "tests/e2e/pom/FluggastrechteFormular";
import type { FluggastrechteFormular } from "tests/e2e/domains/fluggastrechte/formular/FluggastrechteFormular";
import { expectPageToBeAccessible } from "tests/e2e/util/expectPageToBeAccessible";
import { today, toGermanDateFormat } from "~/util/date";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Vorabcheck } from "./Vorabcheck";
import { Vorabcheck } from "tests/e2e/domains/shared/Vorabcheck";

export class FluggastrechteVorabcheck extends Vorabcheck {
readonly url = "/fluggastrechte/vorabcheck";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { test, expect } from "@playwright/test";
import { FluggastrechteVorabcheck } from "tests/e2e/domains/fluggastrechte/vorabcheck/FluggastrechteVorabcheck";
import { startFluggastrechteVorabcheckAnnullierung } from "./vorabcheckAnnullierung";
import { startFluggastrechteVorabcheckFunnelCheck } from "./vorabcheckFunnelCheck";
import { startFluggastrechteVorabcheckNichtBefoerderung } from "./vorabcheckNichtBefoerderung";
import { startFluggastrechteVorabcheckVerspaetung } from "./vorabcheckVerspaetung";
import { startFluggastrechteVorabcheckVerspaetungNoJS } from "./vorabcheckVerspaetungNoJS";
import { FluggastrechteVorabcheck } from "../../../pom/FluggastrechteVorabcheck";

let vorabcheck: FluggastrechteVorabcheck;

Expand Down
Loading
Loading