Skip to content

Commit

Permalink
OZ-541: Debug ERPNext tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaud committed May 23, 2024
1 parent f2a626b commit cb15dce
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
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 @@ -28,7 +28,7 @@ test('Ordering a lab test for an OpenMRS patient creates the corresponding ERPNe
await expect(customer).toContainText(`${patientName.firstName + ' ' + patientName.givenName}`);
await openmrs.deletePatient();
});

/*
test('Ordering a drug for an OpenMRS patient creates the corresponding ERPNext customer with a filled quotation.', async ({ page }) => {
// replay
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.deletePatient();
});

*/
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 },
video: 'on',
screenshot: 'only-on-failure'
},

},
Expand Down
4 changes: 4 additions & 0 deletions tests/storageState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"cookies": [],
"origins": []
}

0 comments on commit cb15dce

Please sign in to comment.