Skip to content

Commit

Permalink
CIV-000 Moved nonprod states to prod so that its available for global…
Browse files Browse the repository at this point in the history
… search (#2305)

* Moved nonprod states to prod so that its available for global search

* Update package.json

* Update e2e tests

---------

Co-authored-by: mounikahmcts <[email protected]>
Co-authored-by: Mounika Ammineni <[email protected]>
  • Loading branch information
3 people authored Mar 6, 2023
1 parent cc97904 commit 56d59de
Show file tree
Hide file tree
Showing 6 changed files with 127 additions and 125 deletions.
4 changes: 4 additions & 0 deletions Jenkinsfile_CNP
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ withPipeline(type, product, component) {
uploadCoreCaseDataDefinitions('staging')
}

before('functionalTest:aat') {
env.IDAM_STUB_ENABLED=false
}

afterAlways('smoketest:aat') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'test-results/smokeTest/**/*'
}
Expand Down

This file was deleted.

119 changes: 119 additions & 0 deletions ccd-definition/AuthorisationCaseState/AuthorisationCaseState.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,124 @@
"CRUD": "R"
}
]
},
{
"CaseTypeID": "CIVIL",
"CaseStateID": "PENDING_CASE_ISSUED",
"AccessControl": [
{
"UserRoles": [
"caseworker-ras-validation",
"GS_profile"
],
"CRUD": "R"
}
]
},
{
"CaseTypeID": "CIVIL",
"CaseStateID": "AWAITING_RESPONDENT_ACKNOWLEDGEMENT",
"UserRoles": [
"caseworker-ras-validation",
"GS_profile"
],
"CRUD": "R"
},
{
"CaseTypeID": "CIVIL",
"CaseStateID": "AWAITING_APPLICANT_INTENTION",
"UserRoles": [
"caseworker-ras-validation",
"GS_profile"
],
"CRUD": "R"
},
{
"CaseTypeID": "CIVIL",
"CaseStateID": "CASE_DISMISSED",
"UserRoles": [
"caseworker-ras-validation",
"GS_profile"
],
"CRUD": "R"
},
{
"CaseTypeID": "CIVIL",
"CaseStateID": "PROCEEDS_IN_HERITAGE_SYSTEM",
"UserRoles": [
"caseworker-ras-validation",
"GS_profile"
],
"CRUD": "R"
},
{
"CaseTypeID": "CIVIL",
"CaseStateID": "CASE_ISSUED",
"AccessControl": [
{
"UserRoles": [
"caseworker-ras-validation",
"GS_profile"
],
"CRUD": "R"
}
]
},
{
"CaseTypeID": "CIVIL",
"CaseStateID": "AWAITING_CASE_DETAILS_NOTIFICATION",
"AccessControl": [
{
"UserRoles": [
"caseworker-ras-validation",
"GS_profile"
],
"CRUD": "R"
}
]
},
{
"CaseTypeID": "CIVIL",
"CaseStateID": "HEARING_READINESS",
"AccessControl": [
{
"UserRoles": [
"judge-profile",
"hearing-schedule-access",
"caseworker-civil-admin",
"caseworker-civil-solicitor"
],
"CRUD": "CRU"
},
{
"UserRoles": [
"caseworker-ras-validation",
"GS_profile"
],
"CRUD": "R"
}
]
},
{
"CaseTypeID": "CIVIL",
"CaseStateID": "PREPARE_FOR_HEARING_CONDUCT_HEARING",
"AccessControl": [
{
"UserRoles": [
"judge-profile",
"hearing-schedule-access",
"caseworker-civil-admin",
"caseworker-civil-solicitor"
],
"CRUD": "CRU"
},
{
"UserRoles": [
"caseworker-ras-validation",
"GS_profile"
],
"CRUD": "R"
}
]
}
]
2 changes: 1 addition & 1 deletion codecept.conf.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
exports.config = {
tests: [
'./e2e/tests/*_test.js',
'./e2e/tests/api_tests/defaultJudgments/*_test.js',
'./e2e/tests/api_tests/damages/*_test.js',
'./e2e/tests/api_tests/lrspec/*_test.js',
'./e2e/tests/api_tests/lrspec_cui/*_test.js',
'./e2e/tests/api_tests/defaultJudgments/*_test.js',
'./e2e/tests/api_tests/sdo/*_test.js',
'./e2e/tests/ui_tests/damages/*_test.js',
'./e2e/tests/ui_tests/damages/nightly/*_test.js',
Expand Down
2 changes: 1 addition & 1 deletion e2e/steps_file.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ module.exports = function () {
this.amOnPage(config.url.manageCase, 90);

if (!config.idamStub.enabled || config.idamStub.enabled === 'false') {
output.log(`Signing in user: ${user.type}`);
console.log(`Signing in user: ${user.type}`);
await loginPage.signIn(user);
}
}, SIGNED_IN_SELECTOR);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"test:fullfunctional": "./e2e/run-features-flag-enabled-full-functional-tests.sh",
"test:e2e-nightly-prod": "MOCHAWESOME_REPORTFILENAME=non-prod-e2e-ft npx codeceptjs run-workers --suites 2 --grep '@e2e-nightly-prod' --reporter mocha-multi --verbose",
"test:e2e-nightly-nonprod": "MOCHAWESOME_REPORTFILENAME=non-prod-e2e-ft npx codeceptjs run-workers --suites 2 --grep '@e2e-nightly-nonprod' --reporter mocha-multi --verbose",
"test:non-prod-e2e-ft": "MOCHAWESOME_REPORTFILENAME=non-prod-e2e-ft npx codeceptjs run-workers --suites 2 --grep '@master-e2e-ft|@non-prod-e2e-ft' --reporter mocha-multi --verbose",
"test:master-e2e-ft": "MOCHAWESOME_REPORTFILENAME=master-e2e-ft npx codeceptjs run-workers --suites 2 --grep @master-e2e-ft --reporter mocha-multi --verbose",
"test:non-prod-e2e-ft": "MOCHAWESOME_REPORTFILENAME=non-prod-e2e-ft npx codeceptjs run-workers --suites 3 --grep '@master-e2e-ft|@non-prod-e2e-ft' --reporter mocha-multi --verbose",
"test:master-e2e-ft": "MOCHAWESOME_REPORTFILENAME=master-e2e-ft npx codeceptjs run-workers --suites 3 --grep @master-e2e-ft --reporter mocha-multi --verbose",
"test:functional": "./e2e/run-functional-tests.sh",
"test:sdo": "MOCHAWESOME_REPORTFILENAME=functional npx codeceptjs run --grep @sdo --reporter mocha-multi --verbose",
"generate-dev": "./bin/build-release-ccd-definition.sh local",
Expand Down

0 comments on commit 56d59de

Please sign in to comment.