#777 e2e item.log

This commit is contained in:
Carlos Jimenez Ruiz 2019-03-20 13:44:06 +01:00
parent 7a5124aca2
commit 6173b55d45
1 changed files with 5 additions and 2 deletions

View File

@ -59,14 +59,17 @@ describe('Item log path', () => {
expect(url.hash).toContain('/log');
});
it(`should search for the created item and navigate to it's log section`, async() => {
it(`should confirm the log is showing the created item temporary name`, async() => {
const fourthLineCreatedProperty = await nightmare
.waitToGetProperty(selectors.itemLog.fourthLineCreatedProperty, 'innerText');
expect(fourthLineCreatedProperty).toEqual('Knowledge artifact');
});
it(`should confirm the log is showing the intrastat for the created item`, async() => {
const fifthLineCreatedProperty = await nightmare
.waitToGetProperty(selectors.itemLog.fifthLineCreatedProperty, 'innerText');
expect(fourthLineCreatedProperty).toEqual('Knowledge artifact');
expect(fifthLineCreatedProperty).toEqual('5080000');
});
});