diff --git a/lms/djangoapps/courseware/features/smart-accordion.feature b/lms/djangoapps/courseware/features/smart-accordion.feature index 447649175e..90d097144a 100644 --- a/lms/djangoapps/courseware/features/smart-accordion.feature +++ b/lms/djangoapps/courseware/features/smart-accordion.feature @@ -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 diff --git a/lms/djangoapps/portal/features/homepage.feature b/lms/djangoapps/portal/features/homepage.feature index fa416a598f..06a45c4bfa 100644 --- a/lms/djangoapps/portal/features/homepage.feature +++ b/lms/djangoapps/portal/features/homepage.feature @@ -35,11 +35,13 @@ Feature: Homepage for web users Then I should see "" 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 diff --git a/lms/djangoapps/portal/features/homepage.py b/lms/djangoapps/portal/features/homepage.py index 9170f9c844..638d65077c 100644 --- a/lms/djangoapps/portal/features/homepage.py +++ b/lms/djangoapps/portal/features/homepage.py @@ -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)