-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the "Not Found" view and implement an e2e test
ref #250
- Loading branch information
Showing
3 changed files
with
40 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// https://docs.cypress.io/api/introduction/api.html | ||
|
||
describe("Basic test", () => { | ||
it("visits the app root url", () => { | ||
cy.visit("/"); | ||
cy.contains("h2", "Scale data"); | ||
}); | ||
}); | ||
|
||
describe("404 page", () => { | ||
it("creates an octaplex", () => { | ||
cy.visit("/non-existing-page"); | ||
cy.contains("h2", "Not found"); | ||
cy.get("a") | ||
.last() | ||
.click() | ||
.then(() => { | ||
cy.get("button") | ||
.first() | ||
.click() | ||
.then(() => { | ||
cy.contains("h2", "Scale data"); | ||
cy.get("#scale-name").should( | ||
"have.value", | ||
"The Octaplex (3 5 7 11)" | ||
); | ||
}); | ||
}); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
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