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

This commit is contained in:
Martin Artnik 2023-11-22 13:49:29 +01:00
parent 09310f6546
commit 0b2c8546c0
2 changed files with 2 additions and 2 deletions

View file

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

View file

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