Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CIV-0000 removing playwright service access changes #5551

Merged
merged 2 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"test:a11y": "echo 'a11y tests are ran through GitHub actions as a mandatory step in order to save time on the main pipeline and unable to mock at the moment.'",
"tests:a11y": "NODE_TLS_REJECT_UNAUTHORIZED=0 NODE_ENV=test LOG_LEVEL=ERROR mocha --exit --reporter mochawesome --require ts-node/register --require tsconfig-paths/register src/test/a11y/a11y.mock-test.ts --timeout 60000 --reporter-options reportDir=functional-output/accessibility-report,reportFilename=a11y,inlineAssets=true,reportTitle=civil-citizen-ui",
"sonar-scan": "sonar-scanner",
"test:smoke": "MOCHAWESOME_REPORTFILENAME=smokeTests REPORT_DIR=test-results/smokeTest yarn test:functional:codeceptjs run-workers 1 --grep @smoketest --reporter mocha-multi --verbose",
"test:smoke": "yarn playwright install && MOCHAWESOME_REPORTFILENAME=smokeTests REPORT_DIR=test-results/smokeTest yarn test:functional:codeceptjs run-workers 1 --grep @smoketest --reporter mocha-multi --verbose",
"test:cui-r1": "MOCHAWESOME_REPORTFILENAME=cui yarn test:functional:codeceptjs run-workers --suites 9 --grep @regression-cui-r1 --reporter mocha-multi --verbose",
"test:ocmc": "MOCHAWESOME_REPORTFILENAME=ocmc yarn test:functional:codeceptjs run-workers --suites 9 --grep @ocmc --reporter mocha-multi --verbose",
"test:cui-cp": "MOCHAWESOME_REPORTFILENAME=cui yarn test:functional:codeceptjs run-workers --suites 9 --grep @regression-cp --reporter mocha-multi --verbose",
"test:cui-regression": "MOCHAWESOME_REPORTFILENAME=cui codeceptjs run-workers --suites 13 --grep @regression --config src/test/functionalTests/codecept.conf.js --reporter mocha-multi --verbose",
"test:carm": "MOCHAWESOME_REPORTFILENAME=carm yarn test:functional:codeceptjs run-workers --suites 2 --grep @regression-carm --reporter mocha-multi --verbose",
"test:functional": "src/test/functionalTests/run-functional-tests.sh",
"test:fullfunctional": "MOCHAWESOME_REPORTFILENAME=functionalTests codeceptjs run-workers --suites 2 --grep @nightly --config src/test/functionalTests/codecept.conf.js --reporter mocha-multi --verbose",
"test:fullfunctional": "yarn playwright install && MOCHAWESOME_REPORTFILENAME=functionalTests codeceptjs run-workers --suites 2 --grep @nightly --config src/test/functionalTests/codecept.conf.js --reporter mocha-multi --verbose",
"test:crossbrowser-functional": "MOCHAWESOME_REPORTFILENAME=crossbrowser codeceptjs run-multiple --grep @crossbrowser ${BROWSER_GROUP:-'--all'} -c src/test/functionalTests/saucelabs.conf.js --reporter mocha-multi",
"test:crossbrowser": "src/test/functionalTests/run-crossbrowser-tests.sh",
"test:debug": "codeceptjs run --config src/test/functionalTests/codecept.conf.js --grep @debug",
Expand Down
14 changes: 0 additions & 14 deletions src/test/functionalTests/codecept.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,6 @@ exports.config = {
waitForNavigation: 'networkidle',
bypassCSP: true,
ignoreHTTPSErrors: true,
retries: 3,
chromium: process.env.PLAYWRIGHT_SERVICE_ACCESS_TOKEN && {
timeout: 30000,
headers: {
'x-mpt-access-key': process.env.PLAYWRIGHT_SERVICE_ACCESS_TOKEN,
},
exposeNetwork: testConfig.TestUrl ? '*.platform.hmcts.net' : '<loopback>',
browserWSEndpoint: {
wsEndpoint: `${process.env.PLAYWRIGHT_SERVICE_URL}?cap=${JSON.stringify({
os: 'linux',
runId: process.env.PLAYWRIGHT_SERVICE_RUN_ID,
})}`,
},
},
},
BrowserHelpers: {
require: './helpers/browser_helper.js',
Expand Down