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

Nightly dev #2582

Closed
wants to merge 80 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
845c41d
DTSPB-3933 New Channel Choice
MarcusHMCTS Feb 7, 2024
01e9c88
DTSPB-3933 New Channel Choice
MarcusHMCTS Feb 13, 2024
b1c5e09
Merge branch 'master' into DTSPB-3933_Channel_Choice
MarcusHMCTS Feb 13, 2024
2902477
DTSPB-3933 channel Choice change
MarcusHMCTS Feb 20, 2024
aef58d3
Merge branch 'master' into DTSPB-3933_Channel_Choice
MarcusHMCTS Feb 20, 2024
3feb5a4
DTSPB-3933 fix IT with channelChoice
MarcusHMCTS Feb 20, 2024
de68517
DTSPB-3933 fix IT with channelChoice
MarcusHMCTS Feb 20, 2024
35d98ed
DTSPB-3933 fix IT with channelChoice
MarcusHMCTS Feb 21, 2024
ceff520
add channel choice factors for grant raised emails
GEvans-HMCTS Feb 22, 2024
484fdf9
fix imports
GEvans-HMCTS Feb 22, 2024
070d5d7
fix checkstyle errors
GEvans-HMCTS Feb 22, 2024
afc2eea
remove paperform field from functions
GEvans-HMCTS Feb 22, 2024
ca77894
fix logging line
GEvans-HMCTS Feb 22, 2024
8fc42b3
DTSPB-3933 fix IT with channelChoice
MarcusHMCTS Feb 22, 2024
b2f6939
DTSPB-3933 fix IT with channelChoice
MarcusHMCTS Feb 23, 2024
cb9540c
DTSPB-3933 fix IT with channelChoice
MarcusHMCTS Feb 23, 2024
6d90524
DTSPB-3933 fix IT with channelChoice
MarcusHMCTS Feb 23, 2024
bcb5f9e
Merge branch 'DTSPB-3933_Channel_Choice' into DTSPB-3936-channel-choi…
GEvans-HMCTS Feb 26, 2024
635ca3b
update test with new channel choice
GEvans-HMCTS Feb 26, 2024
c13e4df
DTSPB-3933 fix IT with channelChoice
MarcusHMCTS Feb 26, 2024
51546ba
DTSPB-3933 fix IT with channelChoice
MarcusHMCTS Feb 26, 2024
66c6f1a
update test to use correct variable
GEvans-HMCTS Feb 27, 2024
919bc9f
DTSPB-3933 Bulkscan to BulkScan & Paperform to PaperForm
MarcusHMCTS Feb 27, 2024
02a73fa
DTSPB-3933 fix function test with channelChoice
MarcusHMCTS Feb 27, 2024
e3a748a
update json for functional tests
GEvans-HMCTS Feb 27, 2024
5e25269
DTSPB-3933 fix function test with channelChoice
MarcusHMCTS Feb 27, 2024
bc26ffe
DTSPB-3933 fix function test with channelChoice
MarcusHMCTS Feb 27, 2024
f4ce592
DTSPB-3933 fix function test with channelChoice
MarcusHMCTS Feb 27, 2024
1b86793
Merge remote-tracking branch 'origin/DTSPB-3933_Channel_Choice' into …
GEvans-HMCTS Feb 27, 2024
eb8c85a
update tests
GEvans-HMCTS Feb 27, 2024
5a85ffe
DTSPB-3933 fix function test with channelChoice
MarcusHMCTS Feb 27, 2024
63b6b1f
DTSPB-3933 fix function test with channelChoice
MarcusHMCTS Feb 27, 2024
240ed57
Merge remote-tracking branch 'origin/DTSPB-3933_Channel_Choice' into …
GEvans-HMCTS Feb 27, 2024
1861671
DTSPB-3933 fix function test with channelChoice
MarcusHMCTS Feb 27, 2024
0009a62
DTSPB-3933 fix function test with channelChoice
MarcusHMCTS Feb 27, 2024
d3669c6
update test to use channel choice
GEvans-HMCTS Feb 28, 2024
f1c3ab6
DTSPB-3933 fix function test with channelChoice
MarcusHMCTS Feb 28, 2024
976fd17
update tests to use channel choice over paperform
GEvans-HMCTS Feb 28, 2024
fbf06b4
Merge pull request #2500 from hmcts/DTSPB-3936-channel-choice-notific…
GEvans-HMCTS Feb 28, 2024
09d379d
DTSPB-3933 fix channelChoice issue with solicitor
MarcusHMCTS Feb 28, 2024
a80386d
Merge branch 'master' into DTSPB-3933_Channel_Choice
MarcusHMCTS Mar 20, 2024
5ef665f
DTSPB-3881 Added scheduler auth for createCaseFromBulkScan
IswaryaPepakayala Mar 21, 2024
7f6d9f2
DTSPB-3881 Added Rollback related changes
IswaryaPepakayala Mar 21, 2024
f7961ff
Merge branch 'master' into DTSPB-3933_Channel_Choice
FeliTam Mar 25, 2024
686e011
DTSPB-3933 update paperForm for systemupdate role to CRU
FeliTam Mar 27, 2024
30e7c84
DTSPB-3933 remove channel choice question from CW creation journey an…
FeliTam Mar 28, 2024
5d69548
fix cve
FeliTam Mar 28, 2024
be804b8
DTSPB-3933 remove FT scenario where caseworker create digital applic…
FeliTam Mar 28, 2024
a4c0b75
Merge branch 'master' into DTSPB-3933_Channel_Choice
MarcusHMCTS Apr 2, 2024
0923976
DTSPB-3621 fix rebase master problem
MarcusHMCTS Apr 2, 2024
12f0eb7
DTSPB-3621 fix rebase master problem
MarcusHMCTS Apr 2, 2024
68702fd
DTSPB-3621 fix rebase master problem
MarcusHMCTS Apr 2, 2024
f5df7ee
DTSPB-3933 update paperForm authorisation
FeliTam Apr 3, 2024
989880d
Merge branch 'master' into DTSPB-3933_Channel_Choice
FeliTam Apr 4, 2024
95a67ac
E2E fix for channel choice (#2545)
MarianIrudayanathan Apr 5, 2024
2a1c72c
DTSPB-3933: Add read access for BS cw-pb-scheduler
jamiealbertelli Apr 8, 2024
8894b60
DTSPB-3933: Add permissions for PAAppCreate for CW-PB-scheduler
jamiealbertelli Apr 15, 2024
cf9bebe
DTSPB-3933: Remove unnecessary sols auths
jamiealbertelli Apr 16, 2024
da3813d
Revert "DTSPB-3933: Remove unnecessary sols auths"
jamiealbertelli Apr 16, 2024
2b3a976
DTSPB-3933: Remove no-longer needed previous migration function
jamiealbertelli Apr 16, 2024
84d7dac
DTSPB-3933: Add permissions for all State case events
jamiealbertelli Apr 16, 2024
d807248
DTSPB-3933 update caseworker-probate-scheduler AuthroisationCaseEvent…
MarcusHMCTS Apr 16, 2024
b0eb319
DTSPB-3933 fix CallbackResponseTransformerTest for rollback ChannelCh…
MarcusHMCTS Apr 16, 2024
7541426
Merge branch 'master' into DTSPB-3933_Channel_Choice
MarcusHMCTS Apr 22, 2024
ab09738
temp. change TEST_E2E_URL to demo
FeliTam Apr 23, 2024
447c246
Revert "temp. change TEST_E2E_URL to demo"
FeliTam Apr 24, 2024
f41a4cd
temp. change TEST_E2E_URL to demo
FeliTam Apr 23, 2024
292555e
enableSecurityScan for PR
FeliTam Apr 26, 2024
3d8508f
Revert "enableSecurityScan for PR"
FeliTam Apr 26, 2024
cccec43
Merge branch 'refs/heads/master' into DTSPB-3933_Channel_Choice
FeliTam Apr 26, 2024
8d7a1f5
check security scan with backend version script
FeliTam Apr 26, 2024
de6b3fa
DTSPB-4080: Playwright Test files and cw caveat case changes to playw…
MarianIrudayanathan May 10, 2024
59f5924
DTSPB-4080: Playwright Test files and cw caveat case changes to playw…
MarianIrudayanathan May 14, 2024
d7f804b
DTSPB-4080: CW caveat1 test changes to playwright framework
MarianIrudayanathan May 15, 2024
806834c
DTSPB-4080: Update Jenkins_nightly and package.json to run playwright…
MarianIrudayanathan May 16, 2024
a5668e2
Merge branch 'master' into nightly-dev
MarcusHMCTS May 16, 2024
e5ee4d1
DTSPB-4080: CW Events Page Update
MarianIrudayanathan May 16, 2024
acb090c
DTSPB-4080: Test File to upload
MarianIrudayanathan May 16, 2024
5119be5
Merge remote-tracking branch 'origin/DTSPB-4080_CodeceptJS_To_Playwri…
MarianIrudayanathan May 16, 2024
b8372e6
DTSPB-4080 : Fix syntax error in Jenkins_nightly
MarianIrudayanathan May 16, 2024
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
27 changes: 27 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: yarn
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run Playwright tests
run: yarn playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,19 @@ src/test/end-to-end/functional-output/
/test-results/
/playwright-report/
/playwright/.cache/
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
4 changes: 2 additions & 2 deletions Jenkinsfile_CNP
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,12 @@ withPipeline("java", product, component) {

afterSuccess('functionalTest:preview') {
if (checkForEnableNightlyLabel(env.BRANCH_NAME)) {
env.TEST_E2E_URL = "https://xui-probate-back-office-pr-${CHANGE_ID}.preview.platform.hmcts.net"
env.TEST_E2E_URL = "https://manage-case.demo.platform.hmcts.net"
sh 'yarn install'
sh 'yarn test:fullfunctional-pr'
}
if (checkForEnableCWNightlyLabel(env.BRANCH_NAME)) {
env.TEST_E2E_URL = "https://xui-probate-back-office-pr-${CHANGE_ID}.preview.platform.hmcts.net"
env.TEST_E2E_URL = "https://manage-case.demo.platform.hmcts.net"
sh 'yarn install'
sh 'yarn test:fullfunctional-cw'
}
Expand Down
33 changes: 30 additions & 3 deletions Jenkinsfile_nightly
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!groovy

properties([
pipelineTriggers([cron('15 06 * * 1-5')]),
pipelineTriggers([cron('15 06 31 2 1-5')]),
parameters([
string(name: 'ENVIRONMENT', defaultValue: 'aat', description: 'Environment to test'),
string(name: 'XUI_URL_TO_TEST', defaultValue: 'https://manage-case.aat.platform.hmcts.net', description: 'The URL you want to run both solicitor and caseworker tests against'),
Expand Down Expand Up @@ -38,7 +38,7 @@ static LinkedHashMap<String, Object> secret(String secretName, String envVar) {
]
}

withNightlyPipeline("nodejs", product, component) {
withNightlyPipeline("java", product, component) {
env.TEST_E2E_URL = params.XUI_URL_TO_TEST
env.TEST_URL = params.URL_TO_TEST
env.Rules = params.SecurityRules
Expand All @@ -47,8 +47,35 @@ withNightlyPipeline("nodejs", product, component) {
enableSecurityScan()
enableFortifyScan('probate-aat')
// enableCrossBrowserTest(['chrome', 'firefox', 'safari', 'microsoft'])
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
env.ENV = 'aat'
env.CASE_SERVICE_URL = "https://manage-case.aat.platform.hmcts.net"
}

afterAlways('fullFunctionalTest') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'functional-output/**/*'
stage('Functional Tests Nightly') {
try {
yarnBuilder.yarn('test:fullfunctional-nightly')
} catch (Error) {
unstable(message: "${STAGE_NAME} is unstable: " + Error.toString())
} finally {
publishHTML([
allowMissing: true,
alwaysLinkToLastBuild: true,
keepAll: true,
reportDir: 'playwright-report',
reportFiles: 'index.html',
reportName: 'UI Functional Test Report'
])
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'build/reports/tests/functionalTest/**/*'
}
}
}

afterAlways('crossBrowserTest') {
Expand Down
33 changes: 33 additions & 0 deletions customhelper_helper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
const Helper = require('@codeceptjs/helper');

class CustomHelper extends Helper {

// before/after hooks
/**
* @protected
*/
_before() {
// remove if not used
}

/**
* @protected
*/
_after() {
// remove if not used
}

// add custom methods here
async findPageElement(locator) {
const { WebDriver } = this.helpers['Puppeteer'];
await WebDriver._locate(locator);
}

/**
* If you need to access other helpers
* use: this.helpers['helperName']
*/

}

module.exports = CustomHelper;
Loading
Loading