e2e repairs

This commit is contained in:
Carlos Jimenez 2018-10-16 16:23:33 +02:00
parent c794b5538a
commit f7b2589b7a
3 changed files with 11 additions and 11 deletions

View File

@ -68,7 +68,7 @@ describe('Ticket List sale path', () => {
.wait(selectors.ticketSales.firstSaleText) .wait(selectors.ticketSales.firstSaleText)
.getInnerText(selectors.ticketSales.firstSalePrice) .getInnerText(selectors.ticketSales.firstSalePrice)
.then(value => { .then(value => {
expect(value).toContain('9.10'); expect(value).toContain('9.10');
}); });
}); });
@ -104,7 +104,7 @@ describe('Ticket List sale path', () => {
.wait(selectors.ticketSales.secondSaleText) .wait(selectors.ticketSales.secondSaleText)
.getInnerText(selectors.ticketSales.secondSalePrice) .getInnerText(selectors.ticketSales.secondSalePrice)
.then(value => { .then(value => {
expect(value).toContain('1.07'); expect(value).toContain('1.07');
}); });
}); });

View File

@ -120,7 +120,7 @@ describe('Ticket', () => {
return nightmare return nightmare
.getInnerText(selectors.ticketBasicData.stepTwoTotalPriceDif) .getInnerText(selectors.ticketBasicData.stepTwoTotalPriceDif)
.then(result => { .then(result => {
expect(result).toContain('-20.65'); expect(result).toContain('-20.65');
}); });
}); });

View File

@ -60,7 +60,7 @@ describe('Ticket Edit sale path', () => {
.wait(selectors.ticketSales.firstSaleText) .wait(selectors.ticketSales.firstSaleText)
.getInnerText(selectors.ticketSales.firstSalePrice) .getInnerText(selectors.ticketSales.firstSalePrice)
.then(value => { .then(value => {
expect(value).toEqual('€9.10'); expect(value).toContain('9.10');
}); });
}); });
@ -78,7 +78,7 @@ describe('Ticket Edit sale path', () => {
.wait(selectors.ticketSales.firstSaleText) .wait(selectors.ticketSales.firstSaleText)
.getInnerText(selectors.ticketSales.firstSaleImport) .getInnerText(selectors.ticketSales.firstSaleImport)
.then(value => { .then(value => {
expect(value).toEqual('€45.50'); expect(value).toContain('45.50');
}); });
}); });
@ -218,7 +218,7 @@ describe('Ticket Edit sale path', () => {
return nightmare return nightmare
.getInnerText(selectors.ticketSales.firstSalePrice) .getInnerText(selectors.ticketSales.firstSalePrice)
.then(result => { .then(result => {
expect(result).toContain('5.00'); expect(result).toContain('5.00');
}); });
}); });
@ -226,7 +226,7 @@ describe('Ticket Edit sale path', () => {
return nightmare return nightmare
.getInnerText(selectors.ticketSales.firstSaleImport) .getInnerText(selectors.ticketSales.firstSaleImport)
.then(result => { .then(result => {
expect(result).toContain('20.00'); expect(result).toContain('20.00');
}); });
}); });
@ -253,10 +253,10 @@ describe('Ticket Edit sale path', () => {
it('should confirm the total import for that item have been updated', () => { it('should confirm the total import for that item have been updated', () => {
return nightmare return nightmare
.waitForTextInElement(selectors.ticketSales.firstSaleImport, '10.00') .waitForTextInElement(selectors.ticketSales.firstSaleImport, '10.00')
.getInnerText(selectors.ticketSales.firstSaleImport) .getInnerText(selectors.ticketSales.firstSaleImport)
.then(result => { .then(result => {
expect(result).toContain('10.00'); expect(result).toContain('10.00');
}); });
}); });
@ -544,10 +544,10 @@ describe('Ticket Edit sale path', () => {
.wait(selectors.ticketSales.moreMenuUpdateDiscountInput) .wait(selectors.ticketSales.moreMenuUpdateDiscountInput)
.type(selectors.ticketSales.moreMenuUpdateDiscountInput, 100) .type(selectors.ticketSales.moreMenuUpdateDiscountInput, 100)
.type('body', '\u000d') // simulates enter .type('body', '\u000d') // simulates enter
.waitForTextInElement(selectors.ticketSales.totalImport, '0.00') .waitForTextInElement(selectors.ticketSales.totalImport, '0.00')
.getInnerText(selectors.ticketSales.totalImport) .getInnerText(selectors.ticketSales.totalImport)
.then(result => { .then(result => {
expect(result).toEqual('€0.00'); expect(result).toContain('0.00');
}); });
}); });