Skip to content

Commit

Permalink
feat(fluggastrechte-flow): add start page to vorabcheck
Browse files Browse the repository at this point in the history
Co-authored-by: chris <[email protected]>
Co-authored-by: Joschka de Cuveland <[email protected]>
Co-authored-by: Pram Gurusinga <[email protected]>
Co-authored-by: Sanny Nguyen Hung <[email protected]>
  • Loading branch information
5 people committed Jan 29, 2024
1 parent c9242e4 commit 082ed18
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 15 deletions.
35 changes: 21 additions & 14 deletions app/models/flows/fluggastrechte/config.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -24,7 +31,7 @@
}
},
"fluggesellschaft": {
"meta": { "progressPosition": 2 },
"meta": { "progressPosition": 3 },
"on": {
"BACK": "flughaefen",
"SUBMIT": [
Expand All @@ -44,7 +51,7 @@
}
},
"bereich": {
"meta": { "progressPosition": 3 },
"meta": { "progressPosition": 4 },
"on": {
"BACK": "fluggesellschaft",
"SUBMIT": [
Expand All @@ -64,7 +71,7 @@
}
},
"verspaetung": {
"meta": { "progressPosition": 4 },
"meta": { "progressPosition": 5 },
"on": {
"BACK": "bereich",
"SUBMIT": [
Expand All @@ -84,7 +91,7 @@
}
},
"checkin": {
"meta": { "progressPosition": 5 },
"meta": { "progressPosition": 6 },
"on": {
"BACK": "verspaetung",
"SUBMIT": [
Expand All @@ -104,7 +111,7 @@
}
},
"gruende": {
"meta": { "progressPosition": 6 },
"meta": { "progressPosition": 7 },
"on": {
"BACK": "checkin",
"SUBMIT": [
Expand All @@ -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": [
Expand All @@ -148,7 +155,7 @@
}
},
"gericht": {
"meta": { "progressPosition": 9 },
"meta": { "progressPosition": 10 },
"on": {
"BACK": "entschaedigung",
"SUBMIT": [
Expand All @@ -169,7 +176,7 @@
}
},
"abtretung": {
"meta": { "progressPosition": 10 },
"meta": { "progressPosition": 11 },
"on": {
"BACK": "gericht",
"SUBMIT": [
Expand All @@ -190,7 +197,7 @@
}
},
"kostenlos": {
"meta": { "progressPosition": 11 },
"meta": { "progressPosition": 12 },
"on": {
"BACK": "abtretung",
"SUBMIT": [
Expand All @@ -210,7 +217,7 @@
}
},
"rabatt": {
"meta": { "progressPosition": 12 },
"meta": { "progressPosition": 13 },
"on": {
"BACK": "kostenlos",
"SUBMIT": [
Expand All @@ -231,7 +238,7 @@
}
},
"buchung": {
"meta": { "progressPosition": 13 },
"meta": { "progressPosition": 14 },
"on": {
"BACK": "rabatt",
"SUBMIT": [
Expand Down
3 changes: 3 additions & 0 deletions tests/e2e/fluggastrechte.vorabcheck.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/pom/FluggastrechteVorabcheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

0 comments on commit 082ed18

Please sign in to comment.