From d4597c55e982edb9de197e0de70d58f06b682dc5 Mon Sep 17 00:00:00 2001 From: Carlos Jimenez <=> Date: Fri, 15 Dec 2017 13:35:36 +0100 Subject: [PATCH] correct e2e bug with expected errors in panish --- e2e/paths/01_create_client_path.spec.js | 12 ++++++------ e2e/paths/04_edit_pay_method.spec.js | 2 +- e2e/paths/05_edit_addresses.spec.js | 20 ++++++++++---------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/e2e/paths/01_create_client_path.spec.js b/e2e/paths/01_create_client_path.spec.js index 50b5b56d1..75828ba4b 100644 --- a/e2e/paths/01_create_client_path.spec.js +++ b/e2e/paths/01_create_client_path.spec.js @@ -100,7 +100,7 @@ describe('create client path', () => { .wait(selectors.globalItems.snackbarIsActive) .getInnerText(selectors.globalItems.snackbarIsActive) .then(result => { - expect(result).toContain(`Error: La instancia`); + expect(result).toContain('Error'); done(); }) .catch(catchErrors(done)); @@ -115,7 +115,7 @@ describe('create client path', () => { .wait(selectors.globalItems.snackbarIsActive) .getInnerText(selectors.globalItems.snackbarIsActive) .then(result => { - expect(result).toContain(`Error: La instancia`); + expect(result).toContain('Error'); done(); }) .catch(catchErrors(done)); @@ -130,7 +130,7 @@ describe('create client path', () => { .wait(selectors.globalItems.snackbarIsActive) .getInnerText(selectors.globalItems.snackbarIsActive) .then(result => { - expect(result).toContain(`Error: La instancia`); + expect(result).toContain('Error'); done(); }) .catch(catchErrors(done)); @@ -145,7 +145,7 @@ describe('create client path', () => { .wait(selectors.globalItems.snackbarIsActive) .getInnerText(selectors.globalItems.snackbarIsActive) .then(result => { - expect(result).toContain(`Error: La instancia`); + expect(result).toContain('Error'); done(); }) .catch(catchErrors(done)); @@ -175,7 +175,7 @@ describe('create client path', () => { .wait(selectors.globalItems.snackbarIsActive) .getInnerText(selectors.globalItems.snackbarIsActive) .then(result => { - expect(result).toContain(`Error: La instancia`); + expect(result).toContain('Error'); done(); }) .catch(catchErrors(done)); @@ -190,7 +190,7 @@ describe('create client path', () => { .wait(selectors.globalItems.snackbarIsActive) .getInnerText(selectors.globalItems.snackbarIsActive) .then(result => { - expect(result).toContain(`Error: La instancia`); + expect(result).toContain('Error'); done(); }) .catch(catchErrors(done)); diff --git a/e2e/paths/04_edit_pay_method.spec.js b/e2e/paths/04_edit_pay_method.spec.js index 816b8e089..1b12710ad 100644 --- a/e2e/paths/04_edit_pay_method.spec.js +++ b/e2e/paths/04_edit_pay_method.spec.js @@ -125,7 +125,7 @@ describe('Edit pay method path', () => { .wait(selectors.globalItems.snackbarIsActive) .getInnerText(selectors.globalItems.snackbarIsActive) .then(result => { - expect(result).toContain(`Error: La instancia`); + expect(result).toContain('Error'); done(); }) .catch(catchErrors(done)); diff --git a/e2e/paths/05_edit_addresses.spec.js b/e2e/paths/05_edit_addresses.spec.js index 525333e91..631affcd7 100644 --- a/e2e/paths/05_edit_addresses.spec.js +++ b/e2e/paths/05_edit_addresses.spec.js @@ -103,7 +103,7 @@ describe('Edit addresses path', () => { .wait(selectors.globalItems.snackbarIsActive) .getInnerText(selectors.globalItems.snackbarIsActive) .then(result => { - expect(result).toContain(`Error: La instancia`); + expect(result).toContain('Error'); done(); }) .catch(catchErrors(done)); @@ -117,7 +117,7 @@ describe('Edit addresses path', () => { .wait(selectors.globalItems.snackbarIsActive) .getInnerText(selectors.globalItems.snackbarIsActive) .then(result => { - expect(result).toContain(`Error: La instancia`); + expect(result).toContain('Error'); done(); }) .catch(catchErrors(done)); @@ -132,7 +132,7 @@ describe('Edit addresses path', () => { .wait(selectors.globalItems.snackbarIsActive) .getInnerText(selectors.globalItems.snackbarIsActive) .then(result => { - expect(result).toContain(`Error: La instancia`); + expect(result).toContain('Error'); done(); }) .catch(catchErrors(done)); @@ -147,7 +147,7 @@ describe('Edit addresses path', () => { .wait(selectors.globalItems.snackbarIsActive) .getInnerText(selectors.globalItems.snackbarIsActive) .then(result => { - expect(result).toContain(`Error: La instancia`); + expect(result).toContain('Error'); done(); }) .catch(catchErrors(done)); @@ -162,7 +162,7 @@ describe('Edit addresses path', () => { .wait(selectors.globalItems.snackbarIsActive) .getInnerText(selectors.globalItems.snackbarIsActive) .then(result => { - expect(result).toContain(`Error: La instancia`); + expect(result).toContain('Error'); done(); }) .catch(catchErrors(done)); @@ -178,7 +178,7 @@ describe('Edit addresses path', () => { .wait(selectors.globalItems.snackbarIsActive) .getInnerText(selectors.globalItems.snackbarIsActive) .then(result => { - expect(result).toContain(`Error: La instancia`); + expect(result).toContain('Error'); done(); }) .catch(catchErrors(done)); @@ -193,7 +193,7 @@ describe('Edit addresses path', () => { .wait(selectors.globalItems.snackbarIsActive) .getInnerText(selectors.globalItems.snackbarIsActive) .then(result => { - expect(result).toContain(`Error: La instancia`); + expect(result).toContain('Error'); done(); }) .catch(catchErrors(done)); @@ -207,7 +207,7 @@ describe('Edit addresses path', () => { .wait(selectors.globalItems.snackbarIsActive) .getInnerText(selectors.globalItems.snackbarIsActive) .then(result => { - expect(result).toContain(`Error: La instancia`); + expect(result).toContain('Error'); done(); }) .catch(catchErrors(done)); @@ -222,7 +222,7 @@ describe('Edit addresses path', () => { .wait(selectors.globalItems.snackbarIsActive) .getInnerText(selectors.globalItems.snackbarIsActive) .then(result => { - expect(result).toContain(`Error: La instancia`); + expect(result).toContain('Error'); done(); }) .catch(catchErrors(done)); @@ -293,7 +293,7 @@ describe('Edit addresses path', () => { .wait(selectors.globalItems.snackbarIsActive) .getInnerText(selectors.globalItems.snackbarIsActive) .then(result => { - expect(result).toContain(`Error: La instancia`); + expect(result).toContain('Error'); done(); }) .catch(catchErrors(done));