summaryrefslogtreecommitdiff
path: root/service/test/functional
diff options
context:
space:
mode:
Diffstat (limited to 'service/test/functional')
-rw-r--r--service/test/functional/features/environment.py1
-rw-r--r--service/test/functional/features/login.feature1
-rw-r--r--service/test/functional/features/steps/login.py10
3 files changed, 12 insertions, 0 deletions
diff --git a/service/test/functional/features/environment.py b/service/test/functional/features/environment.py
index 3f478def..37b5d612 100644
--- a/service/test/functional/features/environment.py
+++ b/service/test/functional/features/environment.py
@@ -61,6 +61,7 @@ def after_all(context):
def before_feature(context, feature):
+ # context.browser = webdriver.Chrome()
# context.browser = webdriver.Firefox()
context.browser = webdriver.PhantomJS()
context.browser.set_window_size(1280, 1024)
diff --git a/service/test/functional/features/login.feature b/service/test/functional/features/login.feature
index 9a353d74..d22cc774 100644
--- a/service/test/functional/features/login.feature
+++ b/service/test/functional/features/login.feature
@@ -25,4 +25,5 @@ Feature: login and logout
When I open the login page
And I enter username and password as credentials
And I click on the login button
+ Then I should see the fancy interstitial
Then I have mails
diff --git a/service/test/functional/features/steps/login.py b/service/test/functional/features/steps/login.py
index 3c80e819..7f17567a 100644
--- a/service/test/functional/features/steps/login.py
+++ b/service/test/functional/features/steps/login.py
@@ -32,3 +32,13 @@ def enter_credentials(context, username, password):
def click_login(context):
login_button = wait_until_element_is_visible_by_locator(context, (By.CSS_SELECTOR, 'input[name="login"]'))
login_button.click()
+
+
+@then(u'I should see the fancy interstitial')
+def step_impl(context):
+ assert find_element_by_css_selector(context, 'section#hive-section')
+ _wait_for_interstitial_to_reload()
+
+
+def _wait_for_interstitial_to_reload():
+ time.sleep(6)