Commit a48c7cfc by Will Daly

Replaced direct call to `browser.is_text_present()` with

`world.css_find()` to protect against StaleElementException
in Jenkins.
parent 7d7513b6
...@@ -8,8 +8,7 @@ Feature: Sign in ...@@ -8,8 +8,7 @@ Feature: Sign in
When I click the link with the text "Sign Up" When I click the link with the text "Sign Up"
And I fill in the registration form And I fill in the registration form
And I press the Create My Account button on the registration form And I press the Create My Account button on the registration form
Then I should see be on the studio home page Then I should see an email verification prompt
And I should see the message "complete your sign up we need you to verify your email address"
Scenario: Login with a valid redirect Scenario: Login with a valid redirect
Given I have opened a new course in Studio Given I have opened a new course in Studio
......
...@@ -22,14 +22,10 @@ def i_press_the_button_on_the_registration_form(step): ...@@ -22,14 +22,10 @@ def i_press_the_button_on_the_registration_form(step):
world.css_click(submit_css) world.css_click(submit_css)
@step('I should see be on the studio home page$') @step('I should see an email verification prompt')
def i_should_see_be_on_the_studio_home_page(step): def i_should_see_an_email_verification_prompt(step):
step.given('I should see the message "My Courses"') world.css_has_text('h1.page-header', u'My Courses')
world.css_has_text('div.msg h3.title', u'We need to verify your email address')
@step(u'I should see the message "([^"]*)"$')
def i_should_see_the_message(step, msg):
assert world.browser.is_text_present(msg, 5)
@step(u'I fill in and submit the signin form$') @step(u'I fill in and submit the signin form$')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment