Commit 7e5a67ba by Jay Zoldak

Add new partner universities and remove cs50 from smart accordion testing

parent 7f6d55ad
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# MITx/3.091x/2012_Fall # MITx/3.091x/2012_Fall
# MITx/6.002x/2012_Fall # MITx/6.002x/2012_Fall
# MITx/6.00x/2012_Fall # MITx/6.00x/2012_Fall
# HarvardX/CS50x/2012 # HarvardX/CS50x/2012 (we will not be testing this, as it is anomolistic)
# HarvardX/PH207x/2012_Fall # HarvardX/PH207x/2012_Fall
# BerkeleyX/CS169.1x/2012_Fall # BerkeleyX/CS169.1x/2012_Fall
# BerkeleyX/CS169.2x/2012_Fall # BerkeleyX/CS169.2x/2012_Fall
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
# git clone https://github.com/MITx/6.00x.git # git clone https://github.com/MITx/6.00x.git
# git clone https://github.com/MITx/content-mit-6002x.git # git clone https://github.com/MITx/content-mit-6002x.git
# git clone https://github.com/MITx/content-mit-6002x.git # git clone https://github.com/MITx/content-mit-6002x.git
# git clone https://github.com/MITx/cs50.git
# git clone https://github.com/MITx/content-harvard-id270x.git # git clone https://github.com/MITx/content-harvard-id270x.git
# git clone https://github.com/MITx/content-berkeley-cs169x.git # git clone https://github.com/MITx/content-berkeley-cs169x.git
# git clone https://github.com/MITx/content-berkeley-cs169.2x.git # git clone https://github.com/MITx/content-berkeley-cs169.2x.git
...@@ -39,11 +38,6 @@ Feature: There are courses on the homepage ...@@ -39,11 +38,6 @@ Feature: There are courses on the homepage
And I log in And I log in
Then I verify all the content of each course Then I verify all the content of each course
Scenario: Navigate through course HarvardX/CS50x/2012
Given I am registered for course "HarvardX/CS50x/2012"
And I log in
Then I verify all the content of each course
Scenario: Navigate through course HarvardX/PH207x/2012_Fall Scenario: Navigate through course HarvardX/PH207x/2012_Fall
Given I am registered for course "HarvardX/PH207x/2012_Fall" Given I am registered for course "HarvardX/PH207x/2012_Fall"
And I log in And I log in
......
...@@ -35,11 +35,13 @@ Feature: Homepage for web users ...@@ -35,11 +35,13 @@ Feature: Homepage for web users
Then I should see "<Partner>" in the Partners section Then I should see "<Partner>" in the Partners section
Examples: Examples:
| Partner | | Partner |
| MITx | | MITx |
| HarvardX | | HarvardX |
| BerkeleyX | | BerkeleyX |
| UTx | | UTx |
| WellesleyX |
| GeorgetownX |
# # TODO: Add scenario that tests the courses available # # TODO: Add scenario that tests the courses available
# # using a policy or a configuration file # # using a policy or a configuration file
from lettuce import world, step from lettuce import world, step
from nose.tools import assert_in
@step('I should see "([^"]*)" in the Partners section$') @step('I should see "([^"]*)" in the Partners section$')
def i_should_see_partner(step, partner): def i_should_see_partner(step, partner):
assert (partner in world.browser.find_by_css(".partners").text) partners = world.browser.find_by_css(".partner .name span")
names = set(span.text for span in partners)
assert_in(partner, names)
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