#777 e2e item.log
gitea/salix/dev This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2019-03-20 14:43:38 +01:00
parent 23e898c036
commit 8a9bcc3822
2 changed files with 6 additions and 5 deletions

View File

@ -293,7 +293,7 @@ export default {
warehouseAutocomplete: 'vn-item-diary vn-autocomplete[field="$ctrl.warehouseFk"]', warehouseAutocomplete: 'vn-item-diary vn-autocomplete[field="$ctrl.warehouseFk"]',
}, },
itemLog: { itemLog: {
fourthLineCreatedProperty: 'vn-item-log > vn-log vn-tbody > vn-tr:nth-child(4) > vn-td > vn-one:nth-child(3) > div span:nth-child(3)', anyLineCreated: 'vn-item-log > vn-log vn-tbody > vn-tr',
fifthLineCreatedProperty: 'vn-item-log > vn-log vn-tbody > vn-tr:nth-child(5) > vn-td > vn-one:nth-child(3) > div span:nth-child(3)', fifthLineCreatedProperty: 'vn-item-log > vn-log vn-tbody > vn-tr:nth-child(5) > vn-td > vn-one:nth-child(3) > div span:nth-child(3)',
}, },
ticketSummary: { ticketSummary: {

View File

@ -59,11 +59,12 @@ describe('Item log path', () => {
expect(url.hash).toContain('/log'); expect(url.hash).toContain('/log');
}); });
it(`should confirm the log is showing the created item temporary name`, async() => { it(`should confirm the log is showing 5 entries`, async() => {
const fourthLineCreatedProperty = await nightmare const anyLineCreatedCount = await nightmare
.waitToGetProperty(selectors.itemLog.fourthLineCreatedProperty, 'innerText'); .wait(selectors.itemLog.anyLineCreated)
.countElement(selectors.itemLog.anyLineCreated);
expect(fourthLineCreatedProperty).toEqual('Knowledge artifact'); expect(anyLineCreatedCount).toEqual(5);
}); });
it(`should confirm the log is showing the intrastat for the created item`, async() => { it(`should confirm the log is showing the intrastat for the created item`, async() => {