Merge pull request from artoscinote/ma_SCI_9624

Actually add proper e2e ids to inventories and inventory items [SCI-9624]
This commit is contained in:
Martin Artnik 2023-11-22 15:54:06 +01:00 committed by GitHub
commit 58aa0f096d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
app/assets/javascripts/repositories

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