__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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 availability
In order to control when a SCORM activity is available to students
As a teacher
I need be able to set availability dates for the SCORM
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| student1 | Student | 1 | student1@example.com |
And the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And the following "course enrolments" exist:
| user | course | role |
| student1 | C1 | student |
And the following "activities" exist:
| activity | course | name | packagefilepath | timeopen | timeclose |
| scorm | C1 | Past SCORM | mod/scorm/tests/packages/singlesco_scorm12.zip | ##yesterday## | ##yesterday## |
| scorm | C1 | Current SCORM | mod/scorm/tests/packages/singlesco_scorm12.zip | ##yesterday## | ##tomorrow## |
| scorm | C1 | Future SCORM | mod/scorm/tests/packages/singlesco_scorm12.zip | ##tomorrow## | ##tomorrow## |
Scenario: Scorm activity with dates in the past should not be available.
When I am on the "Past SCORM" "scorm activity" page logged in as "student1"
Then the activity date in "Past SCORM" should contain "Opened:"
And the activity date in "Past SCORM" should contain "##yesterday noon##%A, %d %B %Y, %I:%M##"
And the activity date in "Past SCORM" should contain "Closed:"
And the activity date in "Past SCORM" should contain "##yesterday noon##%A, %d %B %Y, %I:%M##"
And "Enter" "button" should not exist
And I should not see "Preview"
And I am on the "Current SCORM" "scorm activity" page
And the activity date in "Current SCORM" should contain "Opened:"
And the activity date in "Current SCORM" should contain "##yesterday noon##%A, %d %B %Y, %I:%M##"
And the activity date in "Current SCORM" should contain "Closes:"
And the activity date in "Current SCORM" should contain "##tomorrow noon##%A, %d %B %Y, %I:%M##"
And "Enter" "button" should exist
And I should see "Preview"
And I am on the "Future SCORM" "scorm activity" page
And the activity date in "Future SCORM" should contain "Opens:"
And the activity date in "Future SCORM" should contain "##tomorrow noon##%A, %d %B %Y, %I:%M##"
And the activity date in "Future SCORM" should contain "Closes:"
And the activity date in "Future SCORM" should contain "##tomorrow noon##%A, %d %B %Y, %I:%M##"
And "Enter" "button" should not exist
And I should not see "Preview"
| 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 |
|