diff options
author | Tulio Casagrande <tcasagra@thoughtworks.com> | 2016-11-28 16:31:48 -0200 |
---|---|---|
committer | Tulio Casagrande <tcasagra@thoughtworks.com> | 2016-11-29 16:45:06 -0200 |
commit | 60c9020a11a88e07cb63ede737791bbeb8bbe6ec (patch) | |
tree | 431ee1ac00bc23b0af2b6649136a76826581cd3d /service/test/functional/features/steps | |
parent | 708225d9c41f13b714286a755c22e0f31d6ef4c7 (diff) |
Convert URL constants to behave's userdata
Behave 1.2.5 introduces user-specific configuration data, which can be
used to override default values.
See: https://github.com/pixelated/project-issues/issues/380
Diffstat (limited to 'service/test/functional/features/steps')
-rw-r--r-- | service/test/functional/features/steps/common.py | 8 | ||||
-rw-r--r-- | service/test/functional/features/steps/login.py | 3 |
2 files changed, 1 insertions, 10 deletions
diff --git a/service/test/functional/features/steps/common.py b/service/test/functional/features/steps/common.py index 4ffe40ce..bbceb015 100644 --- a/service/test/functional/features/steps/common.py +++ b/service/test/functional/features/steps/common.py @@ -25,18 +25,10 @@ from selenium.webdriver.support.wait import WebDriverWait from test.support.integration import MailBuilder -LOADING = 'loading' - TIMEOUT_IN_S = 20 DEFAULT_IMPLICIT_WAIT_TIMEOUT_IN_S = 10.0 -HOMEPAGE_URL = 'http://localhost:8889/' - -MULTI_USER_PORT = 4568 - -MULTI_USER_URL = 'http://localhost:%d/' % MULTI_USER_PORT - class ImplicitWait(object): def __init__(self, context, timeout=5.0): diff --git a/service/test/functional/features/steps/login.py b/service/test/functional/features/steps/login.py index 2a653030..d1840900 100644 --- a/service/test/functional/features/steps/login.py +++ b/service/test/functional/features/steps/login.py @@ -21,13 +21,12 @@ from selenium.webdriver.common.by import By from common import ( fill_by_css_selector, find_element_by_css_selector, - MULTI_USER_URL, wait_until_element_is_visible_by_locator) @when(u'I open the login page') def login_page(context): - context.browser.get(MULTI_USER_URL + '/login') + context.browser.get(context.multi_user_url + '/login') @when(u'I enter {username} and {password} as credentials') |