Skip to content

Commit

Permalink
e2e updates
Browse files Browse the repository at this point in the history
updated the date format and assertion
  • Loading branch information
RajiVenkatesh18 committed Mar 28, 2024
1 parent 79f01a2 commit b458ca8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@
"prescriptionName": "BACITRACIN 500 UNT/GM OPH OINT",
"refillStatus": "refillinprocess",
"refillSubmitDate": "2023-09-26T20:10:24.000Z",
"refillDate": "September 24, 2023",
"refillDate": "2023-08-29T04:00:00.000Z",
"refillRemaining": 1,
"facilityName": "SLC10 TEST LAB",
"orderedDate": "2023-08-27T04:00:00.000Z",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"prescriptionName": "BACITRACIN 500 UNT/GM OPH OINT",
"refillStatus": "refillinprocess",
"refillSubmitDate": "2023-09-26T20:10:24.000Z",
"refillDate": "September 24, 2023",
"refillDate": "2023-08-29T04:00:00.000Z",
"refillRemaining": 1,
"facilityName": "SLC10 TEST LAB",
"orderedDate": "2023-08-27T04:00:00.000Z",
"quantity": 1,
"expirationDate": "2024-08-27T04:00:00.000Z",
"dispensedDate": "September 24, 2023",
"dispensedDate": "2023-08-29T04:00:00.000Z",
"stationNumber": "979",
"isRefillable": false,
"isTrackable": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import MedicationsSite from './med_site/MedicationsSite';
import prescriptions from './fixtures/listOfPrescriptions.json';
import MedicationsRefillPage from './pages/MedicationsRefillPage';
import shippedRx from './fixtures/prescription-tracking-details.json';

describe('Medications Refill Page Shipped Rx', () => {
it('visits Medications Refill Page Shipped Rx Info', () => {
Expand All @@ -12,6 +11,6 @@ describe('Medications Refill Page Shipped Rx', () => {
refillPage.loadRefillPage(prescriptions);
cy.injectAxe();
cy.axeCheck('main');
refillPage.verifyShippedMedicationOnRefillPage(shippedRx);
refillPage.verifyShippedMedicationOnRefillPage();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ class MedicationsRefillPage {
});
};

verifyShippedMedicationOnRefillPage = prescription => {
verifyShippedMedicationOnRefillPage = () => {
cy.get('[data-testid="medications-last-shipped-3"]').should(
'contain',
`Last refill shipped on ${prescription.data.attributes.dispensedDate}`,
'Last refill shipped on September 24, 2023',
);
};
}
Expand Down

0 comments on commit b458ca8

Please sign in to comment.