summaryrefslogtreecommitdiff
path: root/service/test/functional
diff options
context:
space:
mode:
authorTulio Casagrande <tcasagra@thoughtworks.com>2017-02-17 16:49:54 -0200
committerTulio Casagrande <tcasagra@thoughtworks.com>2017-02-17 16:49:54 -0200
commit97cd3a2470e1de74a14fd4c1dad332a5a311e8eb (patch)
treef58cfeb08f53b1a9609a3dbe9d833d029b0a59c1 /service/test/functional
parente560075b89668e4d8c12a89424ff5d7fab638475 (diff)
[#907] Fix functional tests on snap
Diffstat (limited to 'service/test/functional')
-rw-r--r--service/test/functional/features/steps/tag_list.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/service/test/functional/features/steps/tag_list.py b/service/test/functional/features/steps/tag_list.py
index 2208a542..688636b2 100644
--- a/service/test/functional/features/steps/tag_list.py
+++ b/service/test/functional/features/steps/tag_list.py
@@ -49,7 +49,11 @@ def select_tag(context, tag):
success = False
while (not success) and (try_again > 0):
try:
- find_element_by_css_selector(context, '#tag-%s' % tag).click()
+ find_element_by_css_selector(context, '#tag-%s' % tag)
+
+ e = find_element_by_css_selector(context, '#tag-%s' % tag)
+ e.click()
+
find_element_by_css_selector(context, ".mail-list-entry__item[href*='%s']" % tag)
success = True
except (TimeoutException, StaleElementReferenceException):
@@ -58,11 +62,3 @@ def select_tag(context, tag):
try_again -= 1
assert success
-
-
-@when('I am in \'{tag}\'')
-def assert_in_tag(context, tag):
- expand_side_nav(context)
-
- e = find_element_by_css_selector(context, '#tag-%s' % tag)
- assert "selected" in e.get_attribute("class")