Skip to content

Commit

Permalink
DTSCCI-297 - Categorising API Tests (#4400)
Browse files Browse the repository at this point in the history
* categorising api tests

* categorising spec tests

* updating unspec full defence tag

* updating test categories again

* updating tests

* updating more tests

* Update package.json

* Update package.json

* Changing r2 sdo command

* Update api_request_for_reconsideration_test.js

* Update api_noise_induced_hearing_loss_test.js

* Update api_dispute_resolution_hearing_test.js

* Update sdo_flight_delay_test.js

* Update package.json

* Update api_1v1_test.js

* Update package.json

* Update api_transfer_online_case_test.js
  • Loading branch information
mfallonhmcts authored Jun 3, 2024
1 parent c125b01 commit 95d7921
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ const config = require('../../../config.js');
const mpScenario = 'ONE_V_TWO_TWO_LEGAL_REP';

// add @api-tests to run
Feature('CCD 1v2 Different Solicitor API test @api-unspec @api-multiparty @api-tests-1v2DS @api-nightly-prod');

Feature('CCD 1v2 Different Solicitor API test @api-unspec @api-multiparty @api-tests-1v2DS @api-nightly-prod @api-unspec-full-defence');

Scenario('Create claim', async ({I, api}) => {
await api.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, mpScenario);
Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/api_tests/damages/api_1v2_same_solicitor_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const config = require('../../../config.js');
const mpScenario = 'ONE_V_TWO_ONE_LEGAL_REP';


Feature('CCD 1v2 Same Solicitor API test @api-unspec @api-tests-1v2SS @api-nightly-prod');
Feature('CCD 1v2 Same Solicitor API test @api-unspec @api-tests-1v2SS @api-nightly-prod @api-unspec-full-defence');

Scenario('Create claim', async ({I, api}) => {
await api.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, mpScenario);
Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/api_tests/damages/api_2v1_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const config = require('../../../config.js');
const mpScenario = 'TWO_V_ONE';

Feature('CCD 2v1 API test @api-unspec @api-multiparty @api-tests-2v1 @api-prod @api-nightly-prod');
Feature('CCD 2v1 API test @api-unspec @api-multiparty @api-tests-2v1 @api-prod @api-nightly-prod @api-unspec-full-defence');

Scenario('Create claim', async ({I, api}) => {
await api.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, mpScenario);
Expand Down
9 changes: 5 additions & 4 deletions e2e/tests/api_tests/lrspec/api_1v1_spec_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,28 @@ Scenario('1v1 part admit', async ({I, api_spec}) => {
await api_spec.defendantResponse(config.defendantSolicitorUser, 'PART_ADMISSION');
});

Scenario('1v1 counter claim', async ({I, api_spec}) => {
Scenario('1v1 counter claim @api-spec-counterclaim', async ({I, api_spec}) => {
await api_spec.createClaimWithRepresentedRespondent(config.applicantSolicitorUser);
await api_spec.defendantResponse(config.defendantSolicitorUser, 'COUNTER_CLAIM');
});

Scenario('1v1 full defence claimant and defendant response', async ({I, api_spec}) => {

Scenario('1v1 full defence claimant and defendant response @api-spec-full-defence', async ({I, api_spec}) => {
await api_spec.createClaimWithRepresentedRespondent(config.applicantSolicitorUser);
await api_spec.informAgreedExtensionDate(config.applicantSolicitorUser);
await api_spec.defendantResponse(config.defendantSolicitorUser);
await api_spec.claimantResponse(config.applicantSolicitorUser, 'FULL_DEFENCE', 'ONE_V_ONE',
'AWAITING_APPLICANT_INTENTION');
});

Scenario('1v1 full admit claimant and defendant response', async ({I, api_spec}) => {
Scenario('1v1 full admit claimant and defendant response @api-spec-full-admit', async ({I, api_spec}) => {
await api_spec.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, 'FULL_ADMISSION');
await api_spec.defendantResponse(config.defendantSolicitorUser, 'FULL_ADMISSION');
await api_spec.claimantResponse(config.applicantSolicitorUser, 'FULL_ADMISSION', 'ONE_V_ONE',
'AWAITING_APPLICANT_INTENTION');
});

Scenario('1v1 part admit defence claimant and defendant response', async ({I, api_spec}) => {
Scenario('1v1 part admit defence claimant and defendant response @api-spec-part-admit', async ({I, api_spec}) => {
await api_spec.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, 'PART_ADMISSION');
await api_spec.defendantResponse(config.defendantSolicitorUser, 'PART_ADMISSION');
await api_spec.claimantResponse(config.applicantSolicitorUser, 'PART_ADMISSION', 'ONE_V_ONE',
Expand Down
8 changes: 4 additions & 4 deletions e2e/tests/api_tests/lrspec/api_1v2_spec_fast_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const config = require('../../../config.js');
const {checkCarmToggleEnabled} = require('../../../api/testingSupport');

Feature('CCD 1v2 API test @api-spec-fast @api-nightly-prod');
Scenario('1v2 fast claim counter claim', async ({I, api_spec_fast}) => {
Scenario('1v2 fast claim counter claim @api-spec-counterclaim', async ({I, api_spec_fast}) => {
await api_spec_fast.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, 'ONE_V_TWO_SAME_SOL');
await api_spec_fast.defendantResponse(config.defendantSolicitorUser, 'COUNTER_CLAIM', 'ONE_V_TWO');
});
Expand All @@ -26,7 +26,7 @@ Scenario('1v2 different response no full defence', async ({I, api_spec_fast}) =>
await api_spec_fast.defendantResponse(config.defendantSolicitorUser, 'DIFF_NOT_FULL_DEFENCE', 'ONE_V_TWO');
});

Scenario('1v2 full defence and claimant response', async ({I, api_spec_fast}) => {
Scenario('1v2 full defence and claimant response @api-spec-full-defence', async ({I, api_spec_fast}) => {
await api_spec_fast.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, 'ONE_V_TWO_SAME_SOL');
await api_spec_fast.defendantResponse(config.defendantSolicitorUser, 'FULL_DEFENCE', 'ONE_V_TWO');
await api_spec_fast.claimantResponse(config.applicantSolicitorUser, 'FULL_DEFENCE', 'ONE_V_TWO',
Expand Down Expand Up @@ -60,14 +60,14 @@ Scenario('1v2 fast claim part admit, defendant response', async ({I, api_spec_fa
await api_spec_fast.defendantResponse(config.defendantSolicitorUser, 'PART_ADMISSION', 'ONE_V_TWO');
});

Scenario('1v2 fast claim fast claim full admit, defendant and claimant response', async ({I, api_spec_fast}) => {
Scenario('1v2 fast claim fast claim full admit, defendant and claimant response @api-spec-full-admit', async ({I, api_spec_fast}) => {
await api_spec_fast.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, 'ONE_V_TWO_SAME_SOL');
await api_spec_fast.defendantResponse(config.defendantSolicitorUser, 'FULL_ADMISSION', 'ONE_V_TWO');
await api_spec_fast.claimantResponse(config.applicantSolicitorUser, 'FULL_ADMISSION', 'ONE_V_TWO',
'AWAITING_APPLICANT_INTENTION');
});

Scenario('1v2 fast claim part admit, defendant and claimant response', async ({I, api_spec_fast}) => {
Scenario('1v2 fast claim part admit, defendant and claimant response @api-spec-part-admit', async ({I, api_spec_fast}) => {
await api_spec_fast.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, 'ONE_V_TWO_SAME_SOL');
await api_spec_fast.defendantResponse(config.defendantSolicitorUser, 'PART_ADMISSION', 'ONE_V_TWO');
await api_spec_fast.claimantResponse(config.applicantSolicitorUser, 'PART_ADMISSION', 'ONE_V_TWO',
Expand Down
8 changes: 4 additions & 4 deletions e2e/tests/api_tests/lrspec/api_2v1_spec_fast_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Scenario('2v1 fast claim full defence', async ({I, api_spec_fast}) => {
await api_spec_fast.manageCaseFlags(config.hearingCenterAdminWithRegionId2);
});

Scenario('2v1 fast claim counter claim', async ({I, api_spec_fast}) => {
Scenario('2v1 fast claim counter claim @api-spec-counterclaim', async ({I, api_spec_fast}) => {
await api_spec_fast.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, 'TWO_V_ONE');
await api_spec_fast.defendantResponse(config.defendantSolicitorUser, 'COUNTER_CLAIM', 'TWO_V_ONE');
});
Expand All @@ -32,7 +32,7 @@ xScenario('2v1 fast claim part admission', async ({I, api_spec_fast}) => {
await api_spec_fast.defendantResponse(config.defendantSolicitorUser, 'PART_ADMISSION', 'TWO_V_ONE');
});

Scenario('2v1 fast claim full defence and claimant response @api-prod @api-nonprod-specified', async ({I, api_spec_fast}) => {
Scenario('2v1 fast claim full defence and claimant response @api-prod @api-nonprod-specified @api-spec-full-defence', async ({I, api_spec_fast}) => {
await api_spec_fast.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, 'TWO_V_ONE');
await api_spec_fast.defendantResponse(config.defendantSolicitorUser, 'FULL_DEFENCE', 'TWO_V_ONE');
await api_spec_fast.claimantResponse(config.applicantSolicitorUser, 'FULL_DEFENCE', 'TWO_V_ONE',
Expand All @@ -46,14 +46,14 @@ Scenario('2v1 fast claim full defence and not proceed', async ({I, api_spec_fast
'AWAITING_APPLICANT_INTENTION');
});

Scenario('2v1 fast claim full admission and claimant response', async ({I, api_spec_fast}) => {
Scenario('2v1 fast claim full admission and claimant response @api-spec-full-admit', async ({I, api_spec_fast}) => {
await api_spec_fast.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, 'TWO_V_ONE');
await api_spec_fast.defendantResponse(config.defendantSolicitorUser, 'FULL_ADMISSION', 'TWO_V_ONE');
await api_spec_fast.claimantResponse(config.applicantSolicitorUser, 'FULL_ADMISSION', 'TWO_V_ONE',
'AWAITING_APPLICANT_INTENTION');
});

Scenario('2v1 fast claim part admission and claimant response', async ({I, api_spec_fast}) => {
Scenario('2v1 fast claim part admission and claimant response @api-spec-part-admit', async ({I, api_spec_fast}) => {
await api_spec_fast.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, 'TWO_V_ONE');
await api_spec_fast.defendantResponse(config.defendantSolicitorUser, 'PART_ADMISSION', 'TWO_V_ONE');
await api_spec_fast.claimantResponse(config.applicantSolicitorUser, 'PART_ADMISSION', 'TWO_V_ONE',
Expand Down
10 changes: 5 additions & 5 deletions e2e/tests/api_tests/lrspec/api_2v1_spec_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Scenario('2v1 small claim full defence', async ({I, api_spec}) => {
await api_spec.defendantResponse(config.defendantSolicitorUser, 'FULL_DEFENCE', 'TWO_V_ONE');
});

Scenario('2v1 small claim counter claim', async ({I, api_spec}) => {
Scenario('2v1 small claim counter claim @api-spec-counterclaim', async ({I, api_spec}) => {
await api_spec.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, 'TWO_V_ONE');
await api_spec.defendantResponse(config.defendantSolicitorUser, 'COUNTER_CLAIM', 'TWO_V_ONE');
});
Expand All @@ -35,28 +35,28 @@ Scenario('2v1 small claim different response no full defence', async ({I, api_sp
await api_spec.defendantResponse(config.defendantSolicitorUser, 'DIFF_NOT_FULL_DEFENCE', 'TWO_V_ONE');
});

Scenario('2v1 small claim full defence and defendant response', async ({I, api_spec}) => {
Scenario('2v1 small claim full defence and defendant response @api-spec-full-defence', async ({I, api_spec}) => {
await api_spec.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, 'TWO_V_ONE');
await api_spec.defendantResponse(config.defendantSolicitorUser, 'FULL_DEFENCE', 'TWO_V_ONE');
await api_spec.claimantResponse(config.applicantSolicitorUser, 'FULL_DEFENCE', 'TWO_V_ONE',
'AWAITING_APPLICANT_INTENTION');
});

Scenario('2v1 small claim full defence and not proceed', async ({I, api_spec}) => {
Scenario('2v1 small claim full defence and not proceed @api-spec-full-defence', async ({I, api_spec}) => {
await api_spec.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, 'TWO_V_ONE');
await api_spec.defendantResponse(config.defendantSolicitorUser, 'FULL_DEFENCE', 'TWO_V_ONE');
await api_spec.claimantResponse(config.applicantSolicitorUser, 'NOT_PROCEED', 'TWO_V_ONE',
'AWAITING_APPLICANT_INTENTION');
});

Scenario('2v1 small claim part admission and response', async ({I, api_spec}) => {
Scenario('2v1 small claim part admission and response @api-spec-part-admit', async ({I, api_spec}) => {
await api_spec.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, 'TWO_V_ONE');
await api_spec.defendantResponse(config.defendantSolicitorUser, 'PART_ADMISSION', 'TWO_V_ONE');
await api_spec.claimantResponse(config.applicantSolicitorUser, 'PART_ADMISSION', 'TWO_V_ONE',
'AWAITING_APPLICANT_INTENTION');
});

Scenario('2v1 small claim full admission and response', async ({I, api_spec}) => {
Scenario('2v1 small claim full admission and response @api-spec-full-admit', async ({I, api_spec}) => {
await api_spec.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, 'TWO_V_ONE');
await api_spec.defendantResponse(config.defendantSolicitorUser, 'FULL_ADMISSION', 'TWO_V_ONE');
await api_spec.claimantResponse(config.applicantSolicitorUser, 'FULL_ADMISSION', 'TWO_V_ONE',
Expand Down
6 changes: 3 additions & 3 deletions e2e/tests/api_tests/sdo/api_transfer_online_case_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const caseWorkerUser = config.testEarlyAdopterCourts ? config.hearingCenterAdmin
// const caseWorkerUser = config.tribunalCaseworkerWithRegionId1Local;
const fastClaimAmount = '11000';

Feature('Transfer Online Case 1v1 API test - fast claim - unspec @api-unspec @api-nightly-prod');
Feature('Transfer Online Case 1v1 API test - fast claim - unspec @api-unspec @api-nightly-prod @api-toc');

async function prepareClaim(api) {
await api.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, mpScenario1v1, fastClaimAmount);
Expand Down Expand Up @@ -43,7 +43,7 @@ AfterSuite(async ({api}) => {
await api.cleanUp();
});

Feature('Transfer Online Case 1v2 API test - fast claim - unspec @api-unspec @api-tests-1v2SS @api-nightly-prod');
Feature('Transfer Online Case 1v2 API test - fast claim - unspec @api-unspec @api-tests-1v2SS @api-nightly-prod @api-toc');

Scenario('1v2 full defence unspecified - not suitable SDO - Transfer Case)', async ({api}) => {
await api.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, mpScenario1v2, fastClaimAmount);
Expand All @@ -61,7 +61,7 @@ AfterSuite(async ({api}) => {
await api.cleanUp();
});

Feature('Transfer Online Case 1v2 API test - small claim - spec @api-spec-1v2 @api-nightly-prod');
Feature('Transfer Online Case 1v2 API test - small claim - spec @api-spec-1v2 @api-nightly-prod @api-toc');

Scenario('Transfer Online Spec claim 1v2 - not suitable SDO - Transfer Case', async ({api_spec}) => {
await prepareClaimSpec(api_spec);
Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/api_tests/sdo/sdo_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ Scenario('1v1 full defence unspecified - judge draws disposal order - hearing sc
}
});

Scenario('1v1 full defence specified - legal advisor draws disposal order - hearing scheduled @wa-r4', async ({api_spec_small, WA}) => {
Scenario('1v1 full defence specified - legal advisor draws disposal order - hearing scheduled @wa-r4 @sdo-spec @api-sdo', async ({api_spec_small, WA}) => {
// sdo requires judicial_referral, which is not past preview
await prepareSpecSmallClaim(api_spec_small);
if (config.runWAApiTest) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const claimAmount = '100';

let mediationAdminRegion4 = config.localMediationTests ? config.nbcUserLocal : config.nbcUserWithRegionId4;

Feature('Dispute resolution hearing API test - fast claim - unspec @api-unspec @api-tests-1v1 @api-nonprod');
Feature('Dispute resolution hearing API test - fast claim - unspec @api-unspec @api-tests-1v1 @api-nonprod @api-r2-sdo');

async function prepareClaim(api) {
await api.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, mpScenario1v1, claimAmount);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const hearingCenterAdminToBeUsed = config.testEarlyAdopterCourts ? config.hearin
//const hearingCenterAdminToBeUsed = config.hearingCenterAdminLocal;


Feature('Noise Induced Hearing Loss API test - fast claim - unspec @api-unspec @api-tests-1v1 @api-nonprod');
Feature('Noise Induced Hearing Loss API test - fast claim - unspec @api-unspec @api-tests-1v1 @api-nonprod @api-r2-sdo');

async function prepareClaim(api) {
await api.createClaimWithRepresentedRespondent(config.applicantSolicitorUser, mpScenario1v1Nihl, claimAmount);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ await api_spec_small.defendantResponse(config.defendantSolicitorUser, 'FULL_DEFE
await api_spec_small.claimantResponse(config.applicantSolicitorUser, true);
}

Feature('Request for reconsideration - 1v1 - spec @api-specified @api-nightly-prod');
Feature('Request for reconsideration - 1v1 - spec @api-specified @api-nightly-prod @api-r2-sdo');

Scenario('1v1 spec request for reconsideration for uphold previous order', async ({api_spec_small}) => {
if (['preview', 'demo'].includes(config.runningEnv)) {
Expand Down
5 changes: 3 additions & 2 deletions e2e/tests/api_tests/sdo_R2/sdo_flight_delay_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ async function prepareClaimOtherOption(api_spec, claimAmount) {
}

Feature('Create SDO SmallTrack- Flight Delay - 1v1 - spec @api-specified @api-nonprod');
Scenario('1v1 full defence unspecified - judge draws small claims WITHOUT sum of damages - flight delay', async ({api_spec}) => {

Scenario('1v1 full defence unspecified - judge draws small claims WITHOUT sum of damages - flight delay @api-r2-sdo', async ({api_spec}) => {
if (['preview', 'demo'].includes(config.runningEnv)) {
await prepareClaim(api_spec, claimAmountSmallTrack);
await api_spec.createSDO(judgeUser, 'CREATE_SMALL');
Expand All @@ -37,7 +38,7 @@ Scenario('1v1 full defence unspecified - judge draws small claims WITHOUT sum of
}
});

Scenario('1v1 specified - flight delay other option Small-claim', async ({api_spec}) => {
Scenario('1v1 specified - flight delay other option Small-claim @api-spec-full-defence', async ({api_spec}) => {
if (['preview', 'demo'].includes(config.runningEnv)) {
await prepareClaimOtherOption(api_spec, claimAmountSmallTrack);
}
Expand Down
Loading

0 comments on commit 95d7921

Please sign in to comment.