Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OZ-554: Renamed deletePatient() to voidPatient() #91

Merged
merged 2 commits into from
May 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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