-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
60 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
describe("custom login page", { scrollBehavior: "center" }, () => { | ||
beforeEach(() => { | ||
cy.clearIndexedDB(); | ||
cy.intercept("/**", (req) => { | ||
req.headers["x-automated-test"] = Cypress.env("DEPLOYING"); | ||
}); | ||
}); | ||
|
||
it("has a flash banner at the top with a link to a feedback survey", () => { | ||
cy.viewport("macbook-15"); | ||
cy.visit("/login"); | ||
cy.checkFlashBanner(); | ||
}); | ||
|
||
it("shows feedback form in modal when clicking feedback link in flash banner", () => { | ||
// feedback link is in banner | ||
cy.viewport("macbook-15"); | ||
cy.visit("/login"); | ||
cy.checkBlockingModal(); | ||
}); | ||
|
||
it("error-page - jumps to a regulation Part using the jump-to select", () => { | ||
cy.viewport("macbook-15"); | ||
cy.visit("/login"); | ||
cy.jumpToRegulationPart({ title: "45", part: "95" }); | ||
}); | ||
|
||
it("error-page - jumps to a regulation Part section using the section number text input", () => { | ||
cy.viewport("macbook-15"); | ||
cy.visit("/login"); | ||
cy.jumpToRegulationPartSection({ | ||
title: "42", | ||
part: "433", | ||
section: "40", | ||
}); | ||
}); | ||
|
||
it("allows a user to go back to the homepage by clicking the top left link", () => { | ||
cy.viewport("macbook-15"); | ||
cy.visit("/login"); | ||
cy.goHome(); | ||
}); | ||
}); |
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