From bafbd928022175d83d7308574d9b992f6fe17494 Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Wed, 17 Apr 2019 08:21:58 +0200 Subject: [PATCH] Bug/Test #1331 cambio de rol --- e2e/paths/02-client-module/01_create_client.spec.js | 2 +- e2e/paths/02-client-module/02_edit_basic_data.spec.js | 4 ++-- .../05-ticket-module/05_create_new_tracking_state.spec.js | 2 +- modules/item/front/routes.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/e2e/paths/02-client-module/01_create_client.spec.js b/e2e/paths/02-client-module/01_create_client.spec.js index 0a8396edc..2d7b58b20 100644 --- a/e2e/paths/02-client-module/01_create_client.spec.js +++ b/e2e/paths/02-client-module/01_create_client.spec.js @@ -41,7 +41,7 @@ describe('Client create path', () => { .write(selectors.createClientView.taxNumber, '74451390E') .write(selectors.createClientView.userName, 'CaptainMarvel') .write(selectors.createClientView.email, 'CarolDanvers@verdnatura.es') - .autocompleteSearch(selectors.createClientView.salesPersonAutocomplete, 'Accessory') + .autocompleteSearch(selectors.createClientView.salesPersonAutocomplete, 'replenisher') .waitToClick(selectors.createClientView.createButton) .waitForLastSnackbar(); diff --git a/e2e/paths/02-client-module/02_edit_basic_data.spec.js b/e2e/paths/02-client-module/02_edit_basic_data.spec.js index ddd1dc528..988ad82c8 100644 --- a/e2e/paths/02-client-module/02_edit_basic_data.spec.js +++ b/e2e/paths/02-client-module/02_edit_basic_data.spec.js @@ -114,7 +114,7 @@ describe('Client Edit basicData path', () => { .write(selectors.clientBasicData.mobileInput, '987654321') .clearInput(selectors.clientBasicData.emailInput) .write(selectors.clientBasicData.emailInput, 'Storm@verdnatura.es') - .autocompleteSearch(selectors.clientBasicData.salesPersonAutocomplete, 'AccessoryNick') + .autocompleteSearch(selectors.clientBasicData.salesPersonAutocomplete, 'replenisherNick') .autocompleteSearch(selectors.clientBasicData.channelAutocomplete, 'Metropolis newspaper') .waitToClick(selectors.clientBasicData.saveButton) .waitForLastSnackbar(); @@ -162,7 +162,7 @@ describe('Client Edit basicData path', () => { const result = await nightmare .waitToGetProperty(`${selectors.clientBasicData.salesPersonAutocomplete} input`, 'value'); - expect(result).toEqual('accessoryNick'); + expect(result).toEqual('replenisherNick'); }); it('should now confirm the channel have been selected', async() => { diff --git a/e2e/paths/05-ticket-module/05_create_new_tracking_state.spec.js b/e2e/paths/05-ticket-module/05_create_new_tracking_state.spec.js index 787809a86..a67c3fc1d 100644 --- a/e2e/paths/05-ticket-module/05_create_new_tracking_state.spec.js +++ b/e2e/paths/05-ticket-module/05_create_new_tracking_state.spec.js @@ -88,7 +88,7 @@ describe('Ticket Create new tracking state path', () => { it(`should create a new state with all it's data`, async() => { let result = await nightmare - .autocompleteSearch(selectors.createStateView.workerAutocomplete, 'accessory') + .autocompleteSearch(selectors.createStateView.workerAutocomplete, 'replenisher') .waitToClick(selectors.createStateView.saveStateButton) .waitForLastSnackbar(); diff --git a/modules/item/front/routes.json b/modules/item/front/routes.json index a85e31f37..b0dc7c26a 100644 --- a/modules/item/front/routes.json +++ b/modules/item/front/routes.json @@ -57,7 +57,7 @@ "params": { "item-tags": "$ctrl.itemTags" }, - "acl": ["buyer", "accessory"] + "acl": ["buyer", "replenisher"] }, { "url" : "/tax", "state": "item.card.tax",