Skip to content
Open
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
3 changes: 3 additions & 0 deletions Jenkinsfile_CNP
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ withPipeline(type, product, component) {
else if (githubApi.getLabelsbyPattern(env.BRANCH_NAME, "enable_e2e_makeAClaim_test").size() > 0) {
env.E2E_SUITE = "makeAClaim"
}
else if (githubApi.getLabelsbyPattern(env.BRANCH_NAME, "enable_e2e_CC_test").size() > 0) {
env.E2E_SUITE = "commonComponent"
}
}

onMaster() {
Expand Down
1 change: 1 addition & 0 deletions src/e2eTest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"test:pr": "yarn playwright install && yarn playwright test --project chrome --grep '@PR'; EXIT_CODE=$?; allure generate -o ../../e2e-output --clean; tsx ./config/clean-attachments.config.ts; exit $EXIT_CODE",
"test:regression": "yarn playwright install && yarn playwright test --project chrome --grep '@regression'; EXIT_CODE=$?; allure generate -o ../../e2e-output --clean; tsx ./config/clean-attachments.config.ts; exit $EXIT_CODE",
"test:makeAClaim": "yarn playwright install && yarn playwright test --project chrome --grep '@MAC'; EXIT_CODE=$?; allure generate -o ../../e2e-output --clean; tsx ./config/clean-attachments.config.ts; exit $EXIT_CODE",
"test:commonComponent": "yarn playwright install && yarn playwright test --project chrome --grep '@CC'; EXIT_CODE=$?; allure generate -o ../../e2e-output --clean; tsx ./config/clean-attachments.config.ts; exit $EXIT_CODE",
"test:chrome": "yarn playwright install && yarn playwright test --project chrome; EXIT_CODE=$?; allure generate -o ../../e2e-output --clean; tsx ./config/clean-attachments.config.ts; exit $EXIT_CODE",
"test:firefox": "yarn playwright install && yarn playwright test --project firefox; EXIT_CODE=$?; allure generate -o ../../e2e-output --clean; tsx ./config/clean-attachments.config.ts; exit $EXIT_CODE",
"test:webkit": "yarn playwright install && yarn playwright test --project webkit; EXIT_CODE=$?; allure generate -o ../../e2e-output --clean; tsx ./config/clean-attachments.config.ts; exit $EXIT_CODE",
Expand Down
4 changes: 3 additions & 1 deletion src/e2eTest/tests/CommonComponent/caseLinking.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ test.afterEach(async () => {
}
});

//Case Linking is not working in preview env as explained in https://tools.hmcts.net/jira/browse/HDPI-6095
//So these tests won't be executed in preview
test.describe('[Common Component Case Linking]', async () => {
test('Case Linking @nightly @caseLinking', async () => {
await performAction('select', caseSummary.nextStepEventList, caseSummary.linkCaseEvent);
Expand Down Expand Up @@ -75,4 +77,4 @@ test.describe('[Common Component Case Linking]', async () => {
await performValidation('bannerAlert', 'Case #.* has been updated with event: Manage case links');
await performAction('verifyLinkedCases', { caseRefInput: caseNumbers });
});
});
});
2 changes: 1 addition & 1 deletion src/e2eTest/tests/CommonComponent/feeAndPay.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ test.afterEach(async () => {
}
});

test.describe('[Common Component Fee And Pay]', async () => {
test.describe('[Common Component Fee And Pay] @CC' , async () => {
test('Fee And Pay - Pay by account PBA @nightly @feeAndPay', async () => {
await performAction('clickButton', serviceRequest.payNowLink);
await performAction('selectPaymentTypePBA', {
Expand Down
Loading