Skip to content

Commit 0265ddb

Browse files
committed
Fix acceptance tests.
1 parent 5825caa commit 0265ddb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/acceptance/lute_test_client.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,9 @@ def get_term_table_content(self):
259259
self.visit("/")
260260
self.browser.find_by_css("#menu_terms").mouse_over()
261261
self.browser.find_by_id("term_index").first.click()
262-
css = "#termtable tbody tr"
262+
263+
# clear any filters!
264+
self.browser.find_by_id("showHideFilters").first.click()
263265

264266
# The last column of the table is the "date added", but that's
265267
# a hassle to check, so ignore it.
@@ -271,8 +273,10 @@ def _to_string(row):
271273
return ret
272274
return "; ".join(rowtext[:-1]).strip()
273275

276+
css = "#termtable tbody tr"
274277
rows = list(self.browser.find_by_css(css))
275-
return "\n".join([_to_string(row) for row in rows])
278+
rowstring = [_to_string(row) for row in rows]
279+
return "\n".join(rowstring)
276280

277281
################################3
278282
# Reading/rendering

0 commit comments

Comments
 (0)