From 2246ec29246d8e8c80dd22a9bb12453f0d6e7ffb Mon Sep 17 00:00:00 2001 From: RiteshHMCTS Date: Thu, 1 May 2025 14:31:45 +0100 Subject: [PATCH 1/2] update command --- Jenkinsfile_CNP | 12 ++++++++++++ package.json | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile_CNP b/Jenkinsfile_CNP index 00ee5235d..bc76cb33f 100644 --- a/Jenkinsfile_CNP +++ b/Jenkinsfile_CNP @@ -57,6 +57,7 @@ withPipeline(type, product, component) { disableLegacyDeployment() syncBranchesWithMaster(branchesToSync) + enableCrossBrowserTest() enablePactAs([ AppPipelineDsl.PactRoles.CONSUMER, @@ -66,6 +67,17 @@ withPipeline(type, product, component) { yarnBuilder.yarn('build') } + afterSuccess('crossBrowserTest') { + publishHTML([ + allowMissing : true, + alwaysLinkToLastBuild: true, + keepAll : true, + reportDir : "reports/tests/crossbrowser/", + reportFiles : 'index.html', + reportName : 'XUI Approve Organisation Cross Browser Tests' + ]) + } + afterSuccess('test') { publishHTML ( [ diff --git a/package.json b/package.json index a8d9bf6a8..eff06e6b6 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "test:coverage": "echo 'not implemented'", "test:coverage:ng": "ng test organisation-manager --code-coverage --watch", "test:coverage:node": "cd api && yarn coverage", - "test:crossbrowser": "yarn playwright install --with-deps && yarn playwright install webkit && yarn playwright install firefox && npx playwright test -c playwright-nightly.config.ts", + "test:crossbrowser": "yarn playwright install && npx playwright test -c playwright-nightly.config.ts", "test:fullfunctional": "yarn test:api && webdriver-manager update --versions.chrome 2.40 && protractor ./test/e2e/config/fullfunctional.conf.js", "test:fullfunctional:local": "webdriver-manager update --versions.chrome 2.40 && protractor ./test/e2e/config/fullfunctional.conf.js --local", "test:functional": "yarn playwright install chromium && npx playwright test -c playwright.config.ts && yarn run test:a11yInTest", From 90ae29485d363a1d8ee6044c75c6903847dff169 Mon Sep 17 00:00:00 2001 From: RiteshHMCTS Date: Thu, 1 May 2025 15:57:59 +0100 Subject: [PATCH 2/2] change command --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index eff06e6b6..a8d9bf6a8 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "test:coverage": "echo 'not implemented'", "test:coverage:ng": "ng test organisation-manager --code-coverage --watch", "test:coverage:node": "cd api && yarn coverage", - "test:crossbrowser": "yarn playwright install && npx playwright test -c playwright-nightly.config.ts", + "test:crossbrowser": "yarn playwright install --with-deps && yarn playwright install webkit && yarn playwright install firefox && npx playwright test -c playwright-nightly.config.ts", "test:fullfunctional": "yarn test:api && webdriver-manager update --versions.chrome 2.40 && protractor ./test/e2e/config/fullfunctional.conf.js", "test:fullfunctional:local": "webdriver-manager update --versions.chrome 2.40 && protractor ./test/e2e/config/fullfunctional.conf.js --local", "test:functional": "yarn playwright install chromium && npx playwright test -c playwright.config.ts && yarn run test:a11yInTest",