E2E item tax and clone Path repairs
This commit is contained in:
parent
b3ec161b00
commit
48e788b90a
|
@ -182,6 +182,7 @@ export default {
|
|||
submitBasicDataButton: `${components.vnSubmit}`
|
||||
},
|
||||
itemTags: {
|
||||
goToItemIndexButton: 'body > vn-app > vn-vertical > vn-vertical > ui-view > vn-item-card > vn-main-block > vn-horizontal > vn-auto > vn-item-descriptor > vn-card > div > vn-vertical > vn-auto.descriptor-header.pointer > img',
|
||||
tagsButton: `${components.vnMenuItem}[ui-sref="item.card.tags"]`,
|
||||
firstTagSelect: `vn-horizontal:nth-child(3) > ${components.vnAutocomplete}[field="itemTag.tagFk"] > vn-vertical > ${components.vnTextfield}`,
|
||||
firstTagSelectOptionOne: `vn-horizontal:nth-child(3) > ${components.vnAutocomplete}[field="itemTag.tagFk"] > vn-vertical > vn-drop-down > vn-vertical:not(.ng-hide) > vn-auto:nth-child(2) > ul > li:nth-child(1)`,
|
||||
|
|
|
@ -53,10 +53,10 @@ describe('add item tax path', () => {
|
|||
});
|
||||
});
|
||||
|
||||
it(`should confirm the item name was edited`, () => {
|
||||
it(`should confirm the item tax class was edited`, () => {
|
||||
return nightmare
|
||||
.click(selectors.itemTags.tagsButton)
|
||||
.wait(selectors.itemTags.tagsButton)
|
||||
.wait(selectors.itemTags.firstTagSelect)
|
||||
.waitToClick(selectors.itemTax.taxButton)
|
||||
.wait(200)
|
||||
.getInputValue(selectors.itemTax.firstClassSelect)
|
||||
|
|
|
@ -121,6 +121,7 @@ describe('Item', () => {
|
|||
|
||||
it('should search for the item Infinity Gauntlet and find two', () => {
|
||||
return nightmare
|
||||
.waitToClick(selectors.itemTags.goToItemIndexButton)
|
||||
.wait(selectors.itemsIndex.searchResult)
|
||||
.type(selectors.itemsIndex.searchItemInput, 'Infinity Gauntlet')
|
||||
.click(selectors.itemsIndex.searchButton)
|
||||
|
|
Loading…
Reference in New Issue