forked from tech4germany/steuerlotse
-
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.
STL-2729 | Update start page (#1007)
* STL-2729 | Update start page * STL-2729 | Remove accordion and CTA to grundsteuer on landing page * STL-2729 | Update frontend test
- Loading branch information
1 parent
99734f8
commit b8ac510
Showing
6 changed files
with
26 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
describe("Landing page", () => { | ||
it("Clicking button to eligibility check", () => { | ||
it("Clicking 1st box", () => { | ||
cy.visit("/"); | ||
// Clicking button | ||
cy.get("a").contains("Jetzt prüfen").click(); | ||
// Clicking 1st box | ||
cy.get("h2").contains("Ich bin neu hier").parent().click(); | ||
|
||
// Should redirect to first step of eligibility steps | ||
cy.url().should("include", "/eligibility/step/tax_year"); | ||
// Should redirect to retirement page | ||
cy.url().should("include", "/ende"); | ||
}); | ||
|
||
it("Clicking 2nd box", () => { | ||
cy.visit("/"); | ||
// Clicking 1st box | ||
cy.get("h2") | ||
.contains("Ich habe bereits einen Freischaltcode") | ||
.parent() | ||
.click(); | ||
|
||
// Should redirect to retirement page | ||
cy.url().should("include", "/unlock_code_activation/step/data_input"); | ||
}); | ||
}); |
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
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
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