#1200 e2e client fiscal data maintenance
This commit is contained in:
parent
f6e625a1be
commit
dd9eab570e
|
@ -58,7 +58,7 @@ describe('Client Edit fiscalData path', () => {
|
|||
.accessToSection('client.card.fiscalData');
|
||||
});
|
||||
|
||||
it('should receive an error if VIES and EQtax are being ticked together', async() => {
|
||||
it('should edit the fiscal data', async() => {
|
||||
const result = await nightmare
|
||||
.wait(selectors.clientFiscalData.socialNameInput)
|
||||
.clearInput(selectors.clientFiscalData.socialNameInput)
|
||||
|
@ -87,6 +87,14 @@ describe('Client Edit fiscalData path', () => {
|
|||
expect(result).toEqual('Data saved!');
|
||||
}, 15000);
|
||||
|
||||
it('should propagate the Equalization tax', async() => {
|
||||
const result = await nightmare
|
||||
.waitToClick(selectors.clientFiscalData.acceptPropagationButton)
|
||||
.waitForLastSnackbar();
|
||||
|
||||
expect(result).toEqual('Equivalent tax spreaded');
|
||||
});
|
||||
|
||||
it('should receive an error if the fiscal id contains A or B at the beginning', async() => {
|
||||
const result = await nightmare
|
||||
.waitToClick(selectors.clientFiscalData.viesCheckbox)
|
||||
|
@ -108,14 +116,6 @@ describe('Client Edit fiscalData path', () => {
|
|||
expect(result).toEqual('Data saved!');
|
||||
});
|
||||
|
||||
it('should propagate the Equalization tax', async() => {
|
||||
const result = await nightmare
|
||||
.waitToClick(selectors.clientFiscalData.acceptPropagationButton)
|
||||
.waitForLastSnackbar();
|
||||
|
||||
expect(result).toEqual('Equivalent tax spreaded');
|
||||
});
|
||||
|
||||
// confirm all addresses have now EQtax checked step 1
|
||||
it(`should click on the addresses button to access to the client's addresses`, async() => {
|
||||
const url = await nightmare
|
||||
|
|
Loading…
Reference in New Issue