Skip to content

Commit

Permalink
OZ-593: Updated E2E test for odoo-openmrs-flows (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
VaishSiddharth authored Aug 5, 2024
1 parent 82326d8 commit 8dcc9f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules/
/test-results/
/playwright-report/
/playwright/.cache/
.idea/
4 changes: 2 additions & 2 deletions e2e/tests/odoo-openmrs-flows.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ test('Revising a synced OpenMRS drug order edits the corresponding Odoo quotatio
await page.getByRole('cell', { name: `${patientName.firstName + ' ' + patientName.givenName}` }).click();
const drugOrderItem = await page.locator("table tbody td.o_data_cell:nth-child(3) span");
await expect(drugOrderItem).toContainText('4.0 Tablet');
await expect(drugOrderItem).toContainText('Twice daily - 5 Days');
await expect(drugOrderItem).toContainText('Twice daily - 5 day');
await page.goto(`${O3_URL}`);
await openmrs.searchPatient(`${patientName.firstName + ' ' + patientName.givenName}`);
await openmrs.editDrugOrder();
Expand All @@ -125,7 +125,7 @@ test('Revising a synced OpenMRS drug order edits the corresponding Odoo quotatio
await odoo.searchCustomer();
await page.getByRole('cell', { name: `${patientName.firstName + ' ' + patientName.givenName}` }).click();
await expect(drugOrderItem).toContainText('8.0 Tablet');
await expect(drugOrderItem).toContainText('Thrice daily - 6 Days');
await expect(drugOrderItem).toContainText('Thrice daily - 6 day');
});

test('Discontinuing a synced OpenMRS drug order for an Odoo customer with a single quotation line removes the corresponding quotation.', async ({ page }) => {
Expand Down

0 comments on commit 8dcc9f8

Please sign in to comment.