mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 09:55:33 +02:00
MDL-73113 block_myoverview: Change All filter names
This commit is contained in:
parent
18b2af60f5
commit
21eec081fb
blocks/myoverview
File diff suppressed because one or more lines are too long
@ -298,7 +298,7 @@ const hideCourse = (root, courseId) => {
|
||||
setCourseHiddenState(courseId, true);
|
||||
|
||||
// Remove the course from this view as it is now hidden and thus not covered by this view anymore.
|
||||
// Do only if we are not in "All" view mode where really all courses are shown.
|
||||
// Do only if we are not in "All (including archived)" view mode where really all courses are shown.
|
||||
if (filters.grouping !== GROUPINGS.GROUPING_ALLINCLUDINGHIDDEN) {
|
||||
hideElement(root, courseId);
|
||||
}
|
||||
@ -321,7 +321,7 @@ const showCourse = (root, courseId) => {
|
||||
setCourseHiddenState(courseId, null);
|
||||
|
||||
// Remove the course from this view as it is now shown again and thus not covered by this view anymore.
|
||||
// Do only if we are not in "All" view mode where really all courses are shown.
|
||||
// Do only if we are not in "All (including archived)" view mode where really all courses are shown.
|
||||
if (filters.grouping !== GROUPINGS.GROUPING_ALLINCLUDINGHIDDEN) {
|
||||
hideElement(root, courseId);
|
||||
}
|
||||
|
@ -22,12 +22,12 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$string['allincludinghidden'] = 'All';
|
||||
$string['all'] = 'All (except removed from view)';
|
||||
$string['allincludinghidden'] = 'All (including archived)';
|
||||
$string['all'] = 'All';
|
||||
$string['addtofavourites'] = 'Star this course';
|
||||
$string['aria:addtofavourites'] = 'Star for';
|
||||
$string['aria:allcoursesincludinghidden'] = 'Show all courses';
|
||||
$string['aria:allcourses'] = 'Show all courses except courses removed from view';
|
||||
$string['aria:allcourses'] = 'Show all courses except archived courses';
|
||||
$string['aria:card'] = 'Switch to card view';
|
||||
$string['aria:controls'] = 'Course overview controls';
|
||||
$string['aria:courseactions'] = 'Actions for current course';
|
||||
@ -81,11 +81,11 @@ $string['summary'] = 'Summary';
|
||||
$string['title'] = 'Course name';
|
||||
$string['aria:hidecourse'] = 'Remove {$a} from view';
|
||||
$string['aria:showcourse'] = 'Restore {$a} to view';
|
||||
$string['aria:hiddencourses'] = 'Show courses removed from view';
|
||||
$string['hidden'] = 'Courses removed from view';
|
||||
$string['hidecourse'] = 'Remove from view';
|
||||
$string['hiddencourses'] = 'Removed from view';
|
||||
$string['show'] = 'Restore to view';
|
||||
$string['aria:hiddencourses'] = 'Show archived courses';
|
||||
$string['hidden'] = 'Archived courses';
|
||||
$string['hidecourse'] = 'Archive';
|
||||
$string['hiddencourses'] = 'Archived';
|
||||
$string['show'] = 'Unarchive';
|
||||
$string['privacy:request:preference:set'] = 'The value of the setting \'{$a->name}\' was \'{$a->value}\'';
|
||||
|
||||
// Deprecated since Moodle 3.7.
|
||||
|
@ -26,48 +26,47 @@ Feature: The my overview block allows admins to easily configure the students' c
|
||||
| student1 | C4 | student |
|
||||
| student1 | C5 | student |
|
||||
|
||||
Scenario: Enable 'All' course filter option
|
||||
Scenario: Enable 'All (including archived)' course filter option
|
||||
Given I log in as "admin"
|
||||
And I navigate to "Plugins > Blocks > Course overview" in site administration
|
||||
And I set the field "All" to "1"
|
||||
And I set the field "All (including archived)" to "1"
|
||||
And I press "Save"
|
||||
And I log out
|
||||
Then I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
# We have to check for the data attribute instead of the list element text as we would get false positives from the "All (except removed from view)" element otherwise
|
||||
Then "[data-value='allincludinghidden']" "css_element" should exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
# We have to check for the data attribute instead of the list element text as we would get false positives from the "All" element otherwise
|
||||
Then "All (including archived)" "list_item" should exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
|
||||
Scenario: Disable 'All (including archived)' course filter option
|
||||
Given I log in as "admin"
|
||||
And I navigate to "Plugins > Blocks > Course overview" in site administration
|
||||
And I set the field "All (including archived)" to "0"
|
||||
And I press "Save"
|
||||
And I log out
|
||||
Then I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
Then "All (including archived)" "list_item" should not exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
|
||||
Scenario: Enable 'All' course filter option
|
||||
Given I log in as "admin"
|
||||
And I navigate to "Plugins > Blocks > Course overview" in site administration
|
||||
And I set the field "All" in the "//*[@id=\"admin-displaygroupingall\"]" "xpath_element" to "1"
|
||||
And I press "Save"
|
||||
And I log out
|
||||
Then I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
Then "[data-value='all']" "css_element" should exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
|
||||
Scenario: Disable 'All' course filter option
|
||||
Given I log in as "admin"
|
||||
And I navigate to "Plugins > Blocks > Course overview" in site administration
|
||||
And I set the field "All" to "0"
|
||||
And I set the field "All" in the "//*[@id=\"admin-displaygroupingall\"]" "xpath_element" to "0"
|
||||
And I press "Save"
|
||||
And I log out
|
||||
Then I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
# We have to check for the data attribute instead of the list element text as we would get false negatives "All (except removed from view)" element otherwise
|
||||
Then "[data-value='allincludinghidden']" "css_element" should not exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
|
||||
Scenario: Enable 'All (except removed from view)' course filter option
|
||||
Given I log in as "admin"
|
||||
And I navigate to "Plugins > Blocks > Course overview" in site administration
|
||||
And I set the field "All (except removed from view)" to "1"
|
||||
And I press "Save"
|
||||
And I log out
|
||||
Then I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
Then "All (except removed from view)" "list_item" should exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
|
||||
Scenario: Disable 'All (except removed from view)' course filter option
|
||||
Given I log in as "admin"
|
||||
And I navigate to "Plugins > Blocks > Course overview" in site administration
|
||||
And I set the field "All (except removed from view)" to "0"
|
||||
And I press "Save"
|
||||
And I log out
|
||||
Then I am on the "My courses" page logged in as "student1"
|
||||
# 'All (except removed from view)' option has been disabled, so the button is falling back to the 'In progress' option which is the next enabled option.
|
||||
# 'All' option has been disabled, so the button is falling back to the 'In progress' option which is the next enabled option.
|
||||
And I click on "In progress" "button" in the "Course overview" "block"
|
||||
Then "All (except removed from view)" "list_item" should not exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
Then "[data-value='all']" "css_element" should not exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
|
||||
Scenario: Enable 'In progress' course filter option
|
||||
Given I log in as "admin"
|
||||
@ -76,7 +75,8 @@ Feature: The my overview block allows admins to easily configure the students' c
|
||||
And I press "Save"
|
||||
And I log out
|
||||
Then I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
# We have to check for the data attribute instead of the list element text as we would get false negatives "All (including archived)" element otherwise
|
||||
Then "In progress" "list_item" should exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
|
||||
Scenario: Disable 'In progress' course filter option
|
||||
@ -86,7 +86,7 @@ Feature: The my overview block allows admins to easily configure the students' c
|
||||
And I press "Save"
|
||||
And I log out
|
||||
Then I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
Then "In progress" "list_item" should not exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
|
||||
Scenario: Enable 'Future' course filter option
|
||||
@ -96,7 +96,7 @@ Feature: The my overview block allows admins to easily configure the students' c
|
||||
And I press "Save"
|
||||
And I log out
|
||||
Then I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
Then "Future" "list_item" should exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
|
||||
Scenario: Disable 'Future' course filter option
|
||||
@ -106,7 +106,7 @@ Feature: The my overview block allows admins to easily configure the students' c
|
||||
And I press "Save"
|
||||
And I log out
|
||||
Then I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
Then "Future" "list_item" should not exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
|
||||
Scenario: Enable 'Past' course filter option
|
||||
@ -116,7 +116,7 @@ Feature: The my overview block allows admins to easily configure the students' c
|
||||
And I press "Save"
|
||||
And I log out
|
||||
Then I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
Then "Past" "list_item" should exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
|
||||
Scenario: Disable 'Past' course filter option
|
||||
@ -126,7 +126,7 @@ Feature: The my overview block allows admins to easily configure the students' c
|
||||
And I press "Save"
|
||||
And I log out
|
||||
Then I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
Then "Past" "list_item" should not exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
|
||||
Scenario: Enable 'Starred' course filter option
|
||||
@ -136,7 +136,7 @@ Feature: The my overview block allows admins to easily configure the students' c
|
||||
And I press "Save"
|
||||
And I log out
|
||||
Then I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
Then "Starred" "list_item" should exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
|
||||
Scenario: Disable 'Starred' course filter option
|
||||
@ -146,39 +146,39 @@ Feature: The my overview block allows admins to easily configure the students' c
|
||||
And I press "Save"
|
||||
And I log out
|
||||
Then I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
Then "Starred" "list_item" should not exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
|
||||
Scenario: Enable 'Removed courses' course filter option
|
||||
Given I log in as "admin"
|
||||
And I navigate to "Plugins > Blocks > Course overview" in site administration
|
||||
And I set the field "Removed from view" to "1"
|
||||
And I set the field "Archived" to "1"
|
||||
And I press "Save"
|
||||
And I log out
|
||||
Then I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
Then "Removed from view" "list_item" should exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
Then "Archived" "list_item" should exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
|
||||
Scenario: Disable 'Removed courses' course filter option
|
||||
Given I log in as "admin"
|
||||
And I navigate to "Plugins > Blocks > Course overview" in site administration
|
||||
And I set the field "Removed from view" to "0"
|
||||
And I set the field "Archived" to "0"
|
||||
And I press "Save"
|
||||
And I log out
|
||||
Then I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
Then "Removed from view" "list_item" should not exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
Then "Archived" "list_item" should not exist in the ".block_myoverview .dropdown-menu" "css_element"
|
||||
|
||||
Scenario: Disable all course filter options
|
||||
Given I log in as "admin"
|
||||
And I navigate to "Plugins > Blocks > Course overview" in site administration
|
||||
And I set the field "All" to "0"
|
||||
And I set the field "All (except removed from view)" to "0"
|
||||
And I set the field "All (including archived)" to "0"
|
||||
And I set the field "All" in the "//*[@id=\"admin-displaygroupingall\"]" "xpath_element" to "0"
|
||||
And I set the field "In progress" to "0"
|
||||
And I set the field "Future" to "0"
|
||||
And I set the field "Past" to "0"
|
||||
And I set the field "Starred" to "0"
|
||||
And I set the field "Removed from view" to "0"
|
||||
And I set the field "Archived" to "0"
|
||||
And I press "Save"
|
||||
And I log out
|
||||
And I am on the "My courses" page logged in as "student1"
|
||||
@ -192,13 +192,13 @@ Feature: The my overview block allows admins to easily configure the students' c
|
||||
Scenario: Disable all but one course filter option
|
||||
Given I log in as "admin"
|
||||
And I navigate to "Plugins > Blocks > Course overview" in site administration
|
||||
And I set the field "All" to "0"
|
||||
And I set the field "All (except removed from view)" to "0"
|
||||
And I set the field "All (including archived)" to "0"
|
||||
And I set the field "All" in the "//*[@id=\"admin-displaygroupingall\"]" "xpath_element" to "0"
|
||||
And I set the field "In progress" to "1"
|
||||
And I set the field "Future" to "0"
|
||||
And I set the field "Past" to "0"
|
||||
And I set the field "Starred" to "0"
|
||||
And I set the field "Removed from view" to "0"
|
||||
And I set the field "Archived" to "0"
|
||||
And I press "Save"
|
||||
And I log out
|
||||
And I am on the "My courses" page logged in as "student1"
|
||||
|
@ -36,7 +36,7 @@ Feature: The my overview block allows users to group courses by custom fields
|
||||
| displaygroupingcustomfield | 1 | block_myoverview |
|
||||
| customfiltergrouping | checkboxfield | block_myoverview |
|
||||
And I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "Checkbox field: Yes" "link" in the "Course overview" "block"
|
||||
Then I should see "Course 1" in the "Course overview" "block"
|
||||
And I should not see "Course 2" in the "Course overview" "block"
|
||||
@ -49,7 +49,7 @@ Feature: The my overview block allows users to group courses by custom fields
|
||||
| displaygroupingcustomfield | 1 | block_myoverview |
|
||||
| customfiltergrouping | checkboxfield | block_myoverview |
|
||||
And I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "Checkbox field: No" "link" in the "Course overview" "block"
|
||||
Then I should not see "Course 1" in the "Course overview" "block"
|
||||
And I should see "Course 2" in the "Course overview" "block"
|
||||
@ -62,7 +62,7 @@ Feature: The my overview block allows users to group courses by custom fields
|
||||
| displaygroupingcustomfield | 1 | block_myoverview |
|
||||
| customfiltergrouping | datefield | block_myoverview |
|
||||
And I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "1 February 2001" "link" in the "Course overview" "block"
|
||||
Then I should see "Course 1" in the "Course overview" "block"
|
||||
And I should not see "Course 2" in the "Course overview" "block"
|
||||
@ -75,7 +75,7 @@ Feature: The my overview block allows users to group courses by custom fields
|
||||
| displaygroupingcustomfield | 1 | block_myoverview |
|
||||
| customfiltergrouping | datefield | block_myoverview |
|
||||
And I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "6 August 1980" "link" in the "Course overview" "block"
|
||||
Then I should not see "Course 1" in the "Course overview" "block"
|
||||
And I should not see "Course 2" in the "Course overview" "block"
|
||||
@ -88,7 +88,7 @@ Feature: The my overview block allows users to group courses by custom fields
|
||||
| displaygroupingcustomfield | 1 | block_myoverview |
|
||||
| customfiltergrouping | datefield | block_myoverview |
|
||||
And I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "No Date field" "link" in the "Course overview" "block"
|
||||
Then I should not see "Course 1" in the "Course overview" "block"
|
||||
And I should not see "Course 2" in the "Course overview" "block"
|
||||
@ -101,7 +101,7 @@ Feature: The my overview block allows users to group courses by custom fields
|
||||
| displaygroupingcustomfield | 1 | block_myoverview |
|
||||
| customfiltergrouping | selectfield | block_myoverview |
|
||||
And I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
And I should not see "Option 4" in the "Course overview" "block"
|
||||
When I click on "Option 1" "link" in the "Course overview" "block"
|
||||
Then I should see "Course 1" in the "Course overview" "block"
|
||||
@ -115,7 +115,7 @@ Feature: The my overview block allows users to group courses by custom fields
|
||||
| displaygroupingcustomfield | 1 | block_myoverview |
|
||||
| customfiltergrouping | selectfield | block_myoverview |
|
||||
And I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "Option 2" "link" in the "Course overview" "block"
|
||||
Then I should not see "Course 1" in the "Course overview" "block"
|
||||
And I should not see "Course 2" in the "Course overview" "block"
|
||||
@ -128,7 +128,7 @@ Feature: The my overview block allows users to group courses by custom fields
|
||||
| displaygroupingcustomfield | 1 | block_myoverview |
|
||||
| customfiltergrouping | selectfield | block_myoverview |
|
||||
And I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "No Select field" "link" in the "Course overview" "block"
|
||||
Then I should not see "Course 1" in the "Course overview" "block"
|
||||
And I should see "Course 2" in the "Course overview" "block"
|
||||
@ -141,7 +141,7 @@ Feature: The my overview block allows users to group courses by custom fields
|
||||
| displaygroupingcustomfield | 1 | block_myoverview |
|
||||
| customfiltergrouping | textfield | block_myoverview |
|
||||
And I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "fish" "link" in the "Course overview" "block"
|
||||
Then I should see "Course 1" in the "Course overview" "block"
|
||||
And I should not see "Course 2" in the "Course overview" "block"
|
||||
@ -154,7 +154,7 @@ Feature: The my overview block allows users to group courses by custom fields
|
||||
| displaygroupingcustomfield | 1 | block_myoverview |
|
||||
| customfiltergrouping | textfield | block_myoverview |
|
||||
And I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "dog" "link" in the "Course overview" "block"
|
||||
Then I should not see "Course 1" in the "Course overview" "block"
|
||||
And I should not see "Course 2" in the "Course overview" "block"
|
||||
@ -167,7 +167,7 @@ Feature: The my overview block allows users to group courses by custom fields
|
||||
| displaygroupingcustomfield | 1 | block_myoverview |
|
||||
| customfiltergrouping | textfield | block_myoverview |
|
||||
And I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "No Text field" "link" in the "Course overview" "block"
|
||||
Then I should not see "Course 1" in the "Course overview" "block"
|
||||
And I should see "Course 2" in the "Course overview" "block"
|
||||
@ -192,6 +192,6 @@ Feature: The my overview block allows users to group courses by custom fields
|
||||
And I press "Save changes"
|
||||
And I log out
|
||||
When I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
Then I should not see "penguin" in the "Course overview" "block"
|
||||
Then I should not see "No text field" in the "Course overview" "block"
|
||||
|
@ -28,7 +28,7 @@ Feature: The my overview block allows users to easily access their courses
|
||||
|
||||
Scenario: View past courses
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "Past" "link" in the "Course overview" "block"
|
||||
Then I should see "Course 1" in the "Course overview" "block"
|
||||
And I should not see "Course 2" in the "Course overview" "block"
|
||||
@ -38,7 +38,7 @@ Feature: The my overview block allows users to easily access their courses
|
||||
|
||||
Scenario: View future courses
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "Future" "link" in the "Course overview" "block"
|
||||
Then I should see "Course 5" in the "Course overview" "block"
|
||||
And I should not see "Course 1" in the "Course overview" "block"
|
||||
@ -48,7 +48,7 @@ Feature: The my overview block allows users to easily access their courses
|
||||
|
||||
Scenario: View inprogress courses
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "In progress" "link" in the "Course overview" "block"
|
||||
Then I should see "Course 2" in the "Course overview" "block"
|
||||
Then I should see "Course 3" in the "Course overview" "block"
|
||||
@ -58,21 +58,21 @@ Feature: The my overview block allows users to easily access their courses
|
||||
|
||||
Scenario: View all (except removed) courses
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
When I click on "All (except removed from view)" "link" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "All" "link" in the "Course overview" "block"
|
||||
Then I should see "Course 1" in the "Course overview" "block"
|
||||
Then I should see "Course 2" in the "Course overview" "block"
|
||||
Then I should see "Course 3" in the "Course overview" "block"
|
||||
Then I should see "Course 4" in the "Course overview" "block"
|
||||
Then I should see "Course 5" in the "Course overview" "block"
|
||||
|
||||
Scenario: View all (including removed) courses
|
||||
Scenario: View all (including archived) courses
|
||||
Given the following config values are set as admin:
|
||||
| config | value | plugin |
|
||||
| displaygroupingallincludinghidden | 1 | block_myoverview |
|
||||
And I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
# We have to click on the data attribute instead of the button element text as we might risk to click on the false positive "All (except removed from view)" element instead
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
# We have to click on the data attribute instead of the button element text as we might risk to click on the false positive "All (including archived)" element instead
|
||||
When I click on "[data-value='allincludinghidden']" "css_element" in the "Course overview" "block"
|
||||
Then I should see "Course 1" in the "Course overview" "block"
|
||||
Then I should see "Course 2" in the "Course overview" "block"
|
||||
@ -82,7 +82,7 @@ Feature: The my overview block allows users to easily access their courses
|
||||
|
||||
Scenario: View inprogress courses - test persistence
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
And I click on "In progress" "link" in the "Course overview" "block"
|
||||
And I reload the page
|
||||
Then I should see "In progress" in the "Course overview" "block"
|
||||
@ -94,10 +94,10 @@ Feature: The my overview block allows users to easily access their courses
|
||||
|
||||
Scenario: View all (except removed) courses - w/ persistence
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
When I click on "All (except removed from view)" "link" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "All" "link" in the "Course overview" "block"
|
||||
And I reload the page
|
||||
Then I should see "All (except removed from view)" in the "Course overview" "block"
|
||||
Then I should see "All" in the "Course overview" "block"
|
||||
Then I should see "Course 1" in the "Course overview" "block"
|
||||
Then I should see "Course 2" in the "Course overview" "block"
|
||||
Then I should see "Course 3" in the "Course overview" "block"
|
||||
@ -106,7 +106,7 @@ Feature: The my overview block allows users to easily access their courses
|
||||
|
||||
Scenario: View past courses - w/ persistence
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "Past" "link" in the "Course overview" "block"
|
||||
And I reload the page
|
||||
Then I should see "Past" in the "Course overview" "block"
|
||||
@ -118,7 +118,7 @@ Feature: The my overview block allows users to easily access their courses
|
||||
|
||||
Scenario: View future courses - w/ persistence
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "Future" "link" in the "Course overview" "block"
|
||||
And I reload the page
|
||||
Then I should see "Future" in the "Course overview" "block"
|
||||
@ -132,7 +132,7 @@ Feature: The my overview block allows users to easily access their courses
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Star this course" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "Starred" "link" in the "Course overview" "block"
|
||||
And I reload the page
|
||||
Then I should see "Starred" in the "Course overview" "block"
|
||||
@ -198,10 +198,10 @@ Feature: The my overview block allows users to easily access their courses
|
||||
|
||||
Scenario: View inprogress courses with hide persistent functionality
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "In progress" "link" in the "Course overview" "block"
|
||||
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Remove from view" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Archive" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I reload the page
|
||||
Then I should see "Course 3" in the "Course overview" "block"
|
||||
Then I should see "Course 4" in the "Course overview" "block"
|
||||
@ -211,10 +211,10 @@ Feature: The my overview block allows users to easily access their courses
|
||||
|
||||
Scenario: View past courses with hide persistent functionality
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "Past" "link" in the "Course overview" "block"
|
||||
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 1')]" "xpath_element"
|
||||
And I click on "Remove from view" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 1')]" "xpath_element"
|
||||
And I click on "Archive" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 1')]" "xpath_element"
|
||||
And I reload the page
|
||||
Then I should not see "Course 1" in the "Course overview" "block"
|
||||
And I should not see "Course 2" in the "Course overview" "block"
|
||||
@ -224,10 +224,10 @@ Feature: The my overview block allows users to easily access their courses
|
||||
|
||||
Scenario: View future courses with hide persistent functionality
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "Future" "link" in the "Course overview" "block"
|
||||
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 5')]" "xpath_element"
|
||||
And I click on "Remove from view" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 5')]" "xpath_element"
|
||||
And I click on "Archive" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 5')]" "xpath_element"
|
||||
And I reload the page
|
||||
Then I should not see "Course 5" in the "Course overview" "block"
|
||||
And I should not see "Course 1" in the "Course overview" "block"
|
||||
@ -237,10 +237,10 @@ Feature: The my overview block allows users to easily access their courses
|
||||
|
||||
Scenario: View all (except hidden) courses with hide persistent functionality
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
When I click on "All (except removed from view)" "link" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "All" "link" in the "Course overview" "block"
|
||||
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 5')]" "xpath_element"
|
||||
And I click on "Remove from view" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 5')]" "xpath_element"
|
||||
And I click on "Archive" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 5')]" "xpath_element"
|
||||
And I reload the page
|
||||
Then I should not see "Course 5" in the "Course overview" "block"
|
||||
And I should see "Course 1" in the "Course overview" "block"
|
||||
@ -248,16 +248,16 @@ Feature: The my overview block allows users to easily access their courses
|
||||
And I should see "Course 3" in the "Course overview" "block"
|
||||
And I should see "Course 4" in the "Course overview" "block"
|
||||
|
||||
Scenario: View all (including removed) courses with hide persistent functionality
|
||||
Scenario: View all (including archived) courses with hide persistent functionality
|
||||
Given the following config values are set as admin:
|
||||
| config | value | plugin |
|
||||
| displaygroupingallincludinghidden | 1 | block_myoverview |
|
||||
And I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
# We have to click on the data attribute instead of the button element text as we might risk to click on the false positive "All (except removed from view)" element instead
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
# We have to click on the data attribute instead of the button element text as we might risk to click on the false positive "All (including archived)" element instead
|
||||
When I click on "[data-value='allincludinghidden']" "css_element" in the "Course overview" "block"
|
||||
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 5')]" "xpath_element"
|
||||
And I click on "Remove from view" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 5')]" "xpath_element"
|
||||
And I click on "Archive" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 5')]" "xpath_element"
|
||||
And I reload the page
|
||||
Then I should see "Course 5" in the "Course overview" "block"
|
||||
And I should see "Course 1" in the "Course overview" "block"
|
||||
|
@ -25,91 +25,91 @@ Feature: The my overview block allows users to hide their courses
|
||||
|
||||
Scenario: Test hide toggle functionality
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
When I click on "All (except removed from view)" "link" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "All" "link" in the "Course overview" "block"
|
||||
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Remove from view" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Archive" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I reload the page
|
||||
Then I should not see "Course 2" in the "Course overview" "block"
|
||||
|
||||
Scenario: Test hide toggle functionality w/ favorites
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
When I click on "All (except removed from view)" "link" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "All" "link" in the "Course overview" "block"
|
||||
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Star this course" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Remove from view" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Archive" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
When I reload the page
|
||||
Then I should not see "Course 2" in the "Course overview" "block"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
And I click on "Starred" "link" in the "Course overview" "block"
|
||||
Then I should not see "Course 2" in the "Course overview" "block"
|
||||
And I click on "Starred" "button" in the "Course overview" "block"
|
||||
And I click on "Removed from view" "link" in the "Course overview" "block"
|
||||
And I click on "Archived" "link" in the "Course overview" "block"
|
||||
Then I should see "Course 2" in the "Course overview" "block"
|
||||
|
||||
Scenario: Test show toggle functionality
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
When I click on "All (except removed from view)" "link" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "All" "link" in the "Course overview" "block"
|
||||
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Remove from view" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
When I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "Removed from view" "link" in the "Course overview" "block"
|
||||
And I click on "Archive" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
When I click on "All" "button" in the "Course overview" "block"
|
||||
And I click on "Archived" "link" in the "Course overview" "block"
|
||||
When I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Restore to view" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Unarchive" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I reload the page
|
||||
And I click on "Removed from view" "button" in the "Course overview" "block"
|
||||
When I click on "All (except removed from view)" "link" in the "Course overview" "block"
|
||||
And I click on "Archived" "button" in the "Course overview" "block"
|
||||
When I click on "All" "link" in the "Course overview" "block"
|
||||
Then I should see "Course 2" in the "Course overview" "block"
|
||||
|
||||
Scenario: Test show toggle functionality w/ favorites
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
When I click on "All (except removed from view)" "link" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "All" "link" in the "Course overview" "block"
|
||||
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Star this course" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Remove from view" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "Removed from view" "link" in the "Course overview" "block"
|
||||
And I click on "Archive" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
And I click on "Archived" "link" in the "Course overview" "block"
|
||||
And I should see "Course 2" in the "Course overview" "block"
|
||||
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Restore to view" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Unarchive" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
When I reload the page
|
||||
Then I should not see "Course 2" in the "Course overview" "block"
|
||||
And I click on "Removed from view" "button" in the "Course overview" "block"
|
||||
And I click on "All (except removed from view)" "link" in the "Course overview" "block"
|
||||
And I click on "Archived" "button" in the "Course overview" "block"
|
||||
And I click on "All" "link" in the "Course overview" "block"
|
||||
Then I should see "Course 2" in the "Course overview" "block"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
And I click on "Starred" "link" in the "Course overview" "block"
|
||||
Then I should see "Course 2" in the "Course overview" "block"
|
||||
|
||||
Scenario: Test a course is hidden directly with "All (except removed from view)" courses
|
||||
Scenario: Test a course is hidden directly with "All" courses
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
When I click on "All (except removed from view)" "link" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "All" "link" in the "Course overview" "block"
|
||||
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Remove from view" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Archive" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
Then I should not see "Course 2" in the "Course overview" "block"
|
||||
|
||||
Scenario: Test a course is never hidden with "All (including removed)" courses
|
||||
Scenario: Test a course is never hidden with "All (including archived)" courses
|
||||
Given the following config values are set as admin:
|
||||
| config | value | plugin |
|
||||
| displaygroupingallincludinghidden | 1 | block_myoverview |
|
||||
And I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
# We have to click on the data attribute instead of the button element text as we might risk to click on the false positive "All (except hidden)" element instead
|
||||
When I click on "[data-value='allincludinghidden']" "css_element" in the "Course overview" "block"
|
||||
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Remove from view" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Archive" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
Then I should see "Course 2" in the "Course overview" "block"
|
||||
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I should not see "Remove from view" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I should see "Restore to view" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Restore to view" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I should not see "Archive" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I should see "Unarchive" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I click on "Unarchive" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
Then I should see "Course 2" in the "Course overview" "block"
|
||||
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I should see "Remove from view" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I should not see "Restore to view" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I should see "Archive" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
And I should not see "Unarchive" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||
|
@ -49,7 +49,7 @@ Feature: The my overview block allows users to persistence of their page limits
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
When I click on "[data-action='limit-toggle']" "css_element" in the "Course overview" "block"
|
||||
And I click on "All" "link" in the ".dropdown-menu.show" "css_element"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
And I click on "In progress" "link" in the "Course overview" "block"
|
||||
Then I should see "Course 13"
|
||||
And I should see "All" in the "[data-action='limit-toggle']" "css_element"
|
||||
|
@ -22,8 +22,8 @@ Feature: Course overview block show users their progress on courses
|
||||
|
||||
Scenario: Course progress percentage should not be displayed if completion is not enabled
|
||||
Given I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
When I click on "All (except removed from view)" "link" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
When I click on "All" "link" in the "Course overview" "block"
|
||||
Then I should not see "0%" in the "Course overview" "block"
|
||||
|
||||
Scenario: User complete activity and verify his progress
|
||||
@ -35,10 +35,10 @@ Feature: Course overview block show users their progress on courses
|
||||
And I press "Save and return to course"
|
||||
And I log out
|
||||
When I am on the "My courses" page logged in as "student1"
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
Then I should see "Course 1" in the "Course overview" "block"
|
||||
And I should see "0%" in the "Course overview" "block"
|
||||
And I am on the "Test choice 1" "choice activity" page
|
||||
And I am on the "My courses" page
|
||||
And I click on "All (except removed from view)" "button" in the "Course overview" "block"
|
||||
And I click on "All" "button" in the "Course overview" "block"
|
||||
And I should see "100%" in the "Course overview" "block"
|
||||
|
Loading…
x
Reference in New Issue
Block a user