From ec188a67b863b810cbbc813ae5f67bdc37ce8e9b Mon Sep 17 00:00:00 2001 From: Carlos Jimenez <=> Date: Wed, 24 Jan 2018 09:02:09 +0100 Subject: [PATCH] e2e edit fiscal data path updated for EQ tax status from fixtures (now false on default) --- e2e/paths/03_edit_fiscal_data.spec.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/e2e/paths/03_edit_fiscal_data.spec.js b/e2e/paths/03_edit_fiscal_data.spec.js index 00449578f..60464a9c6 100644 --- a/e2e/paths/03_edit_fiscal_data.spec.js +++ b/e2e/paths/03_edit_fiscal_data.spec.js @@ -70,7 +70,7 @@ describe('Edit fiscalData path', () => { .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 => { nightmare .waitForTextInElement(selectors.clientsIndex.searchResult, 'Bruce Banner') @@ -94,7 +94,7 @@ describe('Edit fiscalData path', () => { return document.querySelector(selector).checked; }, selectors.addresses.equalizationTaxCheckboxLabel) .then(value => { - expect(value).toBeTruthy(); + expect(value).toBeFalsy(); done(); }) .catch(catchErrors(done)); @@ -110,7 +110,7 @@ describe('Edit fiscalData path', () => { return document.querySelector(selector).checked; }, selectors.addresses.equalizationTaxCheckboxLabel) .then(value => { - expect(value).toBeTruthy(); + expect(value).toBeFalsy(); done(); }) .catch(catchErrors(done)); @@ -189,7 +189,7 @@ describe('Edit fiscalData path', () => { .catch(catchErrors(done)); }); - it('should uncheck the Equalization tax checkbox', done => { + it('should check the Equalization tax checkbox', done => { nightmare .waitToClick(selectors.fiscalData.equalizationTaxCheckboxLabel) .waitToClick(selectors.fiscalData.saveButton) @@ -214,7 +214,7 @@ describe('Edit fiscalData path', () => { .catch(catchErrors(done)); }); - it('should confirm Equalization tax checkbox is unchecked', done => { + it('should confirm Equalization tax checkbox is checked', done => { nightmare .waitForSnackbarReset() .waitToClick(selectors.basicData.basicDataButton) @@ -225,13 +225,13 @@ describe('Edit fiscalData path', () => { return document.querySelector(selector).checked; }, selectors.fiscalData.equalizationTaxCheckboxLabel) .then(value => { - expect(value).toBeFalsy(); + expect(value).toBeTruthy(); 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 => { nightmare .waitToClick(selectors.addresses.addressesButton) @@ -244,7 +244,7 @@ describe('Edit fiscalData path', () => { .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 .waitToClick(selectors.addresses.firstEditButton) .wait(selectors.addresses.equalizationTaxCheckboxLabel) @@ -253,7 +253,7 @@ describe('Edit fiscalData path', () => { return document.querySelector(selector).checked; }, selectors.addresses.equalizationTaxCheckboxLabel) .then(value => { - expect(value).toBeFalsy(); + expect(value).toBeTruthy(); done(); }) .catch(catchErrors(done)); @@ -269,7 +269,7 @@ describe('Edit fiscalData path', () => { return document.querySelector(selector).checked; }, selectors.addresses.equalizationTaxCheckboxLabel) .then(value => { - expect(value).toBeFalsy(); + expect(value).toBeTruthy(); done(); }) .catch(catchErrors(done));