-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
5,180 additions
and
0 deletions.
There are no files selected for viewing
4,347 changes: 4,347 additions & 0 deletions
4,347
src/applications/mhv-medications/tests/e2e/fixtures/grouped-prescriptions-list.json
Large diffs are not rendered by default.
Oops, something went wrong.
768 changes: 768 additions & 0 deletions
768
src/applications/mhv-medications/tests/e2e/fixtures/older-prescription-details.json
Large diffs are not rendered by default.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
...cations/tests/e2e/medications-previous-prescriptions-section-details-page.cypress.spec.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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import MedicationsSite from './med_site/MedicationsSite'; | ||
import MedicationsLandingPage from './pages/MedicationsLandingPage'; | ||
import medicationsList from './fixtures/grouped-prescriptions-list.json'; | ||
import MedicationsDetailsPage from './pages/MedicationsDetailsPage'; | ||
import olderRxDetails from './fixtures/older-prescription-details.json'; | ||
import { Data } from './utils/constants'; | ||
|
||
describe('Medications Details Page Grouping', () => { | ||
it('visits Medications Details Page Grouping Pagination', () => { | ||
const site = new MedicationsSite(); | ||
const landingPage = new MedicationsLandingPage(); | ||
const detailsPage = new MedicationsDetailsPage(); | ||
site.login(); | ||
landingPage.visitLandingPageURL(); | ||
landingPage.visitMedicationsListPage(medicationsList); | ||
cy.injectAxe(); | ||
cy.axeCheck('main'); | ||
detailsPage.clickMedicationDetailsLink(olderRxDetails, 2); | ||
detailsPage.verifyPreviousPrescriptionsPaginationTextOnDetailsPage( | ||
Data.PREVIOUS_PRESCRIPTION_PAGINATION, | ||
); | ||
detailsPage.clickNextButtonForPreviousPrescriptionPagination(); | ||
detailsPage.verifyPaginationTextIsFocusedAfterClickingNext( | ||
Data.PREVIOUS_PRESCRIPTION_PAGINATION_SECOND, | ||
); | ||
detailsPage.clickNextButtonForPreviousPrescriptionPagination(); | ||
detailsPage.verifyPaginationTextIsFocusedAfterClickingNext( | ||
Data.PREVIOUS_PRESCRIPTION_PAGINATION_THIRD, | ||
); | ||
}); | ||
}); |
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