Skip to content

Commit

Permalink
Test ERPNext-O3 flows
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaud committed Jun 4, 2024
1 parent 54944a0 commit db1cbd2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ O3_URL_DEMO=https://demo.ozone-his.com

# ERPNEXT
ERPNEXT_URL_DEV=https://erpnext.ozone-dev.mekomsolutions.net
ERPNEXT_URL_QA=
ERPNEXT_URL_QA=https://erpnext.ozone-qa.mekomsolutions.net
ERPNEXT_URL_DEMO=

# Odoo
Expand Down
4 changes: 2 additions & 2 deletions e2e/tests/erpnext-openmrs-flows.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ test('Ordering a drug for an OpenMRS patient creates the corresponding ERPNext c
await openmrs.voidPatient();
await erpnext.deleteQuotation();
});

/*
test('Ending an OpenMRS patient visit with a synced drug order updates the corresponding ERPNext draft quotation to an open state.', async ({ page }) => {
// setup
await openmrs.createDrugOrder();
Expand Down Expand Up @@ -135,7 +135,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();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"!playwright-report/"
],
"scripts": {
"e2e-tests-pro": "npx playwright test",
"e2e-tests-pro": "npx playwright test erpnext-openmrs",
"e2e-tests-foss": "npx playwright test odoo-openmrs erpnext-openmrs openmrs-senaite"
},
"publishConfig": {
Expand Down
4 changes: 3 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ const config: PlaywrightTestConfig = {
name: 'chromium',
use: {
...devices['Desktop Chromium'],
viewport: { width: 1920, height: 1080 }
viewport: { width: 1920, height: 1080 },
screenshot: 'only-on-failure',
video: 'on'
},

},
Expand Down

0 comments on commit db1cbd2

Please sign in to comment.