Skip to content

Commit

Permalink
Merge pull request #182 from hmcts/fix-crossbrowser-test
Browse files Browse the repository at this point in the history
Fix failing test
  • Loading branch information
FaisalMoJ authored Jan 25, 2024
2 parents d0aa9fa + 6a653e1 commit 73f49e2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pages/SolCreateCheckYourAnswersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ module.exports = {
var unionUpperCase;
if(union === divorceOrDissolution.DIVORCE){
unionUpperCase = union.toUpperCase();
await I.waitInUrl(`/${unionUpperCase}/NFD/solicitor-create-application/submit`);
const isSafariBrowser = await I.isSafariBrowser();
if (isSafariBrowser) {
await I.wait(5);
await I.waitInUrl(`/${unionUpperCase}/NFD/solicitor-create-application/submit`);
} else {
await I.wait(1);
await I.waitInUrl(`/${unionUpperCase}/NFD/solicitor-create-application/submit`);
}
}else if ( union === divorceOrDissolution.DISSOLUTION){
unionUpperCase = union.toUpperCase();
// the switch to DISSOLUTION is not present in the URL Yet , but when done it will be a quick change.
Expand Down

0 comments on commit 73f49e2

Please sign in to comment.