summaryrefslogtreecommitdiff
path: root/service/test/functional
diff options
context:
space:
mode:
authorThais Siqueira <thais.siqueira@gmail.com>2017-04-17 16:40:51 -0300
committerThais Siqueira <thais.siqueira@gmail.com>2017-04-17 16:40:51 -0300
commite7f9489d73551eba9434efe2e39ba5e75ab003d7 (patch)
tree38c3ee6c31f7943c93023d9a65919613fd287a15 /service/test/functional
parent33509357757f59d0f371b02d901ea0d98ada2c2c (diff)
Adds steps to ensure users sees inbox in funcional tests
https://github.com/pixelated/project-issues/issues/433 with @anikarni
Diffstat (limited to 'service/test/functional')
-rw-r--r--service/test/functional/features/smoke.feature4
-rw-r--r--service/test/functional/features/steps/login.py5
2 files changed, 8 insertions, 1 deletions
diff --git a/service/test/functional/features/smoke.feature b/service/test/functional/features/smoke.feature
index b8fdbf35..d4149334 100644
--- a/service/test/functional/features/smoke.feature
+++ b/service/test/functional/features/smoke.feature
@@ -31,7 +31,8 @@ Feature: sign up, login and logout
When 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
+ And I should see the inbox
+ And I have mails
When I logout
Then I should see the login page
@@ -40,6 +41,7 @@ Feature: sign up, login and logout
When I enter username and password as credentials
And I click on the login button
Then I should see the fancy interstitial
+ And I should see the inbox
Given I go to the backup account page
When I logout from the header
Then I should see the login page
diff --git a/service/test/functional/features/steps/login.py b/service/test/functional/features/steps/login.py
index 7360adb7..a9dbb257 100644
--- a/service/test/functional/features/steps/login.py
+++ b/service/test/functional/features/steps/login.py
@@ -56,6 +56,11 @@ def see_interstitial(context):
find_element_by_css_selector(context, 'section#hive-section')
+@then(u'I should see the inbox')
+def see_interstitial(context):
+ find_element_by_css_selector(context, 'ul#mail-list')
+
+
@then(u'I logout')
@when(u'I logout')
def click_logout(context):