This commit is contained in:
parent
7707acb43a
commit
bafbd92802
|
@ -41,7 +41,7 @@ describe('Client create path', () => {
|
||||||
.write(selectors.createClientView.taxNumber, '74451390E')
|
.write(selectors.createClientView.taxNumber, '74451390E')
|
||||||
.write(selectors.createClientView.userName, 'CaptainMarvel')
|
.write(selectors.createClientView.userName, 'CaptainMarvel')
|
||||||
.write(selectors.createClientView.email, 'CarolDanvers@verdnatura.es')
|
.write(selectors.createClientView.email, 'CarolDanvers@verdnatura.es')
|
||||||
.autocompleteSearch(selectors.createClientView.salesPersonAutocomplete, 'Accessory')
|
.autocompleteSearch(selectors.createClientView.salesPersonAutocomplete, 'replenisher')
|
||||||
.waitToClick(selectors.createClientView.createButton)
|
.waitToClick(selectors.createClientView.createButton)
|
||||||
.waitForLastSnackbar();
|
.waitForLastSnackbar();
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,7 @@ describe('Client Edit basicData path', () => {
|
||||||
.write(selectors.clientBasicData.mobileInput, '987654321')
|
.write(selectors.clientBasicData.mobileInput, '987654321')
|
||||||
.clearInput(selectors.clientBasicData.emailInput)
|
.clearInput(selectors.clientBasicData.emailInput)
|
||||||
.write(selectors.clientBasicData.emailInput, 'Storm@verdnatura.es')
|
.write(selectors.clientBasicData.emailInput, 'Storm@verdnatura.es')
|
||||||
.autocompleteSearch(selectors.clientBasicData.salesPersonAutocomplete, 'AccessoryNick')
|
.autocompleteSearch(selectors.clientBasicData.salesPersonAutocomplete, 'replenisherNick')
|
||||||
.autocompleteSearch(selectors.clientBasicData.channelAutocomplete, 'Metropolis newspaper')
|
.autocompleteSearch(selectors.clientBasicData.channelAutocomplete, 'Metropolis newspaper')
|
||||||
.waitToClick(selectors.clientBasicData.saveButton)
|
.waitToClick(selectors.clientBasicData.saveButton)
|
||||||
.waitForLastSnackbar();
|
.waitForLastSnackbar();
|
||||||
|
@ -162,7 +162,7 @@ describe('Client Edit basicData path', () => {
|
||||||
const result = await nightmare
|
const result = await nightmare
|
||||||
.waitToGetProperty(`${selectors.clientBasicData.salesPersonAutocomplete} input`, 'value');
|
.waitToGetProperty(`${selectors.clientBasicData.salesPersonAutocomplete} input`, 'value');
|
||||||
|
|
||||||
expect(result).toEqual('accessoryNick');
|
expect(result).toEqual('replenisherNick');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should now confirm the channel have been selected', async() => {
|
it('should now confirm the channel have been selected', async() => {
|
||||||
|
|
|
@ -88,7 +88,7 @@ describe('Ticket Create new tracking state path', () => {
|
||||||
|
|
||||||
it(`should create a new state with all it's data`, async() => {
|
it(`should create a new state with all it's data`, async() => {
|
||||||
let result = await nightmare
|
let result = await nightmare
|
||||||
.autocompleteSearch(selectors.createStateView.workerAutocomplete, 'accessory')
|
.autocompleteSearch(selectors.createStateView.workerAutocomplete, 'replenisher')
|
||||||
.waitToClick(selectors.createStateView.saveStateButton)
|
.waitToClick(selectors.createStateView.saveStateButton)
|
||||||
.waitForLastSnackbar();
|
.waitForLastSnackbar();
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
"params": {
|
"params": {
|
||||||
"item-tags": "$ctrl.itemTags"
|
"item-tags": "$ctrl.itemTags"
|
||||||
},
|
},
|
||||||
"acl": ["buyer", "accessory"]
|
"acl": ["buyer", "replenisher"]
|
||||||
}, {
|
}, {
|
||||||
"url" : "/tax",
|
"url" : "/tax",
|
||||||
"state": "item.card.tax",
|
"state": "item.card.tax",
|
||||||
|
|
Loading…
Reference in New Issue