Add new partner universities and remove cs50 from smart accordion testing

This commit is contained in:
Jay Zoldak
2012-12-14 16:41:44 -05:00
parent 7f6d55ad86
commit 7e5a67badf
3 changed files with 12 additions and 13 deletions

View File

@@ -2,7 +2,7 @@
# MITx/3.091x/2012_Fall
# MITx/6.002x/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
# BerkeleyX/CS169.1x/2012_Fall
# BerkeleyX/CS169.2x/2012_Fall
@@ -13,7 +13,6 @@
# 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/cs50.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-cs169.2x.git
@@ -39,11 +38,6 @@ Feature: There are courses on the homepage
And I log in
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
Given I am registered for course "HarvardX/PH207x/2012_Fall"
And I log in

View File

@@ -35,11 +35,13 @@ Feature: Homepage for web users
Then I should see "<Partner>" in the Partners section
Examples:
| Partner |
| MITx |
| HarvardX |
| BerkeleyX |
| UTx |
| Partner |
| MITx |
| HarvardX |
| BerkeleyX |
| UTx |
| WellesleyX |
| GeorgetownX |
# # TODO: Add scenario that tests the courses available
# # using a policy or a configuration file

View File

@@ -1,5 +1,8 @@
from lettuce import world, step
from nose.tools import assert_in
@step('I should see "([^"]*)" in the Partners section$')
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)