Skip to content

Commit

Permalink
add retries to scenarios (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasrice authored Sep 27, 2021
1 parent f5fab7d commit 0b5d885
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions e2e/tests/solicitorCreatesClaim_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Scenario('Applicant solicitor creates claim @create-claim', async ({I}) => {

caseNumber = await I.grabCaseNumber();
await I.see(`Case ${caseNumber} has been created.`);
});
}).retry(3);

Scenario('Applicant solicitor notifies defendant solicitor of claim', async ({I}) => {
await I.notifyClaim();
Expand All @@ -23,18 +23,20 @@ Scenario('Applicant solicitor notifies defendant solicitor of claim', async ({I}
if (config.multipartyTestsEnabled) {
await assignCaseToDefendant(caseId(), 'RESPONDENTSOLICITORTWO', config.secondDefendantSolicitorUser);
}
});
}).retry(3);

Scenario('Applicant solicitor notifies defendant solicitor of claim details', async ({I}) => {
await I.notifyClaimDetails();
await I.see(caseEventMessage('Notify claim details'));
});
await I.click('Sign out');
}).retry(3);

Scenario('Defendant solicitor acknowledges claim', async ({I}) => {
await I.login(config.defendantSolicitorUser);
await I.acknowledgeClaim('fullDefence');
await I.see(caseEventMessage('Acknowledge claim'));
});
await I.click('Sign out');
}).retry(3);

Scenario('Defendant solicitor requests deadline extension', async ({I}) => {
if (config.multipartyTestsEnabled) {
Expand All @@ -46,7 +48,7 @@ Scenario('Defendant solicitor requests deadline extension', async ({I}) => {
await I.informAgreedExtensionDate();
await I.see(caseEventMessage('Inform agreed extension date'));

});
}).retry(3);

Scenario('Defendant solicitor adds defendant litigation friend', async ({I}) => {
await I.addDefendantLitigationFriend();
Expand All @@ -56,11 +58,12 @@ Scenario('Defendant solicitor adds defendant litigation friend', async ({I}) =>
Scenario('Defendant solicitor responds to claim', async ({I}) => {
await I.respondToClaim('fullDefence');
await I.see(caseEventMessage('Respond to claim'));
});
await I.click('Sign out');
}).retry(3);

Scenario('Applicant solicitor responds to defence', async ({I}) => {
await I.login(config.applicantSolicitorUser);
await I.respondToDefence();
await I.see(caseEventMessage('View and respond to defence'));
await waitForFinishedBusinessProcess(caseId());
});
}).retry(3);

0 comments on commit 0b5d885

Please sign in to comment.