Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit dc0c0b5

Browse files
committed
fixed cypress tests
1 parent baeebd7 commit dc0c0b5

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

cypress/integration/login_spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ describe("The Home Page", () => {
1414
// {enter} causes the form to submit
1515
cy.get("input[id=formBasicPassword]").type(`${password}{enter}`);
1616

17+
cy.get("span.navbar-link-description")
18+
.contains("Health")
19+
.click();
20+
1721
// UI should reflect this user being logged in
1822
cy.get("h1").should("contain", "FileFighter");
1923

cypress/integration/register_spec.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ describe("The register Page", () => {
1111
});
1212

1313
it("registers a user successfully", () => {
14+
cy.get("span.navbar-link-description")
15+
.contains("Health")
16+
.click();
17+
1418
cy.get("#ff-heath-table > tbody > tr:nth-child(4) > td:nth-child(2)")
1519
.contains(/^\d+/)
1620
.then(($tr) => {
@@ -33,7 +37,7 @@ describe("The register Page", () => {
3337
cy.get("#formConfirmPassword").type(password);
3438

3539
cy.get(".btn.btn-primary").contains("Submit").click();
36-
cy.get("span.navbar-link-description").contains("Main").click();
40+
cy.get("span.navbar-link-description").contains("Health").click();
3741

3842
cy.logout();
3943

@@ -43,6 +47,10 @@ describe("The register Page", () => {
4347
`${password}{enter}`
4448
);
4549

50+
cy.get("span.navbar-link-description")
51+
.contains("Health")
52+
.click();
53+
4654
cy.get("h1").should("contain", "FileFighter");
4755

4856
let newUserCount = (parseInt(currentUserCount) + 1).toString();

0 commit comments

Comments
 (0)