summaryrefslogtreecommitdiff
path: root/service/test/functional/features/steps/signup.py
diff options
context:
space:
mode:
authorTulio Casagrande <tcasagra@thoughtworks.com>2016-11-30 19:07:56 -0200
committerTulio Casagrande <tcasagra@thoughtworks.com>2016-11-30 19:07:56 -0200
commita8a7362054f4b49ea1fbc00fe7b556e6e6ea4590 (patch)
tree3151988160ca29e6dfede48b160c44e48d72f8a0 /service/test/functional/features/steps/signup.py
parentb6f60fd007efc84ef7cc2b63988448a61bbeb8d2 (diff)
Add timeout to find by css selector
See: https://github.com/pixelated/project-issues/issues/381
Diffstat (limited to 'service/test/functional/features/steps/signup.py')
-rw-r--r--service/test/functional/features/steps/signup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/test/functional/features/steps/signup.py b/service/test/functional/features/steps/signup.py
index 1252017c..1558004b 100644
--- a/service/test/functional/features/steps/signup.py
+++ b/service/test/functional/features/steps/signup.py
@@ -18,6 +18,7 @@ import uuid
from behave import given, then, when
from common import (
+ element_should_have_content,
fill_by_css_selector,
find_element_by_css_selector)
@@ -41,5 +42,4 @@ def step_impl(context):
@then(u'I should see the user control panel') # noqa
def step_impl(context):
- text = find_element_by_css_selector(context, 'h1').text
- assert text == 'user control panel'
+ element_should_have_content(context, 'h1', 'user control panel')