toastergui: Added IDs to elements used in testing
PATCH 1/1 toastergui: Added IDs to elements used in testing
From: Mihail Stanciu <[email protected]>
Added static IDs to elements commonly used in the testing process so that future UI modifications would not break tests as easily.
[YOCTO #7380]
Signed-off-by Mihail Stanciu <[email protected]>
Signed-off-by Michael Wood <[email protected]>
--- lib/toaster/toastergui/templates/basetable_top.html | 4 ++-- lib/toaster/toastergui/templates/newproject.html | 2 +- lib/toaster/toastergui/templates/projecttopbar.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-)
lib/toaster/toastergui/templates/basetable_top.html +2 -2
@@ -165,12 +165,12 @@ <input class="input-xxlarge" id="search" name="search" type="text" placeholder="Search {%if object_search_display %}{{object_search_display}}{%else%}{{objectname}}{%endif%}" value="{%if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{%endif%} <input type="hidden" name="orderby" value="{{request.GET.orderby}}"> <input type="hidden" name="page" value="1"> - <button class="btn" type="submit" value="Search">Search</button> + <button class="btn" id="search-button" type="submit" value="Search">Search</button> </form> <div class="pull-right"> {% if tablecols %} <div class="btn-group"> - <button class="btn dropdown-toggle" data-toggle="dropdown">Edit columns + <button id="edit-columns-button" class="btn dropdown-toggle" data-toggle="dropdown">Edit columns <span class="caret"></span> </button> <!--
lib/toaster/toastergui/templates/newproject.html +1 -1
@@ -59,7 +59,7 @@ {% endif %} <div class="form-actions"> - <input type="submit" class="btn btn-primary btn-large" value="Create project"/> + <input type="submit" id="create-project-button" class="btn btn-primary btn-large" value="Create project"/> <span class="help-inline" style="vertical-align:middle;">To create a project, you need to enter a project name</span> </div> </form>
lib/toaster/toastergui/templates/projecttopbar.html +2 -2
@@ -47,8 +47,8 @@ </i> <div class="input-append"> <form class="form-inline" style="margin-bottom: 0"> - <input type="text" class="input-xlarge input-lg build-target-input" placeholder="Type the recipe you want to build" autocomplete="off" disabled> - <button class="btn btn-primary btn-large build-button" data-project-id="{{project.id}}" disabled>Build + <input id="build-input" type="text" class="input-xlarge input-lg build-target-input" placeholder="Type the recipe you want to build" autocomplete="off" disabled> + <button id="build-button" class="btn btn-primary btn-large build-button" data-project-id="{{project.id}}" disabled>Build </button> </form> </div>
Signature · 1 line
2.1.4