From 8e080d53147fb82bfb5d456b592876582960900a Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Wed, 22 Nov 2023 15:51:31 +0100 Subject: [PATCH] Actually add proper e2e ids to inventories and inventory items [SCI-9624] --- app/assets/javascripts/repositories/index.js | 2 +- app/assets/javascripts/repositories/repository_datatable.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/repositories/index.js b/app/assets/javascripts/repositories/index.js index 110462e64..18eb46955 100644 --- a/app/assets/javascripts/repositories/index.js +++ b/app/assets/javascripts/repositories/index.js @@ -75,7 +75,7 @@ targets: 1, className: 'item-name', render: function(value, type, row) { - return `${value}`; + return `${value}`; } }, { targets: 5, diff --git a/app/assets/javascripts/repositories/repository_datatable.js b/app/assets/javascripts/repositories/repository_datatable.js index fd6171caf..ef1b417e3 100644 --- a/app/assets/javascripts/repositories/repository_datatable.js +++ b/app/assets/javascripts/repositories/repository_datatable.js @@ -667,7 +667,7 @@ var RepositoryDatatable = (function(global) { visible: true, render: function(data, type, row) { return "" + data + ''; + + "class='record-info-link' data-e2e='e2e-TL-invInventory-Item-" + row.DT_RowId + "'>" + data + ''; } }, { // Added on column