Commit c77eb4fd by Peter Fogg

Fix VideoAlpha acceptance test step definitions to not clash with Video module.

parent 9c7be8b1
...@@ -2,5 +2,5 @@ Feature: Video Alpha component ...@@ -2,5 +2,5 @@ Feature: Video Alpha component
As a student, I want to view course videos in LMS. As a student, I want to view course videos in LMS.
Scenario: Autoplay is enabled in LMS Scenario: Autoplay is enabled in LMS
Given the course has a Video component Given the course has a Video Alpha component
Then when I view the video it has autoplay enabled Then when I view the Video Alpha it has autoplay enabled
...@@ -9,12 +9,12 @@ from common import TEST_COURSE_NAME, TEST_SECTION_NAME, i_am_registered_for_the_ ...@@ -9,12 +9,12 @@ from common import TEST_COURSE_NAME, TEST_SECTION_NAME, i_am_registered_for_the_
############### ACTIONS #################### ############### ACTIONS ####################
@step('when I view the video it has autoplay enabled') @step('when I view the Video Alpha it has autoplay enabled')
def does_autoplay(step): def does_autoplay(step):
assert(world.css_find('.videoalpha')[0]['data-autoplay'] == 'True') assert(world.css_find('.videoalpha')[0]['data-autoplay'] == 'True')
@step('the course has a Video component') @step('the course has a Video Alpha component')
def view_videoalpha(step): def view_videoalpha(step):
coursename = TEST_COURSE_NAME.replace(' ', '_') coursename = TEST_COURSE_NAME.replace(' ', '_')
i_am_registered_for_the_course(step, coursename) i_am_registered_for_the_course(step, coursename)
......
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