Skip to content

Commit

Permalink
updated test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunlumbcgov committed Dec 4, 2023
1 parent ffdfe1e commit 42edcea
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 27 deletions.
9 changes: 1 addition & 8 deletions tests-e2e/cypress/e2e/authority.cy.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
describe('Testing Authority Page', () => {
before(() => {
// Visit the root URL before running any test case.
cy.visit('/');
});

it('visits the app root url', () => {
cy.contains('h1', 'BC School & District Contact Information');
});

before(() => {
// Visit the root URL before running any test case.
cy.visit('/authority/100-Abbotsford%20Christian%20School');
Expand Down
11 changes: 2 additions & 9 deletions tests-e2e/cypress/e2e/district.cy.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
describe('Testing District homepage', () => {
before(() => {
// Visit the root URL before running any test case.
cy.visit('/');
});

it('visits the app root url', () => {
cy.contains('h1', 'BC School & District Contact Information');
});

before(() => {
// Visit the root URL before running any test case.
cy.visit('/district/006-rocky%20mountain');
});

it('visits the app root url', () => {
cy.contains('h1', '006 - Rocky Mountain');
cy.contains('h1', '006 - Rocky Mountain', { timeout: 10000 });
});
});
2 changes: 1 addition & 1 deletion tests-e2e/cypress/e2e/home.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ describe('Testing Home Page', () => {
});

it('visits the app root url', () => {
cy.contains('h1', 'BC School & District Contact Information');
cy.contains('h1', 'BC School & District Contact Information', { timeout: 10000 });
});
});
11 changes: 2 additions & 9 deletions tests-e2e/cypress/e2e/school.cy.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
describe('Testing School Page', () => {
before(() => {
// Visit the root URL before running any test case.
cy.visit('/');
});

it('visits the app root url', () => {
cy.contains('h1', 'BC School & District Contact Information');
});

before(() => {
// Visit the root URL before running any test case.
cy.visit('/school/6eb5dc63-450d-01e8-5f97-a0e43ecb6419');
});

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

0 comments on commit 42edcea

Please sign in to comment.