diff --git a/db/dump/fixtures.sql b/db/dump/fixtures.sql index c3469ac64..810305b18 100644 --- a/db/dump/fixtures.sql +++ b/db/dump/fixtures.sql @@ -1289,9 +1289,9 @@ INSERT INTO `vn`.`itemTypeTag`(`id`, `itemTypeFk`, `tagFk`, `priority`) VALUES (1, 1, 1, 0), (2, 2, 2, 0), - (3, 3, 3, 1), - (4, 1, 4, 1), - (5, 1, 5, 1); + (3, 3, 3, 0), + (4, 1, 4, 4), + (5, 1, 5, 5); CALL `vn`.`itemRefreshTags`(NULL); diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index 1f7858f89..1e60e307c 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -501,7 +501,7 @@ export default { }, itemLog: { anyLineCreated: 'vn-item-log > vn-log vn-tbody > vn-tr', - thirdLineCreatedProperty: 'vn-item-log > vn-log vn-tbody > vn-tr:nth-child(3) > vn-td > vn-one:nth-child(3) > div span:nth-child(2)', + fifthLineCreatedProperty: 'vn-item-log > vn-log vn-tbody > vn-tr:nth-child(5) > vn-td > vn-one:nth-child(3) > div span:nth-child(2)', }, ticketSummary: { header: 'vn-ticket-summary > vn-card > h5', diff --git a/e2e/paths/04-item/07_create.spec.js b/e2e/paths/04-item/07_create.spec.js index 823bddfff..0820f2db7 100644 --- a/e2e/paths/04-item/07_create.spec.js +++ b/e2e/paths/04-item/07_create.spec.js @@ -38,7 +38,7 @@ describe('Item Create', () => { it('should create the Infinity Gauntlet item', async() => { await page.write(selectors.itemCreateView.temporalName, 'Infinity Gauntlet'); - await page.autocompleteSearch(selectors.itemCreateView.type, 'Paniculata'); + await page.autocompleteSearch(selectors.itemCreateView.type, 'Crisantemo'); await page.autocompleteSearch(selectors.itemCreateView.intrastat, 'Coral y materiales similares'); await page.autocompleteSearch(selectors.itemCreateView.origin, 'Holand'); await page.waitToClick(selectors.itemCreateView.createButton); @@ -56,7 +56,7 @@ describe('Item Create', () => { result = await page .waitToGetProperty(selectors.itemBasicData.type, 'value'); - expect(result).toEqual('Paniculata'); + expect(result).toEqual('Crisantemo'); result = await page .waitToGetProperty(selectors.itemBasicData.intrastat, 'value'); diff --git a/e2e/paths/04-item/10_item_log.spec.js b/e2e/paths/04-item/10_item_log.spec.js index 1b98025e9..2a885fe6f 100644 --- a/e2e/paths/04-item/10_item_log.spec.js +++ b/e2e/paths/04-item/10_item_log.spec.js @@ -28,7 +28,7 @@ describe('Item log path', () => { it('should create the Knowledge artifact item', async() => { await page.write(selectors.itemCreateView.temporalName, 'Knowledge artifact'); - await page.autocompleteSearch(selectors.itemCreateView.type, 'Paniculata'); + await page.autocompleteSearch(selectors.itemCreateView.type, 'Crisantemo'); await page.autocompleteSearch(selectors.itemCreateView.intrastat, 'Coral y materiales similares'); await page.autocompleteSearch(selectors.itemCreateView.origin, 'Holand'); await page.waitToClick(selectors.itemCreateView.createButton); @@ -52,12 +52,12 @@ describe('Item log path', () => { await page.waitForSelector(selectors.itemLog.anyLineCreated); const anyLineCreatedCount = await page.countElement(selectors.itemLog.anyLineCreated); - expect(anyLineCreatedCount).toEqual(3); + expect(anyLineCreatedCount).toEqual(5); }); it(`should confirm the log is showing the intrastat for the created item`, async() => { const fifthLineCreatedProperty = await page - .waitToGetProperty(selectors.itemLog.thirdLineCreatedProperty, 'innerText'); + .waitToGetProperty(selectors.itemLog.fifthLineCreatedProperty, 'innerText'); expect(fifthLineCreatedProperty).toEqual('Coral y materiales similares'); });