__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
@mod @mod_scorm
Feature: Scorm display options
In order to set how Scorm is displayed
As a teacher
I need to be able to choose from Scorm package display options
Background:
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 |
@javascript
Scenario Outline: Teacher can change to various Scorm package display options
Given 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 teacher1
When I press "Preview"
# Confirm TOC display
# Used css_element to check > and < button display in TOC since similar buttons also exist in navigation
Then I <tocdisplay> see "Golf Explained - Minimum Run-time Calls"
And "[title='Show']" "css_element" <showdisplay> exist
And "[title='Hide']" "css_element" <hidedisplay> exist
# Confirm TOC dropdown display
And "scoid" "select" <tocdropdown> exist
# Confirm the navigation display
And "[id='scorm_nav']" "css_element" <navbar> exist
Examples:
| 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 format
Given 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 student1
And I press "Enter"
When I click on "Exit activity" "link"
# Confirm that student can exit activity
Then "Preview" "button" should exist
And "Enter" "button" should exist
And "Exit activity" "link" should not exist
And I should not see "Golf Explained - Minimum Run-time Calls"
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| add_scorm.feature | File | 1.47 KB | 0777 |
|
| completion_condition_require_status.feature | File | 6.71 KB | 0777 |
|
| default_completion.feature | File | 5.91 KB | 0777 |
|
| group_mode.feature | File | 3.65 KB | 0777 |
|
| missing_org.feature | File | 1.4 KB | 0777 |
|
| multisco_review_mode.feature | File | 12.51 KB | 0777 |
|
| save_progress_on_unload.feature | File | 2.06 KB | 0777 |
|
| scorm_activity_completion.feature | File | 8.5 KB | 0777 |
|
| scorm_availability.feature | File | 2.61 KB | 0777 |
|
| scorm_display_options.feature | File | 3.07 KB | 0777 |
|
| scorm_no_calendar_capabilities.feature | File | 1.71 KB | 0777 |
|