deprecated unstackable snackbar extensions

This commit is contained in:
Carlos Jimenez Ruiz 2019-12-18 12:48:38 +01:00
parent 70ca4df29a
commit 7d7a2a64e0
3 changed files with 4 additions and 4 deletions

View File

@ -113,7 +113,7 @@ describe('Client lock verified data path', () => {
.clearInput(selectors.clientFiscalData.socialNameInput)
.write(selectors.clientFiscalData.socialNameInput, 'This wont happen')
.waitToClick(selectors.clientFiscalData.saveButton)
.waitForSnackbar();
.waitForLastSnackbar();
expect(result).toEqual(jasmine.arrayContaining([`You can't make changes on a client with verified data`]));
});

View File

@ -17,7 +17,7 @@ describe('Claim edit basic data path', () => {
.clearTextarea(selectors.claimBasicData.observationInput)
.write(selectors.claimBasicData.observationInput, 'edited observation')
.waitToClick(selectors.claimBasicData.saveButton)
.waitForSnackbar();
.waitForLastSnackbar();
expect(result).toEqual(jasmine.arrayContaining(['Data saved!']));
});
@ -52,7 +52,7 @@ describe('Claim edit basic data path', () => {
.clearTextarea(selectors.claimBasicData.observationInput)
.write(selectors.claimBasicData.observationInput, 'Observation one')
.waitToClick(selectors.claimBasicData.saveButton)
.waitForSnackbar();
.waitForLastSnackbar();
expect(result).toEqual(jasmine.arrayContaining(['Data saved!']));
});

View File

@ -63,7 +63,7 @@ describe('Claim action path', () => {
it('should check the "is paid with mana" checkbox', async() => {
const result = await nightmare
.waitToClick(selectors.claimAction.isPaidWithManaCheckbox)
.waitForSnackbar();
.waitForLastSnackbar();
expect(result).toEqual(jasmine.arrayContaining(['Data saved!']));
});