mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-01 04:32:16 +08:00
Actually add proper e2e ids to inventories and inventory items [SCI-9624]
This commit is contained in:
parent
e13314349c
commit
8e080d5314
2 changed files with 2 additions and 2 deletions
|
@ -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-${row.id}">${value}</a>`;
|
||||
return `<a href="${row.repositoryUrl}" data-e2e="e2e-TL-inventories-Inventory-${row.DT_RowId}">${value}</a>`;
|
||||
}
|
||||
}, {
|
||||
targets: 5,
|
||||
|
|
|
@ -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-" + row.id + "'>" + data + '</a>';
|
||||
+ "class='record-info-link' data-e2e='e2e-TL-invInventory-Item-" + row.DT_RowId + "'>" + data + '</a>';
|
||||
}
|
||||
}, {
|
||||
// Added on column
|
||||
|
|
Loading…
Reference in a new issue