Actually add proper e2e ids to inventories and inventory items [SCI-9624]

This commit is contained in:
Martin Artnik 2023-11-22 15:51:31 +01:00
parent e13314349c
commit 8e080d5314
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@
targets: 1, targets: 1,
className: 'item-name', className: 'item-name',
render: function(value, type, row) { render: function(value, type, row) {
return `<a href="${row.repositoryUrl}" data-e2e="e2e-TL-inventories-Inventory-${row.id}">${value}</a>`; return `<a href="${row.repositoryUrl}" data-e2e="e2e-TL-inventories-Inventory-${row.DT_RowId}">${value}</a>`;
} }
}, { }, {
targets: 5, targets: 5,

View file

@ -667,7 +667,7 @@ var RepositoryDatatable = (function(global) {
visible: true, visible: true,
render: function(data, type, row) { render: function(data, type, row) {
return "<a href='" + row.recordInfoUrl + "'" return "<a href='" + row.recordInfoUrl + "'"
+ "class='record-info-link' data-e2e='e2e-TL-invInventory-Item-" + row.id + "'>" + data + '</a>'; + "class='record-info-link' data-e2e='e2e-TL-invInventory-Item-" + row.DT_RowId + "'>" + data + '</a>';
} }
}, { }, {
// Added on column // Added on column