mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 20:19:05 +08:00
Merge pull request #6690 from artoscinote/ma_SCI_9624
Actually add proper e2e ids to inventories and inventory items [SCI-9624]
This commit is contained in:
commit
58aa0f096d
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