From edfba5e7a78980b89aba2cf5559ca4bc91991b75 Mon Sep 17 00:00:00 2001 From: Carlos Jimenez <=> Date: Thu, 10 Jan 2019 08:54:21 +0100 Subject: [PATCH] updated test for task #953 --- e2e/paths/client-module/04_edit_pay_method.spec.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/e2e/paths/client-module/04_edit_pay_method.spec.js b/e2e/paths/client-module/04_edit_pay_method.spec.js index aabfd6613..0316b698e 100644 --- a/e2e/paths/client-module/04_edit_pay_method.spec.js +++ b/e2e/paths/client-module/04_edit_pay_method.spec.js @@ -1,7 +1,6 @@ import selectors from '../../helpers/selectors.js'; import createNightmare from '../../helpers/nightmare'; -// excluded test while task #953 is uncompleted xdescribe('Client Edit pay method path', () => { const nightmare = createNightmare(); @@ -70,11 +69,16 @@ xdescribe('Client Edit pay method path', () => { }); it(`should save the form with all its new data`, async() => { - const snackbarMessage = await nightmare + const snackbarMessages = await nightmare .waitToClick(selectors.clientPayMethod.saveButton) - .waitForLastSnackbar(); + .waitForSnackbar(); - expect(snackbarMessage).toEqual('Data saved!'); + expect(snackbarMessages).toEqual(jasmine.arrayContaining(['Data saved!'])); + + // #953 update test to capture the relevant message + // .waitForLastSnackbar(); + + // expect(snackbarMessage).toEqual('Data saved!'); }); it('should confirm the due day have been edited', async() => {