Skip to content

Commit

Permalink
Updated parameters in nightly for playwright tests (#5446)
Browse files Browse the repository at this point in the history
* increase time out for smoke test

* DFPL-2351 - updated parameters in jenkins nightly
  • Loading branch information
GauravChawlaMOJ authored Jun 12, 2024
1 parent ef326fd commit 7e44061
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
8 changes: 2 additions & 6 deletions Jenkinsfile_CNP
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,10 @@ withPipeline(type, product, component) {
before('fullFunctionalTest:preview'){
yarnBuilder.yarn('yarn-update')
yarnBuilder.yarn('install-dependencies')
env.AAT_IDAM_URL = "https://idam-api.aat.platform.hmcts.net"
env.AAT_SERVICE_URL = "https://fpl-case-service-pr-${CHANGE_ID}.preview.platform.hmcts.net"
env.IDAM_API_URL = "https://idam-api.aat.platform.hmcts.net"
env.CASE_SERVICE_URL = "https://fpl-case-service-pr-${CHANGE_ID}.preview.platform.hmcts.net"
env.FE_BASE_URL = "https://xui-fpl-case-service-pr-${CHANGE_ID}.preview.platform.hmcts.net/"
env.SWANSEA_ORG_ID = "62LYJRF"
env.MOCKED_PAYMENTS = false
env.FUNCTIONAL_TESTS_WORKERS = 1
env.TEST_RETRIES = 1

}
Expand Down Expand Up @@ -247,9 +245,7 @@ withPipeline(type, product, component) {
env.IDAM_API_URL = "https://idam-api.aat.platform.hmcts.net"
env.CASE_SERVICE_URL = "https://fpl-case-service-pr-${CHANGE_ID}.preview.platform.hmcts.net"
env.URL = "https://xui-fpl-case-service-pr-${CHANGE_ID}.preview.platform.hmcts.net"
env.SWANSEA_ORG_ID = "62LYJRF"
env.MOCKED_PAYMENTS = false
env.PARALLEL_CHUNKS = 12
env.TEST_RETRIES = 3
}

Expand Down
8 changes: 1 addition & 7 deletions Jenkinsfile_nightly
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@
properties([
pipelineTriggers([cron('H 17 * * 1-5')]),
parameters([
string(name: 'FRONTEND_URL', defaultValue: 'https://manage-case.aat.platform.hmcts.net',
string(name: 'FE_BASE_URL', defaultValue: 'https://manage-case.aat.platform.hmcts.net',
description: 'The URL you want to run the full functional tests against'),
string(name: 'CASE_SERVICE_URL', defaultValue: 'http://fpl-case-service-aat.service.core-compute-aat.internal',
description: 'The URL of case service callbacks'),
string(name: 'IDAM_API_URL', defaultValue: 'https://idam-api.aat.platform.hmcts.net',
description: 'The URL of idam api'),
string(name: 'SWANSEA_ORG_ID', defaultValue: '62LYJRF',
description: 'The organisation id of Swansea local authority'),
string(name: 'FUNCTIONAL_TESTS_WORKERS',
defaultValue: '8',
description: 'Number of workers running functional tests'),
])
])

Expand Down Expand Up @@ -97,7 +92,6 @@ withNightlyPipeline(type, product, component) {
before('fullFunctionalTest') {
yarnBuilder.yarn('yarn-update')
yarnBuilder.yarn('install-dependencies')
env.PARALLEL_CHUNKS = params.FUNCTIONAL_TESTS_WORKERS
env.MOCKED_PAYMENTS = false
env.TEST_RETRIES = 5
env.TESTS_FOR_ACCESSIBILITY = true
Expand Down
4 changes: 2 additions & 2 deletions playwright-e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ This repository contains automation tests that can be run locally. To set up the
ENVIRONMENT=aat
FE_BASE_URL=https://example.com/login
AAT_BASE_URL=https://example.com
AAT_IDAM_URL=https://example.com
AAT_SERVICE_URL=https://example.com
IDAM_API_URL=https://example.com
CASE_SERVICE_URL=https://example.com
# userCredentials and Passwords
E2E_TEST_PASSWORD=passwordhere
Expand Down
4 changes: 2 additions & 2 deletions playwright-e2e/settings/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ interface UrlConfig {
}

export const urlConfig: UrlConfig = {
idamUrl: process.env.AAT_IDAM_URL || `https://idam-api.${env}.platform.hmcts.net`,
serviceUrl: process.env.AAT_SERVICE_URL || `http://fpl-case-service-${env}.service.core-compute-${env}.internal`,
idamUrl: process.env.IDAM_API_URL || `https://idam-api.${env}.platform.hmcts.net`,
serviceUrl: process.env.CASE_SERVICE_URL || `http://fpl-case-service-${env}.service.core-compute-${env}.internal`,
frontEndBaseURL: process.env.FE_BASE_URL || `https://manage-case.${env}.platform.hmcts.net/`,
// You can add other URLs as needed
};

0 comments on commit 7e44061

Please sign in to comment.