-
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.
feat(EMS-3338): no pdf - application submission - XLSX - export contr…
…act (#2583) * feat(EMS-3338): no pdf - application submission - xlsx - e2e improvements * chore(EMS-3338): fix typo * feat(EMS-3338): no pdf - application submission - xlsx - e2e improvements * feat(EMS-3338): no pdf - application submission - xlsx - export contract section * feat(EMS-3338): no pdf - application submission - xlsx - agent charges * feat(EMS-3338): no pdf - application submission - xlsx - indexes * feat(EMS-3338): no pdf - application submission - xlsx - export contract indexes * feat(EMS-3338): remove commented code * feat(EMS-3338): fix/update unit tests * feat(EMS-3338): address todo comment * feat(EMS-3338): minor code improvements * feat(EMS-3338): fix linting issue
- Loading branch information
Showing
48 changed files
with
1,325 additions
and
186 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
30 changes: 30 additions & 0 deletions
30
...itions/submit-an-application-multiple-policy-type-export-contract-fully-populated.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 @@ | ||
import { APPLICATION } from '../../../../../../../constants'; | ||
|
||
context('Insurance - submit an application - Multiple policy type, fully populated export contract', () => { | ||
let referenceNumber; | ||
|
||
before(() => { | ||
cy.completeSignInAndSubmitAnApplication({ | ||
policyType: APPLICATION.POLICY_TYPE.MULTIPLE, | ||
totalContractValueOverThreshold: true, | ||
attemptedPrivateMarketCover: true, | ||
isUsingAgent: true, | ||
agentIsCharging: true, | ||
agentChargeMethodFixedSum: 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); | ||
}); | ||
}); |
29 changes: 29 additions & 0 deletions
29
...act-conditions/submit-an-application-multiple-policy-type-export-contract-minimal.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,29 @@ | ||
import { APPLICATION } from '../../../../../../../constants'; | ||
|
||
context('Insurance - submit an application - Multiple policy type, minimal export contract', () => { | ||
let referenceNumber; | ||
|
||
before(() => { | ||
cy.completeSignInAndSubmitAnApplication({ | ||
policyType: APPLICATION.POLICY_TYPE.MULTIPLE, | ||
totalContractValueOverThreshold: false, | ||
attemptedPrivateMarketCover: false, | ||
isUsingAgent: false, | ||
agentIsCharging: 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); | ||
}); | ||
}); |
File renamed without changes.
27 changes: 27 additions & 0 deletions
27
...nditions/submit-an-application-single-policy-type-export-contract-fully-populated.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,27 @@ | ||
context('Insurance - submit an application - Single policy type, fully populated export contract', () => { | ||
let referenceNumber; | ||
|
||
before(() => { | ||
cy.completeSignInAndSubmitAnApplication({ | ||
totalContractValueOverThreshold: true, | ||
attemptedPrivateMarketCover: true, | ||
isUsingAgent: true, | ||
agentIsCharging: true, | ||
agentChargeMethodFixedSum: 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); | ||
}); | ||
}); |
26 changes: 26 additions & 0 deletions
26
...tract-conditions/submit-an-application-single-policy-type-export-contract-minimal.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 @@ | ||
context('Insurance - submit an application - Single policy type, minimal export contract', () => { | ||
let referenceNumber; | ||
|
||
before(() => { | ||
cy.completeSignInAndSubmitAnApplication({ | ||
totalContractValueOverThreshold: false, | ||
attemptedPrivateMarketCover: false, | ||
isUsingAgent: false, | ||
agentIsCharging: 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); | ||
}); | ||
}); |
File renamed without changes.
Oops, something went wrong.