summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihail Stanciu <stanciux.mihail@intel.com>2015-08-12 15:37:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-17 08:47:51 +0100
commit04e896d7fb170271fb09dae5c2a42acb4b68f513 (patch)
treee315afb95dd8854acef2305ff71fcacbcedd354e
parent26e2b4a997503b82dc5535ce087565a0d6418141 (diff)
toastergui: Added IDs to elements used in testing
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 <stanciux.mihail@intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/toaster/toastergui/templates/basetable_top.html4
-rw-r--r--lib/toaster/toastergui/templates/newproject.html2
-rw-r--r--lib/toaster/toastergui/templates/projecttopbar.html4
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/toaster/toastergui/templates/basetable_top.html b/lib/toaster/toastergui/templates/basetable_top.html
index d4bac36d..33ede668 100644
--- a/lib/toaster/toastergui/templates/basetable_top.html
+++ b/lib/toaster/toastergui/templates/basetable_top.html
@@ -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>
<!--
diff --git a/lib/toaster/toastergui/templates/newproject.html b/lib/toaster/toastergui/templates/newproject.html
index 745b79b1..997390bc 100644
--- a/lib/toaster/toastergui/templates/newproject.html
+++ b/lib/toaster/toastergui/templates/newproject.html
@@ -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>
diff --git a/lib/toaster/toastergui/templates/projecttopbar.html b/lib/toaster/toastergui/templates/projecttopbar.html
index 220ca720..7412e4c2 100644
--- a/lib/toaster/toastergui/templates/projecttopbar.html
+++ b/lib/toaster/toastergui/templates/projecttopbar.html
@@ -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>