e2e edit fiscal data path updated for EQ tax status from fixtures (now false on default)
This commit is contained in:
parent
16a193071c
commit
ec188a67b8
|
@ -70,7 +70,7 @@ describe('Edit fiscalData path', () => {
|
||||||
.catch(catchErrors(done));
|
.catch(catchErrors(done));
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Confirm all addresses have EQtax for future propagation test', () => {
|
describe('Confirm all addresses have EQtax false for future propagation test', () => {
|
||||||
it(`should click on the search result to access to the client's addresses`, done => {
|
it(`should click on the search result to access to the client's addresses`, done => {
|
||||||
nightmare
|
nightmare
|
||||||
.waitForTextInElement(selectors.clientsIndex.searchResult, 'Bruce Banner')
|
.waitForTextInElement(selectors.clientsIndex.searchResult, 'Bruce Banner')
|
||||||
|
@ -94,7 +94,7 @@ describe('Edit fiscalData path', () => {
|
||||||
return document.querySelector(selector).checked;
|
return document.querySelector(selector).checked;
|
||||||
}, selectors.addresses.equalizationTaxCheckboxLabel)
|
}, selectors.addresses.equalizationTaxCheckboxLabel)
|
||||||
.then(value => {
|
.then(value => {
|
||||||
expect(value).toBeTruthy();
|
expect(value).toBeFalsy();
|
||||||
done();
|
done();
|
||||||
})
|
})
|
||||||
.catch(catchErrors(done));
|
.catch(catchErrors(done));
|
||||||
|
@ -110,7 +110,7 @@ describe('Edit fiscalData path', () => {
|
||||||
return document.querySelector(selector).checked;
|
return document.querySelector(selector).checked;
|
||||||
}, selectors.addresses.equalizationTaxCheckboxLabel)
|
}, selectors.addresses.equalizationTaxCheckboxLabel)
|
||||||
.then(value => {
|
.then(value => {
|
||||||
expect(value).toBeTruthy();
|
expect(value).toBeFalsy();
|
||||||
done();
|
done();
|
||||||
})
|
})
|
||||||
.catch(catchErrors(done));
|
.catch(catchErrors(done));
|
||||||
|
@ -189,7 +189,7 @@ describe('Edit fiscalData path', () => {
|
||||||
.catch(catchErrors(done));
|
.catch(catchErrors(done));
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should uncheck the Equalization tax checkbox', done => {
|
it('should check the Equalization tax checkbox', done => {
|
||||||
nightmare
|
nightmare
|
||||||
.waitToClick(selectors.fiscalData.equalizationTaxCheckboxLabel)
|
.waitToClick(selectors.fiscalData.equalizationTaxCheckboxLabel)
|
||||||
.waitToClick(selectors.fiscalData.saveButton)
|
.waitToClick(selectors.fiscalData.saveButton)
|
||||||
|
@ -214,7 +214,7 @@ describe('Edit fiscalData path', () => {
|
||||||
.catch(catchErrors(done));
|
.catch(catchErrors(done));
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should confirm Equalization tax checkbox is unchecked', done => {
|
it('should confirm Equalization tax checkbox is checked', done => {
|
||||||
nightmare
|
nightmare
|
||||||
.waitForSnackbarReset()
|
.waitForSnackbarReset()
|
||||||
.waitToClick(selectors.basicData.basicDataButton)
|
.waitToClick(selectors.basicData.basicDataButton)
|
||||||
|
@ -225,13 +225,13 @@ describe('Edit fiscalData path', () => {
|
||||||
return document.querySelector(selector).checked;
|
return document.querySelector(selector).checked;
|
||||||
}, selectors.fiscalData.equalizationTaxCheckboxLabel)
|
}, selectors.fiscalData.equalizationTaxCheckboxLabel)
|
||||||
.then(value => {
|
.then(value => {
|
||||||
expect(value).toBeFalsy();
|
expect(value).toBeTruthy();
|
||||||
done();
|
done();
|
||||||
})
|
})
|
||||||
.catch(catchErrors(done));
|
.catch(catchErrors(done));
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Confirm all addresses havent got EQtax as uncheck was propagated', () => {
|
describe('Confirm all addresses have now EQtax checked', () => {
|
||||||
it(`should click on the addresses button to access to the client's addresses`, done => {
|
it(`should click on the addresses button to access to the client's addresses`, done => {
|
||||||
nightmare
|
nightmare
|
||||||
.waitToClick(selectors.addresses.addressesButton)
|
.waitToClick(selectors.addresses.addressesButton)
|
||||||
|
@ -244,7 +244,7 @@ describe('Edit fiscalData path', () => {
|
||||||
.catch(catchErrors(done));
|
.catch(catchErrors(done));
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`should click on the 1st edit icon to check EQtax is unchecked`, done => {
|
it(`should click on the 1st edit icon to confirm EQtax is checked`, done => {
|
||||||
nightmare
|
nightmare
|
||||||
.waitToClick(selectors.addresses.firstEditButton)
|
.waitToClick(selectors.addresses.firstEditButton)
|
||||||
.wait(selectors.addresses.equalizationTaxCheckboxLabel)
|
.wait(selectors.addresses.equalizationTaxCheckboxLabel)
|
||||||
|
@ -253,7 +253,7 @@ describe('Edit fiscalData path', () => {
|
||||||
return document.querySelector(selector).checked;
|
return document.querySelector(selector).checked;
|
||||||
}, selectors.addresses.equalizationTaxCheckboxLabel)
|
}, selectors.addresses.equalizationTaxCheckboxLabel)
|
||||||
.then(value => {
|
.then(value => {
|
||||||
expect(value).toBeFalsy();
|
expect(value).toBeTruthy();
|
||||||
done();
|
done();
|
||||||
})
|
})
|
||||||
.catch(catchErrors(done));
|
.catch(catchErrors(done));
|
||||||
|
@ -269,7 +269,7 @@ describe('Edit fiscalData path', () => {
|
||||||
return document.querySelector(selector).checked;
|
return document.querySelector(selector).checked;
|
||||||
}, selectors.addresses.equalizationTaxCheckboxLabel)
|
}, selectors.addresses.equalizationTaxCheckboxLabel)
|
||||||
.then(value => {
|
.then(value => {
|
||||||
expect(value).toBeFalsy();
|
expect(value).toBeTruthy();
|
||||||
done();
|
done();
|
||||||
})
|
})
|
||||||
.catch(catchErrors(done));
|
.catch(catchErrors(done));
|
||||||
|
|
Loading…
Reference in New Issue