From e7f9489d73551eba9434efe2e39ba5e75ab003d7 Mon Sep 17 00:00:00 2001 From: Thais Siqueira Date: Mon, 17 Apr 2017 16:40:51 -0300 Subject: Adds steps to ensure users sees inbox in funcional tests https://github.com/pixelated/project-issues/issues/433 with @anikarni --- service/test/functional/features/smoke.feature | 4 +++- service/test/functional/features/steps/login.py | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'service/test/functional') 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): -- cgit v1.2.3