-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(EMS-3436-3448): no pdf - application submission - XLSX - content …
…mapping issues (#2547) * fix(EMS-3436-3448): no pdf - application submission - xlsx mapping issues * fix(EMS-3436-3448): fix typo
- Loading branch information
Showing
14 changed files
with
145 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...application-multiple-policy-type-has-not-traded-with-buyer-and-no-code-of-conduct.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { APPLICATION } from '../../../../../../../constants'; | ||
|
||
context( | ||
'Insurance - submit an application, Multiple contract policy, no broker, no `have traded with buyer before` and no `have code of conduct` declaration', | ||
() => { | ||
let referenceNumber; | ||
|
||
before(() => { | ||
cy.createAccount({}); | ||
}); | ||
|
||
beforeEach(() => { | ||
cy.saveSession(); | ||
|
||
cy.completeSignInAndSubmitAnApplication({ | ||
policyType: APPLICATION.POLICY_TYPE.MULTIPLE, | ||
exporterHasTradedWithBuyer: false, | ||
hasAntiBriberyCodeOfConduct: false, | ||
exportingWithCodeOfConduct: false, | ||
}).then((refNumber) => { | ||
referenceNumber = refNumber; | ||
}); | ||
}); | ||
|
||
after(() => { | ||
cy.deleteApplication(referenceNumber); | ||
}); | ||
|
||
it('should successfully submit the application and redirect to `application submitted`', () => { | ||
cy.assertApplicationSubmittedUrl(referenceNumber); | ||
}); | ||
}, | ||
); |
16 changes: 8 additions & 8 deletions
16
...with-buyer-and-no-code-of-conduct.spec.js → ...licy-type-without-code-of-conduct.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...submit-an-application-multiple-policy-type-without-exporting-with-code-of-conduct.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { APPLICATION } from '../../../../../../../constants'; | ||
|
||
context('Insurance - submit an application - Multiple policy type, without `exporting with code of conduct` declaration', () => { | ||
let referenceNumber; | ||
|
||
before(() => { | ||
cy.completeSignInAndSubmitAnApplication({ | ||
policyType: APPLICATION.POLICY_TYPE.MULTIPLE, | ||
exportingWithCodeOfConduct: false, | ||
}).then((refNumber) => { | ||
referenceNumber = refNumber; | ||
}); | ||
}); | ||
|
||
beforeEach(() => { | ||
cy.saveSession(); | ||
}); | ||
|
||
after(() => { | ||
cy.deleteApplication(referenceNumber); | ||
}); | ||
|
||
it('should successfully submit the application and redirect to `application submitted`', () => { | ||
cy.assertApplicationSubmittedUrl(referenceNumber); | ||
}); | ||
}); |
26 changes: 26 additions & 0 deletions
26
...cy-conditions/submit-an-application-multiple-policy-type-different-name-on-policy.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { APPLICATION } from '../../../../../../../constants'; | ||
|
||
context('Insurance - submit an application - Multiple policy type, with a different `name on policy`', () => { | ||
let referenceNumber; | ||
|
||
before(() => { | ||
cy.completeSignInAndSubmitAnApplication({ | ||
policyType: APPLICATION.POLICY_TYPE.MULTIPLE, | ||
differentPolicyContact: true, | ||
}).then((refNumber) => { | ||
referenceNumber = refNumber; | ||
}); | ||
}); | ||
|
||
beforeEach(() => { | ||
cy.saveSession(); | ||
}); | ||
|
||
after(() => { | ||
cy.deleteApplication(referenceNumber); | ||
}); | ||
|
||
it('should successfully submit the application and redirect to `application submitted`', () => { | ||
cy.assertApplicationSubmittedUrl(referenceNumber); | ||
}); | ||
}); |
30 changes: 30 additions & 0 deletions
30
...n-application-single-policy-type-has-not-traded-with-buyer-and-no-code-of-conduct.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
context( | ||
'Insurance - submit an application, Single contract policy, no broker, no `have traded with buyer before` and no `have code of conduct` declaration', | ||
() => { | ||
let referenceNumber; | ||
|
||
before(() => { | ||
cy.createAccount({}); | ||
}); | ||
|
||
beforeEach(() => { | ||
cy.saveSession(); | ||
|
||
cy.completeSignInAndSubmitAnApplication({ | ||
exporterHasTradedWithBuyer: false, | ||
hasAntiBriberyCodeOfConduct: false, | ||
exportingWithCodeOfConduct: false, | ||
}).then((refNumber) => { | ||
referenceNumber = refNumber; | ||
}); | ||
}); | ||
|
||
after(() => { | ||
cy.deleteApplication(referenceNumber); | ||
}); | ||
|
||
it('should successfully submit the application and redirect to `application submitted`', () => { | ||
cy.assertApplicationSubmittedUrl(referenceNumber); | ||
}); | ||
}, | ||
); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters