-
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-3345): no PDF - application submission - XLSX - exporter bus…
…iness (#2471) * feat(EMS-3345): no pdf - application submission - XLSX - exporter business * feat(EMS-3345): fix linting issue * feat(EMS-3345): no pdf - application submission - XLSX - exporter business - code/test improvements * feat(EMS-3345): fix linting issues * feat(EMS-3345): revert package.json change * feat(EMS-3345): fix/update unit tests * feat(EMS-3345): address todo comment * feat(EMS-3345): no pdf - application submission - XLSX - exporter company sic/date ordering * feat(EMS-3345): no pdf - application submission - XLSX - code/test improvements * feat(EMS-3345): no pdf - application submission - XLSX - code improvements
- Loading branch information
Showing
75 changed files
with
2,165 additions
and
991 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
...mit-an-application-multiple-policy-type-with-different-trading-address-and-broker.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 - Single policy type with a different trading address and broker - As an Exporter, I want to submit my completed credit insurance application, So that UKEF can process and make a decision on my application', | ||
() => { | ||
let referenceNumber; | ||
|
||
before(() => { | ||
cy.completeSignInAndSubmitAnApplication({ | ||
policyType: APPLICATION.POLICY_TYPE.MULTIPLE, | ||
differentTradingAddress: true, | ||
usingBroker: 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
...cy-type/submit-an-application-multiple-policy-type-with-different-trading-address.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, different trading address - As an Exporter, I want to submit my completed credit insurance application, So that UKEF can process and make a decision on my application', | ||
() => { | ||
let referenceNumber; | ||
|
||
before(() => { | ||
cy.completeSignInAndSubmitAnApplication({ | ||
policyType: APPLICATION.POLICY_TYPE.MULTIPLE, | ||
differentTradingAddress: 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); | ||
}); | ||
}, | ||
); |
31 changes: 31 additions & 0 deletions
31
...n-application-multiple-policy-type-with-different-trading-name-address-and-broker.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,31 @@ | ||
import { APPLICATION } from '../../../../../../constants'; | ||
|
||
context( | ||
'Insurance - submit an application - Single policy type with a different trading name, address and broker - As an Exporter, I want to submit my completed credit insurance application, So that UKEF can process and make a decision on my application', | ||
() => { | ||
let referenceNumber; | ||
|
||
before(() => { | ||
cy.completeSignInAndSubmitAnApplication({ | ||
policyType: APPLICATION.POLICY_TYPE.MULTIPLE, | ||
differentTradingName: true, | ||
differentTradingAddress: true, | ||
usingBroker: 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
...ubmit-an-application-multiple-policy-type-with-different-trading-name-and-address.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, different trading name and address - As an Exporter, I want to submit my completed credit insurance application, So that UKEF can process and make a decision on my application', | ||
() => { | ||
let referenceNumber; | ||
|
||
before(() => { | ||
cy.completeSignInAndSubmitAnApplication({ | ||
policyType: APPLICATION.POLICY_TYPE.MULTIPLE, | ||
differentTradingName: true, | ||
differentTradingAddress: 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
...submit-an-application-multiple-policy-type-with-different-trading-name-and-broker.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 - Single policy type with a different trading name and broker - As an Exporter, I want to submit my completed credit insurance application, So that UKEF can process and make a decision on my application', | ||
() => { | ||
let referenceNumber; | ||
|
||
before(() => { | ||
cy.completeSignInAndSubmitAnApplication({ | ||
policyType: APPLICATION.POLICY_TYPE.MULTIPLE, | ||
differentTradingName: true, | ||
usingBroker: 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
...olicy-type/submit-an-application-multiple-policy-type-with-different-trading-name.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, different trading name - As an Exporter, I want to submit my completed credit insurance application, So that UKEF can process and make a decision on my application', | ||
() => { | ||
let referenceNumber; | ||
|
||
before(() => { | ||
cy.completeSignInAndSubmitAnApplication({ | ||
policyType: APPLICATION.POLICY_TYPE.MULTIPLE, | ||
differentTradingName: 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); | ||
}); | ||
}, | ||
); |
27 changes: 27 additions & 0 deletions
27
...ubmit-an-application-single-policy-type-with-different-trading-address-and-broker.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 with a different trading address and broker - As an Exporter, I want to submit my completed credit insurance application, So that UKEF can process and make a decision on my application', | ||
() => { | ||
let referenceNumber; | ||
|
||
before(() => { | ||
cy.completeSignInAndSubmitAnApplication({ | ||
differentTradingAddress: true, | ||
usingBroker: 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); | ||
}); | ||
}, | ||
); |
24 changes: 24 additions & 0 deletions
24
...licy-type/submit-an-application-single-policy-type-with-different-trading-address.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,24 @@ | ||
context( | ||
'Insurance - submit an application - Single policy type, different trading address - As an Exporter, I want to submit my completed credit insurance application, So that UKEF can process and make a decision on my application', | ||
() => { | ||
let referenceNumber; | ||
|
||
before(() => { | ||
cy.completeSignInAndSubmitAnApplication({ differentTradingAddress: 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); | ||
}); | ||
}, | ||
); |
Oops, something went wrong.