From d0b81b3e83df716222a5e4794144ea26f4774a92 Mon Sep 17 00:00:00 2001 From: kdaud Date: Tue, 4 Jun 2024 16:15:36 +0300 Subject: [PATCH] Test ERPNext-O3 flows --- .env | 4 ++-- package.json | 2 +- playwright.config.ts | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.env b/.env index c43af12b..a8cb1b7f 100644 --- a/.env +++ b/.env @@ -5,7 +5,7 @@ # The target environment that will be tested. # Possibles values are dev, qa, demo. -TEST_ENVIRONMENT=dev +TEST_ENVIRONMENT=qa # Set to true to test Ozone Pro, false to test Ozone FOSS. TEST_PRO=true @@ -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 diff --git a/package.json b/package.json index 37eaab37..bcb2d95c 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/playwright.config.ts b/playwright.config.ts index f7e15c96..8d598a35 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 }, + screenshot: 'only-on-failure', + video: 'on' }, },