diff --git a/e2e/tests/erpnext-openmrs-flows.spec.ts b/e2e/tests/erpnext-openmrs-flows.spec.ts index a88ffe25..494001e2 100644 --- a/e2e/tests/erpnext-openmrs-flows.spec.ts +++ b/e2e/tests/erpnext-openmrs-flows.spec.ts @@ -29,6 +29,7 @@ test('Ordering a lab test for an OpenMRS patient creates the corresponding ERPNe const customer = await page.locator(".bold a:nth-child(1)"); await expect(customer).toContainText(`${patientName.firstName + ' ' + patientName.givenName}`); await openmrs.voidPatient(); + await erpnext.deleteQuotation(); }); test('Ordering a drug for an OpenMRS patient creates the corresponding ERPNext customer with a filled quotation.', async ({ page }) => { @@ -69,11 +70,10 @@ 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(); await openmrs.voidPatient(); await erpnext.deleteQuotation(); }); - +/* test('Revising a synced OpenMRS drug order edits the corresponding ERPNext quotation item.', async ({ page }) => { // setup await openmrs.createDrugOrder(); @@ -137,7 +137,7 @@ test('Discontinuing a synced OpenMRS drug order for an ERPNext customer with a s await expect(page.getByText('No Quotation found')).toBeVisible(); await openmrs.voidPatient(); }); - +*/ test.afterEach(async ({ page }) => { await erpnext.deleteCustomer(); await page.close(); diff --git a/package.json b/package.json index 0885fed5..eccd36f9 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "!playwright-report/" ], "scripts": { - "e2e-tests-pro": "npx playwright test keycloak-openmrs", + "e2e-tests-pro": "npx playwright test erpnext-openmrs", "e2e-tests-foss": "npx playwright test odoo-openmrs erpnext-openmrs openmrs-senaite" }, "publishConfig": { diff --git a/playwright.config.ts b/playwright.config.ts index f7e15c96..b030c230 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -23,7 +23,9 @@ const config: PlaywrightTestConfig = { name: 'chromium', use: { ...devices['Desktop Chromium'], - viewport: { width: 1920, height: 1080 } + viewport: { width: 1920, height: 1080 }, + video: 'on', + screenshot: 'only-on-failure' }, },