Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaud committed May 17, 2024
1 parent 34cd13b commit 8d2c75e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions e2e/tests/erpnext-openmrs-flows.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ test('Ending an OpenMRS patient visit with a synced drug order updates the corre
await page.goto(`${ERPNEXT_URL}/app/home`);
await erpnext.searchQuotation();
await expect(quotationStatus).toHaveText('Open');
await erpnext.voidQuotation();
});

test('Revising a synced OpenMRS drug order edits the corresponding ERPNext quotation item.', async ({ page }) => {
Expand Down
3 changes: 2 additions & 1 deletion e2e/utils/functions/erpnext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class ERPNext {

async deleteQuotation() {
await this.page.goto(`${ERPNEXT_URL}/app/quotation`);
await this.voidQuotation();
await this.searchQuotation();
await this.page.getByRole('checkbox', { name: 'Select All' }).check();
await delay(2500);
await this.page.getByRole('button', { name: 'Actions' }).click();
Expand All @@ -41,6 +41,7 @@ export class ERPNext {
}

async voidQuotation() {
await this.page.goto(`${ERPNEXT_URL}/app/quotation`);
await this.searchQuotation();
await this.page.getByRole('checkbox', { name: 'Select All' }).check();
await delay(2500);
Expand Down

0 comments on commit 8d2c75e

Please sign in to comment.