-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'staging' into 10372-refactor
- Loading branch information
Showing
64 changed files
with
1,688 additions
and
1,006 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ version: 2.1 | |
orbs: | ||
git-shallow-clone: guitarrapc/[email protected] | ||
|
||
efcms-docker-image: &efcms-docker-image $AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/ef-cms-us-east-1:4.2.0 | ||
efcms-docker-image: &efcms-docker-image $AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/ef-cms-us-east-1:4.3.0 | ||
|
||
parameters: | ||
run_build_and_deploy: | ||
|
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
47 changes: 47 additions & 0 deletions
47
cypress/local-only/tests/integration/public/practitioner-search.cy.ts
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { isValidRequest } from '../../../../readonly/support/helpers'; | ||
|
||
describe('Public User - Search', () => { | ||
beforeEach(() => { | ||
cy.visit('/'); | ||
}); | ||
|
||
it('should display all search tabs', () => { | ||
cy.get('[data-testid="tabs-menu"]').find('li').should('have.length', 4); | ||
|
||
['Case', 'Order', 'Opinion', 'Practitioner'].forEach( | ||
(title: string, index: number) => { | ||
cy.get('[data-testid="tabs-menu"]') | ||
.find('li') | ||
.eq(index) | ||
.invoke('text') | ||
.should('contain', title); | ||
}, | ||
); | ||
}); | ||
|
||
describe('Practitioner', () => { | ||
beforeEach(() => { | ||
cy.get('[data-testid="tabs-menu"]').find('li').eq(3).click(); | ||
|
||
cy.intercept({ | ||
method: 'GET', | ||
url: '/public-api/practitioners?name=test', | ||
}).as('getPractitionerByName'); | ||
|
||
cy.intercept({ | ||
method: 'GET', | ||
url: '/public-api/practitioners/test', | ||
}).as('getPractitionerByBarNumber'); | ||
}); | ||
|
||
it('should send the correct request when searching practitioner by Name and Bar Number', () => { | ||
cy.get('input#practitioner-name').type('test'); | ||
cy.get('button#practitioner-search-by-name-button').click(); | ||
cy.wait('@getPractitionerByName').then(isValidRequest); | ||
|
||
cy.get('input#bar-number').type('test'); | ||
cy.get('button#practitioner-search-by-bar-number-button').click(); | ||
cy.wait('@getPractitionerByBarNumber').then(isValidRequest); | ||
}); | ||
}); | ||
}); |
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 |
---|---|---|
|
@@ -8,8 +8,6 @@ describe('Given a user with a DAWSON account', () => { | |
describe('When they login in with the correct email and password', () => { | ||
it('Then they should be taken to their dashboard', () => { | ||
cy.visit('/login'); | ||
// Login Button is Disabled till Enter Both Email and Password | ||
cy.get('[data-testid="login-button"]').should('be.disabled'); | ||
cy.get('[data-testid="email-input"]').type( | ||
'[email protected]', | ||
); | ||
|
Oops, something went wrong.