diff mbox series

[3/5] toaster/layerdetails: Add id labels to for to make tests more robust

Message ID 20260901225555.2254932-3-richard.purdie@linuxfoundation.org
State New
Headers show
Series [1/5] toaster: Rename wait_until_element_clickable -> wait_under_finder_clickable | expand

Commit Message

Richard Purdie Sept. 1, 2026, 10:55 p.m. UTC
The two textareas are hard to tell apart in the test code, add
id labels to them so the tests can work more effectively/robustly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 lib/toaster/toastergui/templates/layerdetails.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/lib/toaster/toastergui/templates/layerdetails.html b/lib/toaster/toastergui/templates/layerdetails.html
index 923ca3bfe4d..2f23156a12a 100644
--- a/lib/toaster/toastergui/templates/layerdetails.html
+++ b/lib/toaster/toastergui/templates/layerdetails.html
@@ -328,12 +328,12 @@ 
             <span class="current-value">{{layerversion.layer.summary|default_if_none:''}}</span>
             <form style="display:none; margin-bottom:20px; margin-top:5px;">
               <div class="form-group">
-                <textarea class="form-control" rows="2">{% if layerversion.layer.summary %}{{layerversion.layer.summary}}{% endif %}</textarea>
+                <textarea id="layer-summary" class="form-control" rows="2">{% if layerversion.layer.summary %}{{layerversion.layer.summary}}{% endif %}</textarea>
               </div>
               <button class="btn btn-default change-btn" data-layer-prop="summary" type="button">Save</button>
               <a href="#" class="btn btn-link cancel">Cancel</a>
             </form>
-            <span class="glyphicon glyphicon-edit"></span>
+            <span id="edit-layer-summary" class="glyphicon glyphicon-edit"></span>
             <span class="glyphicon glyphicon-trash delete-current-value" data-toggle="tooltip" title="Delete"></span>
             </dd>
             <dt>
@@ -344,12 +344,12 @@ 
             <span class="current-value">{{layerversion.layer.description|default_if_none:''}}</span>
             <form style="display:none; margin-bottom:20px; margin-top:5px;">
               <div class="form-group">
-                <textarea class="form-control" rows="6">{% if layerversion.layer.description %}{{layerversion.layer.description}}{% endif %}</textarea>
+                <textarea id="layer-description" class="form-control" rows="6">{% if layerversion.layer.description %}{{layerversion.layer.description}}{% endif %}</textarea>
               </div>
               <button class="btn btn-default change-btn" data-layer-prop="description" type="button" >Save</button>
               <a href="#" class="btn btn-link cancel">Cancel</a>
             </form>
-            <span class="glyphicon glyphicon-edit"></span>
+            <span id="edit-layer-description" class="glyphicon glyphicon-edit"></span>
             <span class="glyphicon glyphicon-trash delete-current-value" data-toggle="tooltip" title="Delete"></span>
             </dd>
             {% if layerversion.layer_source == layer_source.TYPE_LAYERINDEX  %}