-
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.
Merge branch 'main-iterations' into feat/EMS-3877
- Loading branch information
Showing
103 changed files
with
830 additions
and
306 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
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
12 changes: 12 additions & 0 deletions
12
e2e-tests/commands/insurance/complete-and-submit-how-much-the-agent-is-charging-form.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,12 @@ | ||
/** | ||
* completeAndSubmitHowMuchTheAgentIsChargingForm | ||
* Complete and submit the "How much the agent is charging" form | ||
* @param {String} fixedSumAmount: Fixed sum amount | ||
*/ | ||
const completeAndSubmitHowMuchTheAgentIsChargingForm = ({ fixedSumAmount }) => { | ||
cy.completeHowMuchTheAgentIsChargingForm({ fixedSumAmount }); | ||
|
||
cy.clickSubmitButton(); | ||
}; | ||
|
||
export default completeAndSubmitHowMuchTheAgentIsChargingForm; |
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
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
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
11 changes: 0 additions & 11 deletions
11
e2e-tests/commands/shared-commands/click-events/click-provide-alternative-currency-link.js
This file was deleted.
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
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
3 changes: 1 addition & 2 deletions
3
...ns/submit-an-application-multiple-policy-type-using-an-agent-alternative-currency.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
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
54 changes: 25 additions & 29 deletions
54
...icy-type-attempted-private-market-cover-and-using-an-agent-with-charges-fixed-sum.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 |
---|---|---|
@@ -1,35 +1,31 @@ | ||
// TODO: EMS-3828 - renable | ||
context.skip( | ||
'Insurance - submit an application - Single policy type, attempted private market cover, using an agent, agent is charging - fixed sum method', | ||
() => { | ||
let referenceNumber; | ||
context('Insurance - submit an application - Single policy type, attempted private market cover, using an agent, agent is charging - fixed sum method', () => { | ||
let referenceNumber; | ||
|
||
before(() => { | ||
cy.completeSignInAndSubmitAnApplication({ | ||
totalContractValueOverThreshold: true, | ||
attemptedPrivateMarketCover: true, | ||
isUsingAgent: true, | ||
agentIsCharging: true, | ||
agentChargeMethodFixedSum: true, | ||
}).then((refNumber) => { | ||
referenceNumber = refNumber; | ||
}); | ||
before(() => { | ||
cy.completeSignInAndSubmitAnApplication({ | ||
totalContractValueOverThreshold: true, | ||
attemptedPrivateMarketCover: true, | ||
isUsingAgent: true, | ||
agentIsCharging: true, | ||
agentChargeMethodFixedSum: true, | ||
}).then((refNumber) => { | ||
referenceNumber = refNumber; | ||
}); | ||
}); | ||
|
||
beforeEach(() => { | ||
cy.saveSession(); | ||
}); | ||
beforeEach(() => { | ||
cy.saveSession(); | ||
}); | ||
|
||
after(() => { | ||
cy.deleteApplication(referenceNumber); | ||
}); | ||
after(() => { | ||
cy.deleteApplication(referenceNumber); | ||
}); | ||
|
||
it('should successfully submit the application and redirect to `application submitted`', () => { | ||
cy.assertApplicationSubmittedUrl(referenceNumber); | ||
}); | ||
it('should successfully submit the application and redirect to `application submitted`', () => { | ||
cy.assertApplicationSubmittedUrl(referenceNumber); | ||
}); | ||
|
||
it('should render in a `submitted` state in the dashboard', () => { | ||
cy.assertDashboardApplicationSubmitted(referenceNumber); | ||
}); | ||
}, | ||
); | ||
it('should render in a `submitted` state in the dashboard', () => { | ||
cy.assertDashboardApplicationSubmitted(referenceNumber); | ||
}); | ||
}); |
3 changes: 1 addition & 2 deletions
3
...ions/submit-an-application-single-policy-type-using-an-agent-alternative-currency.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
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
Oops, something went wrong.