Skip to content

Commit

Permalink
Merge pull request #61 from bcgov/cypress
Browse files Browse the repository at this point in the history
Cypress
  • Loading branch information
suzalflueck authored Oct 24, 2023
2 parents fd49fa8 + aca6d31 commit d60e47a
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 9 deletions.
1 change: 1 addition & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ coverage

/cypress/videos/
/cypress/screenshots/
/cypress/downloads/

# Editor directories and files
.vscode/*
Expand Down
10 changes: 10 additions & 0 deletions frontend/cypress/e2e/authority.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
describe('Testing District homepage', () => {
before(() => {
// Visit the root URL before running any test case.
cy.visit('/authority/100-Abbotsford%20Christian%20School');
});

it('visits the app root url', () => {
cy.contains('h2', '100 - Abbotsford Christian School');
});
});
10 changes: 10 additions & 0 deletions frontend/cypress/e2e/district.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
describe('Testing District homepage', () => {
before(() => {
// Visit the root URL before running any test case.
cy.visit('/district/006-rocky%20mountain');
});

it('visits the app root url', () => {
cy.contains('h2', '006 - Rocky Mountain');
});
});
8 changes: 0 additions & 8 deletions frontend/cypress/e2e/example.cy.ts

This file was deleted.

10 changes: 10 additions & 0 deletions frontend/cypress/e2e/home.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
describe('Testing 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');
});
});
10 changes: 10 additions & 0 deletions frontend/cypress/e2e/school.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
describe('Testing District homepage', () => {
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('h2', 'Lambrick Park Secondary - 06161064');
});
});
1 change: 1 addition & 0 deletions frontend/src/components/DistrictSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function downloadDistrictsMailing() {
(item) => (item?.districtNumber ? item.districtNumber + ' - ' + item.displayName : '')
"
:item-value="(item) => item"
class="selectDistrictInput"
></v-autocomplete>
<v-btn
icon="mdi-magnify"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/SchoolView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ onBeforeMount(async () => {
<v-breadcrumbs
class="breadcrumbs"
bg-color="white"
:items="[{ title: 'Home', href: '/' }, 'School', schoolData.value.displayName]"
:items="[{ title: 'Home', href: '/' }, 'School', {title: schoolData?.value?.displayName, href:''}]"
></v-breadcrumbs>

<v-sheet style="z-index: 100; position: relative" elevation="2" class="py-6 full-width">
Expand Down

0 comments on commit d60e47a

Please sign in to comment.