signup.feature 1.72 KB
Newer Older
1
@shard_2
2
Feature: CMS.Sign in
3 4 5 6 7 8
  In order to use the edX content
  As a new user
  I want to signup for a student account

  Scenario: Sign up from the homepage
    Given I visit the Studio homepage
9
    When I click the link with the text "Sign Up"
10
    And I fill in the registration form
11
    And I press the Create My Account button on the registration form
12
    Then I should see an email verification prompt
13 14 15 16

  Scenario: Login with a valid redirect
    Given I have opened a new course in Studio
    And I am not logged in
17 18
    And I visit the url "/course/slashes:MITx+999+Robot_Super_Course"
    And I should see that the path is "/signin?next=/course/slashes%3AMITx%2B999%2BRobot_Super_Course"
19 20
    When I fill in and submit the signin form
    And I wait for "2" seconds
21
    Then I should see that the path is "/course/slashes:MITx+999+Robot_Super_Course"
22 23 24 25 26 27 28

  Scenario: Login with an invalid redirect
    Given I have opened a new course in Studio
    And I am not logged in
    And I visit the url "/signin?next=http://www.google.com/"
    When I fill in and submit the signin form
    And I wait for "2" seconds
Matjaz Gregoric committed
29
    Then I should see that the path is "/home/"
30 31 32 33 34 35 36 37 38 39 40 41 42 43

  Scenario: Login with mistyped credentials
    Given I have opened a new course in Studio
    And I am not logged in
    And I visit the Studio homepage
    When I click the link with the text "Sign In"
    Then I should see that the path is "/signin"
    And I should not see a login error message
    And I fill in and submit the signin form incorrectly
    Then I should see a login error message
    And I edit the password field
    Then I should not see a login error message
    And I submit the signin form
    And I wait for "2" seconds
Matjaz Gregoric committed
44
    Then I should see that the path is "/home/"