diff --git a/app/models/flows/fluggastrechte/config.json b/app/models/flows/fluggastrechte/config.json index fadc04e87..494bb7b4e 100644 --- a/app/models/flows/fluggastrechte/config.json +++ b/app/models/flows/fluggastrechte/config.json @@ -1,11 +1,18 @@ { "predictableActionArguments": true, "id": "/fluggastrechte/vorabcheck/", - "initial": "flughaefen", + "initial": "start", "states": { - "flughaefen": { + "start": { "meta": { "progressPosition": 1 }, "on": { + "SUBMIT": "flughaefen" + } + }, + "flughaefen": { + "meta": { "progressPosition": 2 }, + "on": { + "BACK": "start", "SUBMIT": [ { "target": "fluggesellschaft", @@ -24,7 +31,7 @@ } }, "fluggesellschaft": { - "meta": { "progressPosition": 2 }, + "meta": { "progressPosition": 3 }, "on": { "BACK": "flughaefen", "SUBMIT": [ @@ -44,7 +51,7 @@ } }, "bereich": { - "meta": { "progressPosition": 3 }, + "meta": { "progressPosition": 4 }, "on": { "BACK": "fluggesellschaft", "SUBMIT": [ @@ -64,7 +71,7 @@ } }, "verspaetung": { - "meta": { "progressPosition": 4 }, + "meta": { "progressPosition": 5 }, "on": { "BACK": "bereich", "SUBMIT": [ @@ -84,7 +91,7 @@ } }, "checkin": { - "meta": { "progressPosition": 5 }, + "meta": { "progressPosition": 6 }, "on": { "BACK": "verspaetung", "SUBMIT": [ @@ -104,7 +111,7 @@ } }, "gruende": { - "meta": { "progressPosition": 6 }, + "meta": { "progressPosition": 7 }, "on": { "BACK": "checkin", "SUBMIT": [ @@ -120,14 +127,14 @@ } }, "gruende-hinweis": { - "meta": { "progressPosition": 7 }, + "meta": { "progressPosition": 8 }, "on": { "BACK": "gruende", "SUBMIT": "entschaedigung" } }, "entschaedigung": { - "meta": { "progressPosition": 8 }, + "meta": { "progressPosition": 9 }, "on": { "BACK": "gruende", "SUBMIT": [ @@ -148,7 +155,7 @@ } }, "gericht": { - "meta": { "progressPosition": 9 }, + "meta": { "progressPosition": 10 }, "on": { "BACK": "entschaedigung", "SUBMIT": [ @@ -169,7 +176,7 @@ } }, "abtretung": { - "meta": { "progressPosition": 10 }, + "meta": { "progressPosition": 11 }, "on": { "BACK": "gericht", "SUBMIT": [ @@ -190,7 +197,7 @@ } }, "kostenlos": { - "meta": { "progressPosition": 11 }, + "meta": { "progressPosition": 12 }, "on": { "BACK": "abtretung", "SUBMIT": [ @@ -210,7 +217,7 @@ } }, "rabatt": { - "meta": { "progressPosition": 12 }, + "meta": { "progressPosition": 13 }, "on": { "BACK": "kostenlos", "SUBMIT": [ @@ -231,7 +238,7 @@ } }, "buchung": { - "meta": { "progressPosition": 13 }, + "meta": { "progressPosition": 14 }, "on": { "BACK": "rabatt", "SUBMIT": [ diff --git a/tests/e2e/fluggastrechte.vorabcheck.spec.ts b/tests/e2e/fluggastrechte.vorabcheck.spec.ts index 728004d38..c196263be 100644 --- a/tests/e2e/fluggastrechte.vorabcheck.spec.ts +++ b/tests/e2e/fluggastrechte.vorabcheck.spec.ts @@ -16,6 +16,9 @@ test("forwarded to intial step", async ({ page }) => { }); test("geldeinklagen can be traversed", async ({ page }) => { + await expectPageToBeAccessible({ page }); + await vorabcheck.clickNext(); + await expectPageToBeAccessible({ page }); await vorabcheck.fillMultipleInputPage([ { field: "startAirport", value: "BER" }, diff --git a/tests/e2e/pom/FluggastrechteVorabcheck.ts b/tests/e2e/pom/FluggastrechteVorabcheck.ts index 67e4be97a..592ee765f 100644 --- a/tests/e2e/pom/FluggastrechteVorabcheck.ts +++ b/tests/e2e/pom/FluggastrechteVorabcheck.ts @@ -2,5 +2,5 @@ import { Vorabcheck } from "tests/e2e/pom/Vorabcheck"; export class FluggastrechteVorabcheck extends Vorabcheck { readonly url = "/fluggastrechte/vorabcheck"; - readonly initialStep = "flughaefen"; + readonly initialStep = "start"; }