updated test for task #953

This commit is contained in:
Carlos Jimenez 2019-01-10 08:54:21 +01:00
parent c0e222c106
commit edfba5e7a7
1 changed files with 8 additions and 4 deletions

View File

@ -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() => {