homepage.feature 1.39 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
Feature: Homepage for web users
  In order to get an idea what edX is about
  As a an anonymous web user
  I want to check the information on the home page

  Scenario: User can see the "Login" button
    Given I visit the homepage
    Then I should see a link called "Log In"

  Scenario: User can see the "Sign up" button
    Given I visit the homepage
    Then I should see a link called "Sign Up"

  Scenario Outline: User can see main parts of the page
    Given I visit the homepage
    Then I should see a link called "<Link>"
    When I click the link with the text "<Link>"
    Then I should see that the path is "<Path>"

    Examples:
    | Link         | Path     |
    | Find Courses | /courses |
    | About        | /about   |
    | Jobs         | /jobs    |
    | Contact      | /contact |

  Scenario: User can visit the blog
    Given I visit the homepage
    When I click the link with the text "Blog"
    Then I should see that the url is "http://blog.edx.org/"

  # TODO: test according to domain or policy
  Scenario: User can see the partner institutions
    Given I visit the homepage
    Then I should see "<Partner>" in the Partners section

    Examples:
38 39 40 41
    | Partner     |
    | MITx        |
    | HarvardX    |
    | BerkeleyX   |
Will Daly committed
42
    | UTx         |
43
    | WellesleyX  |
Will Daly committed
44
    | GeorgetownX |
45 46 47

  # # TODO: Add scenario that tests the courses available
  # # using a policy or a configuration file