deprecated unstackable snackbar extensions
This commit is contained in:
parent
70ca4df29a
commit
7d7a2a64e0
|
@ -113,7 +113,7 @@ describe('Client lock verified data path', () => {
|
||||||
.clearInput(selectors.clientFiscalData.socialNameInput)
|
.clearInput(selectors.clientFiscalData.socialNameInput)
|
||||||
.write(selectors.clientFiscalData.socialNameInput, 'This wont happen')
|
.write(selectors.clientFiscalData.socialNameInput, 'This wont happen')
|
||||||
.waitToClick(selectors.clientFiscalData.saveButton)
|
.waitToClick(selectors.clientFiscalData.saveButton)
|
||||||
.waitForSnackbar();
|
.waitForLastSnackbar();
|
||||||
|
|
||||||
expect(result).toEqual(jasmine.arrayContaining([`You can't make changes on a client with verified data`]));
|
expect(result).toEqual(jasmine.arrayContaining([`You can't make changes on a client with verified data`]));
|
||||||
});
|
});
|
||||||
|
|
|
@ -17,7 +17,7 @@ describe('Claim edit basic data path', () => {
|
||||||
.clearTextarea(selectors.claimBasicData.observationInput)
|
.clearTextarea(selectors.claimBasicData.observationInput)
|
||||||
.write(selectors.claimBasicData.observationInput, 'edited observation')
|
.write(selectors.claimBasicData.observationInput, 'edited observation')
|
||||||
.waitToClick(selectors.claimBasicData.saveButton)
|
.waitToClick(selectors.claimBasicData.saveButton)
|
||||||
.waitForSnackbar();
|
.waitForLastSnackbar();
|
||||||
|
|
||||||
expect(result).toEqual(jasmine.arrayContaining(['Data saved!']));
|
expect(result).toEqual(jasmine.arrayContaining(['Data saved!']));
|
||||||
});
|
});
|
||||||
|
@ -52,7 +52,7 @@ describe('Claim edit basic data path', () => {
|
||||||
.clearTextarea(selectors.claimBasicData.observationInput)
|
.clearTextarea(selectors.claimBasicData.observationInput)
|
||||||
.write(selectors.claimBasicData.observationInput, 'Observation one')
|
.write(selectors.claimBasicData.observationInput, 'Observation one')
|
||||||
.waitToClick(selectors.claimBasicData.saveButton)
|
.waitToClick(selectors.claimBasicData.saveButton)
|
||||||
.waitForSnackbar();
|
.waitForLastSnackbar();
|
||||||
|
|
||||||
expect(result).toEqual(jasmine.arrayContaining(['Data saved!']));
|
expect(result).toEqual(jasmine.arrayContaining(['Data saved!']));
|
||||||
});
|
});
|
||||||
|
|
|
@ -63,7 +63,7 @@ describe('Claim action path', () => {
|
||||||
it('should check the "is paid with mana" checkbox', async() => {
|
it('should check the "is paid with mana" checkbox', async() => {
|
||||||
const result = await nightmare
|
const result = await nightmare
|
||||||
.waitToClick(selectors.claimAction.isPaidWithManaCheckbox)
|
.waitToClick(selectors.claimAction.isPaidWithManaCheckbox)
|
||||||
.waitForSnackbar();
|
.waitForLastSnackbar();
|
||||||
|
|
||||||
expect(result).toEqual(jasmine.arrayContaining(['Data saved!']));
|
expect(result).toEqual(jasmine.arrayContaining(['Data saved!']));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue