Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@mod @mod_url @core_completionFeature: View activity completion information in the URL resourceIn order to have visibility of URL completion requirementsAs a studentI need to be able to view my URL completion progressBackground:Given the following "users" exist:| username | firstname | lastname | email || student1 | Vinnie | Student1 | student1@example.com || teacher1 | Darrell | Teacher1 | teacher1@example.com |And the following "courses" exist:| fullname | shortname | category | enablecompletion | showcompletionconditions || Course 1 | C1 | 0 | 1 | 1 |And the following "course enrolments" exist:| user | course | role || student1 | C1 | student || teacher1 | C1 | editingteacher |And the following config values are set as admin:| displayoptions | 0,1,2,3,4,5,6 | url |Scenario: View automatic completion items in automatic display mode as teacherGiven the following "activity" exists:| activity | url || course | C1 || idnumber | Music history || name | Music history || intro | URL description || externalurl | https://moodle.org/ || completion | 2 || completionview | 1 || display | 0 |When I am on the "Music history" "url activity" page logged in as teacher1Then "Music history" "link" should existAnd I should see "Click on Music history to open the resource."And "Music history" should have the "View" completion conditionScenario: View automatic completion items in automatic display mode as studentGiven the following "activity" exists:| activity | url || course | C1 || idnumber | Music history || name | Music history || intro | URL description || externalurl | https://moodle.org/ || completion | 2 || completionview | 1 || display | 0 |When I am on the "Music history" "url activity" page logged in as student1Then the "View" completion condition of "Music history" is displayed as "done"Scenario: View automatic completion items in embed display mode as teacherGiven the following "activity" exists:| activity | url || course | C1 || idnumber | Music history || name | Music history || intro | URL description || externalurl | https://moodle.org/ || completion | 2 || completionview | 1 || display | 1 |When I am on the "Music history" "url activity" page logged in as teacher1Then "Music history" should have the "View" completion conditionScenario: View automatic completion items in embed display mode as studentGiven the following "activity" exists:| activity | url || course | C1 || idnumber | Music history || name | Music history || intro | URL description || externalurl | https://moodle.org/ || completion | 2 || completionview | 1 || display | 1 |When I am on the "Music history" "url activity" page logged in as student1Then the "View" completion condition of "Music history" is displayed as "done"@javascriptScenario: View automatic completion items in open display mode as teacherGiven the following "activity" exists:| activity | url || course | C1 || idnumber | Music history || name | Music history || intro | URL description || externalurl | https://moodle.org/ || completion | 2 || completionview | 1 || display | 5 |When I am on the "Music history" "url activity" page logged in as teacher1And I am on the "Course 1" course pageThen "Music history" should have the "View" completion condition@javascriptScenario: View automatic completion items in open display mode as studentGiven the following "activity" exists:| activity | url || course | C1 || idnumber | Music history || name | Music history || intro | URL description || externalurl | https://moodle.org/ || completion | 2 || completionview | 1 || display | 5 |When I am on the "Music history" "url activity" page logged in as student1And I am on the "Course 1" course pageThen the "View" completion condition of "Music history" is displayed as "done"Scenario: View automatic completion items in pop-up display mode as teacherGiven the following "activity" exists:| activity | url || course | C1 || idnumber | Music history || name | Music history || intro | URL description || externalurl | https://moodle.org/ || completion | 2 || completionview | 1 || display | 6 || popupwidth | 620 || popupheight | 450 |When I am on the "Music history" "url activity" page logged in as student1Then "Music history" should have the "View" completion conditionScenario: View automatic completion items in pop-up display mode as studentGiven the following "activity" exists:| activity | url || course | C1 || idnumber | Music history || name | Music history || intro | URL description || externalurl | https://moodle.org/ || completion | 2 || completionview | 1 || display | 6 || popupwidth | 620 || popupheight | 450 |When I am on the "Music history" "url activity" page logged in as student1Then the "View" completion condition of "Music history" is displayed as "done"@javascriptScenario: Use manual completion with automatic URL as teacherGiven the following "activity" exists:| activity | url || course | C1 || idnumber | Music history || name | Music history || intro | URL description || externalurl | https://moodle.org/ || completion | 1 || completionview | 1 || display | 0 |When I am on the "Music history" "url activity" page logged in as teacher1Then the manual completion button for "Music history" should be disabled@javascriptScenario: Use manual completion with automatic URL as studentGiven the following "activity" exists:| activity | url || course | C1 || idnumber | Music history || name | Music history || intro | URL description || externalurl | https://moodle.org/ || completion | 1 || completionview | 1 || display | 0 |When I am on the "Course 1" course page logged in as student1Then the manual completion button of "Music history" is displayed as "Mark as done"And I toggle the manual completion state of "Music history"And the manual completion button of "Music history" is displayed as "Done"@javascriptScenario Outline: The Mark as done completion condition will be shown on the course page for Open, In pop-up and New window display mode if the Show activity completion conditions is set to No as teacherGiven the following "activity" exists:| activity | url || course | C1 || idnumber | Music history || name | Music history || intro | URL description || externalurl | https://moodle.org/ || completion | 1 || completionview | 1 || display | <display> || popupwidth | 620 || popupheight | 450 |When I am on the "Course 1" course page logged in as teacher1Then "Music history" should have the "Mark as done" completion conditionExamples:| display | description || 0 | Auto || 6 | Popup || 3 | New |@javascriptScenario Outline: The manual completion button will be shown on the course page for Open, In pop-up and New window display mode if the Show activity completion conditions is set to No as studentGiven the following "activity" exists:| activity | url || course | C1 || idnumber | Music history || name | Music history || intro | URL description || externalurl | https://moodle.org/ || completion | 1 || completionview | 1 || display | <display> || popupwidth | 620 || popupheight | 450 |When I am on the "Course 1" course page logged in as student1Then the manual completion button for "Music history" should existAnd the manual completion button of "Music history" is displayed as "Mark as done"And I toggle the manual completion state of "Music history"And the manual completion button of "Music history" is displayed as "Done"Examples:| display | description || 0 | Auto || 6 | Popup || 3 | New |