From b192cb15c09055006af9230b1b3db3e5d042988c Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Fri, 7 Feb 2020 07:47:11 +0100 Subject: [PATCH] Show data save snackbar on auto-save --- e2e/paths/06-claim-module/04_claim_action.spec.js | 5 ++--- modules/claim/front/action/index.html | 7 +++++-- modules/claim/front/action/index.js | 4 ++++ 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/e2e/paths/06-claim-module/04_claim_action.spec.js b/e2e/paths/06-claim-module/04_claim_action.spec.js index 460cd49ae..c0bc91365 100644 --- a/e2e/paths/06-claim-module/04_claim_action.spec.js +++ b/e2e/paths/06-claim-module/04_claim_action.spec.js @@ -32,12 +32,11 @@ describe('Claim action path', () => { expect(result).toEqual('Data saved!'); }); - // #2036 claim.action destinatario it('should edit the second line destination field', async() => { await page.autocompleteSearch(selectors.claimAction.secondLineDestination, 'Bueno'); - // const result = await page.waitForLastSnackbar(); + const result = await page.waitForLastSnackbar(); - // expect(result).toEqual('Data saved!'); + expect(result).toEqual('Data saved!'); }); it('should delete the first line', async() => { diff --git a/modules/claim/front/action/index.html b/modules/claim/front/action/index.html index 7c663eacd..31db6dabd 100644 --- a/modules/claim/front/action/index.html +++ b/modules/claim/front/action/index.html @@ -1,7 +1,10 @@ - + data="$ctrl.salesClaimed" + auto-load="true" + auto-save="true" + on-save="$ctrl.onSave()">