Skip to content

Commit

Permalink
Test Keycloak flows
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaud committed Jun 10, 2024
1 parent 54944a0 commit 6a34c3e
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 @@ -5,7 +5,7 @@

# The target environment that will be tested.
# Possibles values are dev, qa, demo.
TEST_ENVIRONMENT=dev
TEST_ENVIRONMENT=demo

# Set to true to test Ozone Pro, false to test Ozone FOSS.
TEST_PRO=true
Expand Down
4 changes: 2 additions & 2 deletions e2e/tests/openmrs-superset-flows.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ test('Creating an OpenMRS patient creates the patient in Superset patients table
await superset.clearSQLEditor();
await openmrs.voidPatient();
});

/*
test('Creating an OpenMRS visit creates the visit in Superset visits table.', async ({ page }) => {
// setup
await openmrs.createPatient();
Expand Down Expand Up @@ -613,7 +613,7 @@ test('Cancelling an OpenMRS appointment updates the appointment in Superset appo
await superset.clearSQLEditor();
await openmrs.voidPatient();
});

*/
test.afterEach(async ({ page }) => {
await page.close();
});
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 keycloak",
"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 6a34c3e

Please sign in to comment.