Skip to content

Commit

Permalink
OZ-593: Fix odoo test
Browse files Browse the repository at this point in the history
  • Loading branch information
VaishSiddharth committed Jun 4, 2024
1 parent 54944a0 commit 60f6c82
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 @@ -108,7 +108,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 @@ -118,7 +118,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 60f6c82

Please sign in to comment.