Skip to content

Commit

Permalink
try and fix tests and classes for new widgets in #317
Browse files Browse the repository at this point in the history
  • Loading branch information
kltm committed Mar 22, 2016
1 parent 0e588dd commit e36fef2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions templates/html/bs3/common/term_details_search.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div>
<h4>Filter results</h4>

<div id="accordion">
<div id="accordion" class="bbop-widget-set-live-filters">
Loading...
</div>

Expand All @@ -17,9 +17,9 @@

<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">

<div id="pager">
<div id="pager" class="bbop-widget-set-live-pager">
</div>
<div id="results">
<div id="results" class="bbop-widget-set-live-results">
pending...
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions templates/html/bs3/pages/gene_product_details.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<div>
<h4>Filter results</h4>

<div id="accordion">
<div id="accordion" class="bbop-widget-set-live-filters">
Loading...
</div>

Expand All @@ -117,9 +117,9 @@

<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">

<div id="pager">
<div id="pager" class="bbop-widget-set-live-pager">
</div>
<div id="results">
<div id="results" class="bbop-widget-set-live-results">
pending...
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions templates/html/bs3/pages/live_search_golr.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<div>
<h4>Filter results</h4>

<div id="accordion">
<div id="accordion" class="bbop-widget-set-live-filters">
Loading...
</div>

Expand All @@ -55,9 +55,9 @@

<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">

<div id="pager">
<div id="pager" class="bbop-widget-set-live-pager">
</div>
<div id="results">
<div id="results" class="bbop-widget-set-live-results">
pending...
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion test-app/behave/steps/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def step_impl(context, number):

## Get the right element by class association.
## WARNING: would work with only one widget on a page.
target_clss = "bbop-js-search-pane-meta"
target_clss = "bbop-widget-set-live-pager"
webelt = context.browser.find_element_by_class_name(target_clss)
eltext = webelt.text

Expand Down
2 changes: 1 addition & 1 deletion test-app/behave/steps/search_counts.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def step_impl(context, searchpage):

@then('the total should be within 10% of recent count "{count}"')
def step_impl(context, count):
webelt = context.browser.find_element_by_class_name('bbop-js-search-pane-meta')
webelt = context.browser.find_element_by_class_name('bbop-widget-set-live-pager')
assert webelt.text.rfind('Total:') != -1
line = webelt.text
linetotal = map(int, re.findall('\d+', line))
Expand Down

0 comments on commit e36fef2

Please sign in to comment.