AutorÃa | Ultima modificación | Ver Log |
@mod @mod_scormFeature: Scorm display optionsIn order to set how Scorm is displayedAs a teacherI need to be able to choose from Scorm package display optionsBackground:Given the following "users" exist:| username | firstname | lastname | email || teacher1 | Teacher | One | teacher1@example.com || student1 | Student | One | student1@example.com |And the following "courses" exist:| fullname | shortname | format | activitytype || Course 1 | C1 | topics | || Course 2 | C2 | singleactivity | scorm |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher || student1 | C1 | student || teacher1 | C2 | editingteacher || student1 | C2 | student |@javascriptScenario Outline: Teacher can change to various Scorm package display optionsGiven the following "activities" exist:| activity | course | name | packagefilepath | hidetoc | nav || scorm | C1 | C1 Scorm 1 | mod/scorm/tests/packages/RuntimeMinimumCalls_SCORM12.zip | <toc> | <shownavigation> |And I am on the "C1 Scorm 1" "scorm activity" page logged in as teacher1When I press "Preview"# Confirm TOC display# Used css_element to check > and < button display in TOC since similar buttons also exist in navigationThen I <tocdisplay> see "Golf Explained - Minimum Run-time Calls"And "[title='Show']" "css_element" <showdisplay> existAnd "[title='Hide']" "css_element" <hidedisplay> exist# Confirm TOC dropdown displayAnd "scoid" "select" <tocdropdown> exist# Confirm the navigation displayAnd "[id='scorm_nav']" "css_element" <navbar> existExamples:| toc | shownavigation | tocdisplay | showdisplay | hidedisplay | tocdropdown | navbar || 1 | | should not | should | should not | should not | should not || 2 | 1 | should | should | should not | should | should not || 0 | 0 | should | should not | should | should not | should not || 0 | 1 | should | should not | should | should not | should |Scenario: Student can exit Scorm activity in single activity course formatGiven the following "activities" exist:| activity | course | name | packagefilepath | popup || scorm | C2 | C2 Scorm 1 | mod/scorm/tests/packages/RuntimeMinimumCalls_SCORM12.zip | 0 |And I am on the "C2 Scorm 1" "scorm activity" page logged in as student1And I press "Enter"When I click on "Exit activity" "link"# Confirm that student can exit activityThen "Preview" "button" should existAnd "Enter" "button" should existAnd "Exit activity" "link" should not existAnd I should not see "Golf Explained - Minimum Run-time Calls"