Skip to content

Commit

Permalink
added wait to the test
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunlumbcgov committed Dec 4, 2023
1 parent 8f4ddd3 commit 70800f8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion tests-e2e/cypress/e2e/authority.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ describe('Testing Authority Page', () => {
before(() => {
// Visit the root URL before running any test case.
cy.visit('/authority/100-Abbotsford%20Christian%20School');
cy.wait(5000); // 5000 milliseconds = 5 seconds
});

it('Confirm the Authority is displaying', () => {
cy.contains('h1', '100 - Abbotsford Christian School', { timeout: 10000 });
cy.contains('h1', '100 - Abbotsford Christian School');
});
});
3 changes: 2 additions & 1 deletion tests-e2e/cypress/e2e/district.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ describe('Testing District homepage', () => {
before(() => {
// Visit the root URL before running any test case.
cy.visit('/district/006-rocky%20mountain');
cy.wait(5000); // 5000 milliseconds = 5 seconds
});

it('visits the app root url', () => {
cy.contains('h1', '006 - Rocky Mountain', { timeout: 10000 });
cy.contains('h1', '006 - Rocky Mountain');
});
});
3 changes: 2 additions & 1 deletion tests-e2e/cypress/e2e/home.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ describe('Testing Home Page', () => {
before(() => {
// Visit the root URL before running any test case.
cy.visit('/');
cy.wait(5000); // 5000 milliseconds = 5 seconds
});

it('visits the app root url', () => {
cy.contains('h1', 'BC School & District Contact Information', { timeout: 10000 });
cy.contains('h1', 'BC School & District Contact Information');
});
});
3 changes: 2 additions & 1 deletion tests-e2e/cypress/e2e/school.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ describe('Testing School Page', () => {
before(() => {
// Visit the root URL before running any test case.
cy.visit('/school/6eb5dc63-450d-01e8-5f97-a0e43ecb6419');
cy.wait(5000); // 5000 milliseconds = 5 seconds
});

it('Confirm school title is displaying', () => {
cy.contains('h1', '06161064 - Lambrick Park Secondary', { timeout: 10000 });
cy.contains('h1', '06161064 - Lambrick Park Secondary');
});
});

0 comments on commit 70800f8

Please sign in to comment.