-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into NDT-628-Unsaved-changes-modal-pops-up-unnece…
…ssarily-on-RFI-page
- Loading branch information
Showing
27 changed files
with
1,204 additions
and
560 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
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
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
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
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
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
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
38 changes: 23 additions & 15 deletions
38
app/cypress/e2e/analyst/application/[applicationId].cy.js
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 |
---|---|---|
@@ -1,19 +1,27 @@ | ||
const setups = ['ccbc_analyst', 'ccbc_admin', 'super_admin', 'cbc_admin']; | ||
|
||
describe('The analyst application view', () => { | ||
beforeEach(() => { | ||
cy.mockLogin('ccbc_analyst'); | ||
const mockedDateString = '2022-10-10'; | ||
const mockedDate = new Date(mockedDateString); | ||
cy.useMockedTime(mockedDate); | ||
cy.sqlFixture('e2e/reset_db'); | ||
cy.sqlFixture('e2e/001_intake'); | ||
cy.sqlFixture('e2e/001_application'); | ||
cy.sqlFixture('e2e/001_application_received'); | ||
cy.sqlFixture('e2e/001_analyst'); | ||
}); | ||
setups.forEach((role) => { | ||
describe(`As ${role}`, () => { | ||
beforeEach(() => { | ||
cy.mockLogin(role); | ||
const mockedDateString = '2022-10-10'; | ||
const mockedDate = new Date(mockedDateString); | ||
cy.useMockedTime(mockedDate); | ||
cy.sqlFixture('e2e/reset_db'); | ||
cy.sqlFixture('e2e/001_intake'); | ||
cy.sqlFixture('e2e/001_application'); | ||
cy.sqlFixture('e2e/001_application_received'); | ||
cy.sqlFixture('e2e/001_analyst'); | ||
}); | ||
|
||
it('loads', () => { | ||
cy.visit('/analyst/application/1'); | ||
cy.contains('h1', 'Test application'); | ||
cy.get('body').happoScreenshot({ component: 'Analyst application view' }); | ||
it('loads', () => { | ||
cy.visit('/analyst/application/1'); | ||
cy.contains('h1', 'Test application'); | ||
cy.get('body').happoScreenshot({ | ||
component: `Analyst application view - ${role}`, | ||
}); | ||
}); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.