Skip to content

Commit

Permalink
OZ-554: Renamed deletePatient() to voidPatient() (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaud authored May 29, 2024
1 parent 7cd3d13 commit 84c9f50
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions e2e/tests/erpnext-openmrs-flows.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test('Ordering a lab test for an OpenMRS patient creates the corresponding ERPNe
await erpnext.searchCustomer();
const customer = await page.locator(".bold a:nth-child(1)");
await expect(customer).toContainText(`${patientName.firstName + ' ' + patientName.givenName}`);
await openmrs.deletePatient();
await openmrs.voidPatient();
});

test('Ordering a drug for an OpenMRS patient creates the corresponding ERPNext customer with a filled quotation.', async ({ page }) => {
Expand All @@ -44,7 +44,7 @@ test('Ordering a drug for an OpenMRS patient creates the corresponding ERPNext c
await page.getByLabel('Dashboard').getByText('Quotation').click();
await erpnext.searchQuotation();
await expect(page.getByText('Draft').nth(0)).toBeVisible();
await openmrs.deletePatient();
await openmrs.voidPatient();
await erpnext.deleteQuotation();
});

Expand All @@ -68,7 +68,7 @@ test('Ending an OpenMRS patient visit with a synced drug order updates the corre
await erpnext.searchQuotation();
await expect(quotationStatus).toHaveText('Open');
await erpnext.voidQuotation();
await openmrs.deletePatient();
await openmrs.voidPatient();
await erpnext.deleteQuotation();
});

Expand All @@ -92,7 +92,7 @@ test('Revising a synced OpenMRS drug order edits the corresponding ERPNext quota
await erpnext.searchQuotation();
await page.getByRole('link', { name: `${patientName.firstName + ' ' + patientName.givenName}` }).click();
await expect(quantity).toHaveText('8');
await openmrs.deletePatient();
await openmrs.voidPatient();
await erpnext.deleteQuotation();
});

Expand All @@ -111,7 +111,7 @@ test('Ordering a drug with a free text medication dosage for an OpenMRS patient
await page.getByLabel('Dashboard').getByText('Quotation').click();
await erpnext.searchQuotation();
await expect(page.getByText('Draft').nth(0)).toBeVisible();
await openmrs.deletePatient();
await openmrs.voidPatient();
await erpnext.deleteQuotation();
});

Expand All @@ -133,7 +133,7 @@ test('Discontinuing a synced OpenMRS drug order for an ERPNext customer with a s
await erpnext.searchQuotation();
await expect(page.getByText(`${patientName.firstName + ' ' + patientName.givenName}`)).not.toBeVisible();
await expect(page.getByText('No Quotation found')).toBeVisible();
await openmrs.deletePatient();
await openmrs.voidPatient();
});

test.afterEach(async ({ page }) => {
Expand Down

0 comments on commit 84c9f50

Please sign in to comment.