#774 Arreglar e2e de ticket expeditions

This commit is contained in:
Carlos Jimenez 2018-10-29 11:07:48 +01:00
parent 5423744489
commit ba778d5d31
2 changed files with 3 additions and 1 deletions

View File

@ -300,6 +300,7 @@ export default {
ticketExpedition: {
expeditionButton: `vn-menu-item a[ui-sref="ticket.card.expedition"]`,
secondExpeditionRemoveButton: `vn-ticket-expedition vn-table div > vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(1) > vn-icon-button[icon="delete"]`,
acceptDeleteRowButton: `vn-ticket-expedition > vn-confirm[vn-id="delete-expedition"] button[response=ACCEPT]`,
expeditionRow: `vn-ticket-expedition vn-table vn-tbody > vn-tr`,
},
ticketPackages: {

View File

@ -41,9 +41,10 @@ describe('Ticket', () => {
expect(url).toContain('expedition');
});
it(`should delete a former expedition and confirm the remaining expedition are the expected one`, async () => {
it(`should delete a former expedition and confirm the remaining expedition are the expected ones`, async () => {
const result = await nightmare
.waitToClick(selectors.ticketExpedition.secondExpeditionRemoveButton)
.waitToClick(selectors.ticketExpedition.acceptDeleteRowButton)
.click(selectors.ticketPackages.packagesButton)
.wait(selectors.ticketPackages.firstPackageSelect)
.click(selectors.ticketExpedition.expeditionButton)