[bitbake-devel] [PATCH] toastergui: Added IDs to elements used in testing
Michael Wood
michael.g.wood at intel.com
Wed Aug 12 14:37:55 UTC 2015
From: Mihail Stanciu <stanciux.mihail at intel.com>
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 at intel.com>
Signed-off-by: Michael Wood <michael.g.wood at intel.com>
---
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(-)
diff --git a/lib/toaster/toastergui/templates/basetable_top.html b/lib/toaster/toastergui/templates/basetable_top.html
index d4bac36..33ede66 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 745b79b..997390b 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 220ca72..7412e4c 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>
--
2.1.4
More information about the bitbake-devel
mailing list