#1709 arreglar e2e order
gitea/salix/dev There was a failure building this commit Details

This commit is contained in:
Bernat 2019-09-23 08:17:21 +02:00
parent 0f04aed2fe
commit e421a95145
2 changed files with 4 additions and 2 deletions

View File

@ -619,7 +619,8 @@ export default {
addressAutocomplete: 'vn-autocomplete[label="Address"]',
agencyAutocomplete: 'vn-autocomplete[label="Agency"]',
observationInput: 'vn-textarea[label="Observation"] textarea',
saveButton: `${components.vnSubmit}`
saveButton: `${components.vnSubmit}`,
acceptButton: 'vn-order-basic-data vn-confirm[vn-id="confirm"] button[response="ACCEPT"]'
},
orderLine: {
orderSubtotal: 'vn-order-line vn-horizontal.header p:nth-child(1)',

View File

@ -53,7 +53,7 @@ describe('Order edit basic data path', () => {
it('should navigate to the order index and click the new order button', async() => {
const url = await nightmare
.waitToClick(selectors.globalItems.returnToModuleIndexButton)
.waitToClick(selectors.globalItems.acceptButton)
.waitToClick(selectors.orderBasicData.acceptButton)
.waitToClick(selectors.ordersIndex.createOrderButton)
.waitForURL('#!/order/create')
.parsedUrl();
@ -75,6 +75,7 @@ describe('Order edit basic data path', () => {
it('should navigate to the basic data section of the new order', async() => {
const url = await nightmare
.wait(1999)
.accessToSection('order.card.basicData')
.wait(selectors.orderBasicData.observationInput)
.parsedUrl();