From e36fef208d94fe00083aec3adf8f9290445a393c Mon Sep 17 00:00:00 2001 From: SC Date: Tue, 22 Mar 2016 15:27:14 -0700 Subject: [PATCH] try and fix tests and classes for new widgets in #317 --- templates/html/bs3/common/term_details_search.tmpl | 6 +++--- templates/html/bs3/pages/gene_product_details.tmpl | 6 +++--- templates/html/bs3/pages/live_search_golr.tmpl | 6 +++--- test-app/behave/steps/data.py | 2 +- test-app/behave/steps/search_counts.py | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/templates/html/bs3/common/term_details_search.tmpl b/templates/html/bs3/common/term_details_search.tmpl index bd0297839..f9012f31b 100644 --- a/templates/html/bs3/common/term_details_search.tmpl +++ b/templates/html/bs3/common/term_details_search.tmpl @@ -8,7 +8,7 @@

Filter results

-
+
Loading...
@@ -17,9 +17,9 @@
-
+
-
+
pending...
diff --git a/templates/html/bs3/pages/gene_product_details.tmpl b/templates/html/bs3/pages/gene_product_details.tmpl index b180ec3b2..83096e7d7 100644 --- a/templates/html/bs3/pages/gene_product_details.tmpl +++ b/templates/html/bs3/pages/gene_product_details.tmpl @@ -108,7 +108,7 @@

Filter results

-
+
Loading...
@@ -117,9 +117,9 @@
-
+
-
+
pending...
diff --git a/templates/html/bs3/pages/live_search_golr.tmpl b/templates/html/bs3/pages/live_search_golr.tmpl index 691abafb2..a51d9cb1f 100644 --- a/templates/html/bs3/pages/live_search_golr.tmpl +++ b/templates/html/bs3/pages/live_search_golr.tmpl @@ -46,7 +46,7 @@

Filter results

-
+
Loading...
@@ -55,9 +55,9 @@
-
+
-
+
pending...
diff --git a/test-app/behave/steps/data.py b/test-app/behave/steps/data.py index 338ddc408..4486ba3ca 100644 --- a/test-app/behave/steps/data.py +++ b/test-app/behave/steps/data.py @@ -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 diff --git a/test-app/behave/steps/search_counts.py b/test-app/behave/steps/search_counts.py index ba35894f6..c02f149ba 100644 --- a/test-app/behave/steps/search_counts.py +++ b/test-app/behave/steps/search_counts.py @@ -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))