diff --git a/SAS/TMSS/frontend/tmss_webapp/src/components/JSONEditor/JEditor.js b/SAS/TMSS/frontend/tmss_webapp/src/components/JSONEditor/JEditor.js
index de1840eeba5c989b0e74eb793878cb1b612df962..ca787e5e175bc129bf07ed8491d0170496ef82f7 100644
--- a/SAS/TMSS/frontend/tmss_webapp/src/components/JSONEditor/JEditor.js
+++ b/SAS/TMSS/frontend/tmss_webapp/src/components/JSONEditor/JEditor.js
@@ -1069,7 +1069,7 @@ function Jeditor(props) {
                 if (editor && editor.editors && editor.editors[stationPath]) {
                     let stationList =  editor.editors[stationPath].value;
                     let selectedStationsContent = '<label for="specification[resources][selected_station_list]">Selected Stations</label>';
-                    selectedStationsContent += `<div id='${stationPath}.stations_tag'>`;
+                    selectedStationsContent += `<div id='${stationPath}.stations_tag' role='selected_stations'>`;
                     if (stationList && stationList.length>0) {
                         for (const station of stationList) {
                             selectedStationsContent += `<span class="tag-content p-chips-token-label selected-station-tag">${station}</span>`;
diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Task/edit.test.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Task/edit.test.js
index 351583767d9ee479118397b790110df20b1b5d64..05c49cbc4727b179a37412b2c44729c6ed2d7466 100644
--- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Task/edit.test.js
+++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Task/edit.test.js
@@ -543,7 +543,8 @@ it("test IM BF Cal&Tgt Task Draft edit", async () => {
     
     expect(content.getByLabelText("specification[beamformer][pipelines][0][name]")).toBeInTheDocument();
     expect(content.getAllByText("Station groups").length).toBe(2);
-    expect(content.getByText("Station 21")).toBeInTheDocument();
+    expect(content.getAllByRole("selected_stations").length).toBe(1);
+    expect(content.getAllByRole("selected_stations")[0].children.length).toBe(21);
     expect(content.getByLabelText("specification[beamformer][pipelines][0][station_groups][0][max_nr_missing]")).toBeInTheDocument();
     expect(content.getByText("Use PPF when beamforming")).toBeInTheDocument();
     
diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Task/view.test.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Task/view.test.js
index 84d071e0d3a8ece62aa4102c8e06550db1e4901c..e327128f7bad7f5493e9997e597dff436e402682 100644
--- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Task/view.test.js
+++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Task/view.test.js
@@ -355,7 +355,8 @@ it("test IM BF Cal&Tgt Task Draft view", async () => {
     
     expect(content.getByLabelText("specification[beamformer][pipelines][0][name]")).toBeInTheDocument();
     expect(content.getAllByText("Station groups").length).toBe(2);
-    expect(content.getByText("Station 21")).toBeInTheDocument();
+    expect(content.getAllByRole("selected_stations").length).toBe(1);
+    expect(content.getAllByRole("selected_stations")[0].children.length).toBe(21);
     expect(content.getByLabelText("specification[beamformer][pipelines][0][station_groups][0][max_nr_missing]")).toBeInTheDocument();
     expect(content.getByText("Use PPF when beamforming")).toBeInTheDocument();
     
@@ -963,7 +964,8 @@ it("test IM BF Cal&Tgt Task Blueprint view", async () => {
     
     expect(content.getByLabelText("specification[beamformer][pipelines][0][name]")).toBeInTheDocument();
     expect(content.getAllByText("Station groups").length).toBe(2);
-    expect(content.getByText("Station 21")).toBeInTheDocument();
+    expect(content.getAllByRole("selected_stations").length).toBe(1);
+    expect(content.getAllByRole("selected_stations")[0].children.length).toBe(21);
     expect(content.getByLabelText("specification[beamformer][pipelines][0][station_groups][0][max_nr_missing]")).toBeInTheDocument();
     expect(content.getByText("Use PPF when beamforming")).toBeInTheDocument();