Skip to content

Commit

Permalink
CIV-7109 Fix tests on the pipeline (#2194)
Browse files Browse the repository at this point in the history
* Update tests

* Update

* Update

---------

Co-authored-by: Mounika Ammineni <[email protected]>
  • Loading branch information
mounikahmcts and Mounika Ammineni authored Feb 10, 2023
1 parent ba4c99f commit d276d53
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 55 deletions.
4 changes: 0 additions & 4 deletions e2e/tests/ui_tests/damages/1v1CreateClaim_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,25 +58,21 @@ Scenario('Defendant solicitor acknowledges claim', async ({I}) => {
await I.acknowledgeClaim('fullDefence');
// Reinstate the line below when https://tools.hmcts.net/jira/browse/EUI-6286 is fixed
//await I.see(caseEventMessage('Acknowledge claim'));
await I.click('Sign out');
}).retry(3);

Scenario('Defendant solicitor requests deadline extension', async ({I}) => {
await I.login(config.defendantSolicitorUser);
await I.informAgreedExtensionDate(1);
// Reinstate the line below when https://tools.hmcts.net/jira/browse/EUI-6286 is fixed
//await I.see(caseEventMessage('Inform agreed extension date'));
}).retry(3);

Scenario('Defendant solicitor adds defendant litigation friend', async ({I}) => {
await I.login(config.defendantSolicitorUser);
await I.addDefendantLitigationFriend();
// Reinstate the line below when https://tools.hmcts.net/jira/browse/EUI-6286 is fixed
//await I.see(caseEventMessage('Add litigation friend'));
});

Scenario('Defendant solicitor responds to claim', async ({I}) => {
await I.login(config.defendantSolicitorUser);
await I.respondToClaim({defendant1Response: 'fullDefence'});
// Reinstate the line below when https://tools.hmcts.net/jira/browse/EUI-6286 is fixed
//await I.see(caseEventMessage('Respond to claim'));
Expand Down
1 change: 0 additions & 1 deletion e2e/tests/ui_tests/damages/1v2CreateClaim_SameSol_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ Scenario('Defendant solicitor acknowledges claim', async ({I}) => {
await I.acknowledgeClaim('fullDefence', 'fullDefence', null, true);
// Reinstate the line below when https://tools.hmcts.net/jira/browse/EUI-6286 is fixed
//await I.see(caseEventMessage('Acknowledge claim'));
await I.click('Sign out');
}).retry(3);

Scenario('Defendant solicitor requests deadline extension', async ({I}) => {
Expand Down
1 change: 0 additions & 1 deletion e2e/tests/ui_tests/damages/2v1CreateClaim_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ Scenario('Defendant solicitor acknowledges claim', async ({I}) => {
await I.acknowledgeClaim('fullDefence', null, 'fullDefence');
// Reinstate the line below when https://tools.hmcts.net/jira/browse/EUI-6286 is fixed
//await I.see(caseEventMessage('Acknowledge claim'));
await I.click('Sign out');
}).retry(3);

Scenario('Defendant solicitor requests deadline extension', async ({I}) => {
Expand Down
36 changes: 1 addition & 35 deletions e2e/tests/ui_tests/damages/crossBrowser_test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const config = require('../../../config.js');
const {waitForFinishedBusinessProcess, assignCaseToDefendant, checkToggleEnabled} = require('../../../api/testingSupport');
const {assignCaseToDefendant, checkToggleEnabled} = require('../../../api/testingSupport');
const {PBAv3} = require('../../../fixtures/featureKeys');
const serviceRequest = require('../../../pages/createClaim/serviceRequest.page');

Expand Down Expand Up @@ -49,38 +49,4 @@ Scenario('Full end-to-end journey', async ({I}) => {
console.log('Applicant solicitor notified defendant solicitor of claim details');
// Reinstate the line below when https://tools.hmcts.net/jira/browse/EUI-6286 is fixed
//await I.see(caseEventMessage('Notify claim details'));

await I.login(config.defendantSolicitorUser);
await I.navigateToCaseDetails(caseNumber);
await I.acknowledgeClaim('fullDefence');
console.log('Defendant solicitor acknowledged claim');
// Reinstate the line below when https://tools.hmcts.net/jira/browse/EUI-6286 is fixed
//await I.see(caseEventMessage('Acknowledge claim'));

await I.informAgreedExtensionDate();
console.log('Defendant solicitor requested deadline extension');
// Reinstate the line below when https://tools.hmcts.net/jira/browse/EUI-6286 is fixed
//await I.see(caseEventMessage('Inform agreed extension date'));

await I.login(config.defendantSolicitorUser);
await I.navigateToCaseDetails(caseNumber);
await I.addDefendantLitigationFriend();
console.log('Defendant solicitor added defendant litigation friend');
// Reinstate the line below when https://tools.hmcts.net/jira/browse/EUI-6286 is fixed
//await I.see(caseEventMessage('Add litigation friend'));

await I.login(config.defendantSolicitorUser);
await I.navigateToCaseDetails(caseNumber);
await I.respondToClaim({defendant1Response: 'fullDefence'});
console.log('Defendant solicitor responded to claim');
// Reinstate the line below when https://tools.hmcts.net/jira/browse/EUI-6286 is fixed
//await I.see(caseEventMessage('Respond to claim'));

await I.login(config.applicantSolicitorUser);
await I.navigateToCaseDetails(caseNumber);
await I.respondToDefence();
console.log('Applicant solicitor responded to defence');
// Reinstate the line below when https://tools.hmcts.net/jira/browse/EUI-6286 is fixed
//await I.see(caseEventMessage('View and respond to defence'));
await waitForFinishedBusinessProcess(caseId());
}).retry(2);
12 changes: 5 additions & 7 deletions e2e/tests/ui_tests/lrspec/1v1CreateClaim-LRspec_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ Scenario('1v1 Applicant solicitor creates specified claim for fast track @create
Scenario('1v1 Claimant solicitor Enter Breathing Space', async ({LRspec}) => {
await LRspec.login(config.applicantSolicitorUser);
await LRspec.enterBreathingSpace();
await LRspec.click('Sign out');
}).retry(3);

Scenario('1v1 Claimant solicitor Lift Breathing Space', async ({LRspec}) => {
await LRspec.login(config.applicantSolicitorUser);
await LRspec.liftBreathingSpace();
await LRspec.click('Sign out');
}).retry(3);

Scenario.skip('1v1 Defendant solicitor perform Inform Agreed Extension', async ({LRspec}) => {
console.log('1v1 Defendant solicitor Inform Agreed Extension claim-spec: ' + caseId());
Expand All @@ -60,12 +64,6 @@ Scenario('1v1 Respond To Claim - Defendants solicitor rejects claim for defendan
await LRspec.click('Sign out');
}).retry(3);

Scenario('1v1 Claimant solicitor Lift Breathing Space', async ({LRspec}) => {
await LRspec.login(config.applicantSolicitorUser);
await LRspec.liftBreathingSpace();
await LRspec.click('Sign out');
}).retry(3);

Scenario('1v1 Claimant solicitor responds to defence - claimant Intention to proceed', async ({LRspec}) => {
await LRspec.login(config.applicantSolicitorUser);
await LRspec.respondToDefence({mpScenario: 'ONE_V_ONE', claimType: 'fast'});
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"test:smoke": "MOCHAWESOME_REPORTFILENAME=smoke REPORT_DIR=test-results/smokeTest REPORT_FILE=test-results/smokeTest/results.xml npx codeceptjs run --grep @smoke-tests-unspec --reporter mocha-multi --verbose",
"test:smoke-spec": "MOCHAWESOME_REPORTFILENAME=smoke npx codeceptjs run --grep @smoke-tests-spec --reporter mocha-multi --verbose",
"test:api-unspec": "MOCHAWESOME_REPORTFILENAME=api-unspec npx codeceptjs run-workers --suites 4 --grep @api-unspec --reporter mocha-multi --verbose",
"test:e2e-unspec": "MOCHAWESOME_REPORTFILENAME=e2e-unspec npx codeceptjs run --grep @e2e-unspec --reporter mocha-multi --verbose",
"test:api-sdo": "MOCHAWESOME_REPORTFILENAME=api-sdo npx codeceptjs run --grep @api-sdo --reporter mocha-multi --verbose",
"test:e2e-sdo": "MOCHAWESOME_REPORTFILENAME=e2e-sdo npx codeceptjs run --grep @e2e-sdo --reporter mocha-multi --verbose",
"test:e2e-unspec": "MOCHAWESOME_REPORTFILENAME=e2e-unspec npx codeceptjs run-workers --suites 2 --grep @e2e-unspec --reporter mocha-multi --verbose",
"test:api-sdo": "MOCHAWESOME_REPORTFILENAME=api-sdo npx codeceptjs run-workers --suites 4 --grep @api-sdo --reporter mocha-multi --verbose",
"test:e2e-sdo": "MOCHAWESOME_REPORTFILENAME=e2e-sdo npx codeceptjs run-workers --suites 2 --grep @e2e-sdo --reporter mocha-multi --verbose",
"test:api-dj": "MOCHAWESOME_REPORTFILENAME=api-dj npx codeceptjs run-workers --suites 4 --grep @api-dj --reporter mocha-multi --verbose",
"test:e2e-dj": "MOCHAWESOME_REPORTFILENAME=e2e-dj NODE_TLS_REJECT_UNAUTHORIZED=0 npx codeceptjs run --grep @e2e-1v1-dj --reporter mocha-multi --verbose",
"test:e2e-dj": "MOCHAWESOME_REPORTFILENAME=e2e-dj NODE_TLS_REJECT_UNAUTHORIZED=0 npx codeceptjs run-workers --suites 2 --grep @e2e-1v1-dj --reporter mocha-multi --verbose",
"test:api": "MOCHAWESOME_REPORTFILENAME=api-multiparty npx codeceptjs run --grep @api-multiparty --reporter mocha-multi --verbose",
"test:e2e-wa": "MOCHAWESOME_REPORTFILENAME=api-1v1 npx codeceptjs run --grep @e2e-wa --reporter mocha-multi --verbose",
"test:dmn-tasks": "MOCHAWESOME_REPORTFILENAME=api-1v1 npx codeceptjs run --grep @dmn-task --reporter mocha-multi --verbose",
Expand All @@ -34,11 +34,11 @@
"test:api-spec-1v2": "MOCHAWESOME_REPORTFILENAME=api-spec npx codeceptjs run --grep @api-spec-1v2 --reporter mocha-multi --verbose",
"test:api-spec-1v1": "MOCHAWESOME_REPORTFILENAME=api-spec npx codeceptjs run --grep @api-spec-1v1 --reporter mocha-multi --verbose",
"test:api-spec-small": "MOCHAWESOME_REPORTFILENAME=api-spec npx codeceptjs run --grep @api-spec-small --reporter mocha-multi --verbose",
"test:e2e-spec": "MOCHAWESOME_REPORTFILENAME=e2e-spec npx codeceptjs run --grep @e2e-spec-1v2DS --reporter mocha-multi --verbose",
"test:e2e-spec": "MOCHAWESOME_REPORTFILENAME=e2e-spec npx codeceptjs run-workers --suites 2 --grep @e2e-spec-1v2DS --reporter mocha-multi --verbose",
"test:e2e-spec-1v2DS": "MOCHAWESOME_REPORTFILENAME=e2e-spec npx codeceptjs run --grep @e2e-spec-1v2DS --reporter mocha-multi --verbose",
"test:functional-unspec": "MOCHAWESOME_REPORTFILENAME=functional-unspec npx codeceptjs run --grep '@e2e-unspec-1v2DS' --reporter mocha-multi --verbose",
"test:e2e-cos": "MOCHAWESOME_REPORTFILENAME=functional-cos npx codeceptjs run --grep @e2e-cos --reporter mocha-multi --verbose",
"test:api-cos": "MOCHAWESOME_REPORTFILENAME=api-cos npx codeceptjs run --grep @api-cos --reporter mocha-multi --verbose",
"test:e2e-cos": "MOCHAWESOME_REPORTFILENAME=functional-cos npx codeceptjs run-workers --suites 2 --grep @e2e-cos --reporter mocha-multi --verbose",
"test:api-cos": "MOCHAWESOME_REPORTFILENAME=api-cos npx codeceptjs run-workers --suites 4 --grep @api-cos --reporter mocha-multi --verbose",
"test:functional-dj": "MOCHAWESOME_REPORTFILENAME=functional-unspec npx codeceptjs run --grep @e2e-dj --reporter mocha-multi --verbose",
"test:nightly-multiparty": "MOCHAWESOME_REPORTFILENAME=nightly-multiparty npx codeceptjs run --grep '@e2e-nightly' --reporter mocha-multi --verbose",
"test:rpa": "MOCHAWESOME_REPORTFILENAME=rpa npx codeceptjs run --grep @rpa-handoff-tests --reporter mocha-multi --verbose",
Expand Down

0 comments on commit d276d53

Please sign in to comment.