fixed e2e
gitea/salix/dev This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-09-12 13:20:07 +02:00
parent 8b8463e936
commit 0702186b88
1 changed files with 4 additions and 4 deletions

View File

@ -42,18 +42,18 @@ describe('Ticket diary path', () => {
expect(url.hash).toContain('/diary'); expect(url.hash).toContain('/diary');
}); });
it(`should check the second line id is marked as counter`, async() => { it(`should check the second line id is marked as message`, async() => {
const result = await nightmare const result = await nightmare
.waitToGetProperty(selectors.itemDiary.secondTicketId, 'className'); .waitToGetProperty(selectors.itemDiary.secondTicketId, 'className');
expect(result).toContain('counter'); expect(result).toContain('message');
}); });
it(`should check the third line balance is marked as counter`, async() => { it(`should check the third line balance is marked as message`, async() => {
const result = await nightmare const result = await nightmare
.waitToGetProperty(`${selectors.itemDiary.fourthBalance} > span`, 'className'); .waitToGetProperty(`${selectors.itemDiary.fourthBalance} > span`, 'className');
expect(result).toContain('counter'); expect(result).toContain('message');
}); });
it(`should change to the warehouse two and check there are sales marked as negative balance`, async() => { it(`should change to the warehouse two and check there are sales marked as negative balance`, async() => {