mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
MDL-43236 behat: Updating references to deprecated methods
This commit is contained in:
parent
c51c3b5575
commit
759b323e0e
@ -5,7 +5,7 @@ Feature: Display extended course names
|
|||||||
I need to display courses short names along with courses full names
|
I need to display courses short names along with courses full names
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course fullname | C_shortname | 0 |
|
| Course fullname | C_shortname | 0 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
|
@ -5,19 +5,19 @@ Feature: An administrator can filter user accounts by role, cohort and other pro
|
|||||||
I need to filter the users account list using different filter
|
I need to filter the users account list using different filter
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email | auth | confirmed |
|
| username | firstname | lastname | email | auth | confirmed |
|
||||||
| user1 | User | One | one@asd.com | manual | 0 |
|
| user1 | User | One | one@asd.com | manual | 0 |
|
||||||
| user2 | User | Two | two@asd.com | ldap | 1 |
|
| user2 | User | Two | two@asd.com | ldap | 1 |
|
||||||
| user3 | User | Three | three@asd.com | manual | 1 |
|
| user3 | User | Three | three@asd.com | manual | 1 |
|
||||||
| user4 | User | Four | four@asd.com | ldap | 0 |
|
| user4 | User | Four | four@asd.com | ldap | 0 |
|
||||||
And the following "cohorts" exists:
|
And the following "cohorts" exist:
|
||||||
| name | idnumber |
|
| name | idnumber |
|
||||||
| Cohort 1 | CH1 |
|
| Cohort 1 | CH1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| user1 | C1 | student |
|
| user1 | C1 | student |
|
||||||
| user2 | C1 | student |
|
| user2 | C1 | student |
|
||||||
|
@ -6,10 +6,10 @@ Feature: Upload users
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Upload users enrolling them on courses and groups
|
Scenario: Upload users enrolling them on courses and groups
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Maths | math102 | 0 |
|
| Maths | math102 | 0 |
|
||||||
And the following "groups" exists:
|
And the following "groups" exist:
|
||||||
| name | course | idnumber |
|
| name | course | idnumber |
|
||||||
| Section 1 | math102 | S1 |
|
| Section 1 | math102 | S1 |
|
||||||
| Section 3 | math102 | S3 |
|
| Section 3 | math102 | S3 |
|
||||||
|
@ -34,7 +34,7 @@ Feature: Page contents assertions
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Locators inside specific DOM nodes using CSS selectors
|
Scenario: Locators inside specific DOM nodes using CSS selectors
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
@ -45,7 +45,7 @@ Feature: Page contents assertions
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Locators inside specific DOM nodes using XPath
|
Scenario: Locators inside specific DOM nodes using XPath
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
|
@ -5,7 +5,7 @@ Feature: Set up contextual data for tests
|
|||||||
I need to fill the database with fixtures
|
I need to fill the database with fixtures
|
||||||
|
|
||||||
Scenario: Add a bunch of users
|
Scenario: Add a bunch of users
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | password | firstname | lastname |
|
| username | password | firstname | lastname |
|
||||||
| testuser | testuser | | |
|
| testuser | testuser | | |
|
||||||
| testuser2 | testuser2 | TestFirstname | TestLastname |
|
| testuser2 | testuser2 | TestFirstname | TestLastname |
|
||||||
@ -16,12 +16,12 @@ Feature: Set up contextual data for tests
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Add a bunch of courses and categories
|
Scenario: Add a bunch of courses and categories
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
| Cat 2 | CAT1 | CAT2 |
|
| Cat 2 | CAT1 | CAT2 |
|
||||||
| Cat 3 | CAT1 | CAT3 |
|
| Cat 3 | CAT1 | CAT3 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | COURSE1 | CAT3 |
|
| Course 1 | COURSE1 | CAT3 |
|
||||||
| Course 2 | COURSE2 | CAT3 |
|
| Course 2 | COURSE2 | CAT3 |
|
||||||
@ -44,14 +44,14 @@ Feature: Set up contextual data for tests
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Add a bunch of groups and groupings
|
Scenario: Add a bunch of groups and groupings
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname |
|
| fullname | shortname |
|
||||||
| Course 1 | C1 |
|
| Course 1 | C1 |
|
||||||
And the following "groups" exists:
|
And the following "groups" exist:
|
||||||
| name | course | idnumber |
|
| name | course | idnumber |
|
||||||
| Group 1 | C1 | G1 |
|
| Group 1 | C1 | G1 |
|
||||||
| Group 2 | C1 | G2 |
|
| Group 2 | C1 | G2 |
|
||||||
And the following "groupings" exists:
|
And the following "groupings" exist:
|
||||||
| name | course | idnumber |
|
| name | course | idnumber |
|
||||||
| Grouping 1 | C1 | GG1 |
|
| Grouping 1 | C1 | GG1 |
|
||||||
| Grouping 2 | C1 | GG2 |
|
| Grouping 2 | C1 | GG2 |
|
||||||
@ -67,21 +67,21 @@ Feature: Set up contextual data for tests
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Role overrides
|
Scenario: Role overrides
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "categories" exists:
|
And the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname |
|
| fullname | shortname |
|
||||||
| Course 1 | C1 |
|
| Course 1 | C1 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And the following "permission overrides" exists:
|
And the following "permission overrides" exist:
|
||||||
| capability | permission | role | contextlevel | reference |
|
| capability | permission | role | contextlevel | reference |
|
||||||
| mod/forum:editanypost | Allow | student | Course | C1 |
|
| mod/forum:editanypost | Allow | student | Course | C1 |
|
||||||
| mod/forum:replynews | Prevent | editingteacher | Course | C1 |
|
| mod/forum:replynews | Prevent | editingteacher | Course | C1 |
|
||||||
@ -97,13 +97,13 @@ Feature: Set up contextual data for tests
|
|||||||
And I press "Cancel"
|
And I press "Cancel"
|
||||||
|
|
||||||
Scenario: Add course enrolments
|
Scenario: Add course enrolments
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | topics |
|
| Course 1 | C1 | topics |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
When I log in as "student1"
|
When I log in as "student1"
|
||||||
@ -111,27 +111,27 @@ Feature: Set up contextual data for tests
|
|||||||
Then I should see "Topic 1"
|
Then I should see "Topic 1"
|
||||||
|
|
||||||
Scenario: Add role assigns
|
Scenario: Add role assigns
|
||||||
Given the following "roles" exists:
|
Given the following "roles" exist:
|
||||||
| name | shortname | description | archetype |
|
| name | shortname | description | archetype |
|
||||||
| Custom editing teacher | custom1 | My custom role 1 | editingteacher |
|
| Custom editing teacher | custom1 | My custom role 1 | editingteacher |
|
||||||
| Custom student | custom2 | | |
|
| Custom student | custom2 | | |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| user1 | User | 1 | user1@moodlemoodle.com |
|
| user1 | User | 1 | user1@moodlemoodle.com |
|
||||||
| user2 | User | 2 | user2@moodlemoodle.com |
|
| user2 | User | 2 | user2@moodlemoodle.com |
|
||||||
| user3 | User | 3 | user3@moodlemoodle.com |
|
| user3 | User | 3 | user3@moodlemoodle.com |
|
||||||
| user4 | User | 4 | user4@moodlemoodle.com |
|
| user4 | User | 4 | user4@moodlemoodle.com |
|
||||||
| user5 | User | 5 | user5@moodlemoodle.com |
|
| user5 | User | 5 | user5@moodlemoodle.com |
|
||||||
And the following "categories" exists:
|
And the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | CAT1 |
|
| Course 1 | C1 | CAT1 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| user4 | C1 | custom1 |
|
| user4 | C1 | custom1 |
|
||||||
And the following "role assigns" exists:
|
And the following "role assigns" exist:
|
||||||
| user | role | contextlevel | reference |
|
| user | role | contextlevel | reference |
|
||||||
| user1 | manager | System | |
|
| user1 | manager | System | |
|
||||||
| user2 | editingteacher | Category | CAT1 |
|
| user2 | editingteacher | Category | CAT1 |
|
||||||
@ -157,12 +157,11 @@ Feature: Set up contextual data for tests
|
|||||||
And I follow "Course 1"
|
And I follow "Course 1"
|
||||||
And I should see "You can not enrol yourself in this course."
|
And I should see "You can not enrol yourself in this course."
|
||||||
|
|
||||||
|
|
||||||
Scenario: Add modules
|
Scenario: Add modules
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname |
|
| fullname | shortname |
|
||||||
| Course 1 | C1 |
|
| Course 1 | C1 |
|
||||||
And the following "activities" exists:
|
And the following "activities" exist:
|
||||||
| activity | name | intro | course | idnumber |
|
| activity | name | intro | course | idnumber |
|
||||||
| assign | Test assignment name | Test assignment description | C1 | assign1 |
|
| assign | Test assignment name | Test assignment description | C1 | assign1 |
|
||||||
| assignment | Test assignment22 name | Test assignment22 description | C1 | assignment1 |
|
| assignment | Test assignment22 name | Test assignment22 description | C1 | assignment1 |
|
||||||
@ -218,29 +217,29 @@ Feature: Set up contextual data for tests
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Add relations between users and groups
|
Scenario: Add relations between users and groups
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
| student2 | Student | 2 | student2@asd.com |
|
| student2 | Student | 2 | student2@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname |
|
| fullname | shortname |
|
||||||
| Course 1 | C1 |
|
| Course 1 | C1 |
|
||||||
And the following "groups" exists:
|
And the following "groups" exist:
|
||||||
| name | course | idnumber |
|
| name | course | idnumber |
|
||||||
| Group 1 | C1 | G1 |
|
| Group 1 | C1 | G1 |
|
||||||
| Group 2 | C1 | G2 |
|
| Group 2 | C1 | G2 |
|
||||||
And the following "groupings" exists:
|
And the following "groupings" exist:
|
||||||
| name | course | idnumber |
|
| name | course | idnumber |
|
||||||
| Grouping 1 | C1 | GG1 |
|
| Grouping 1 | C1 | GG1 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
| student2 | C1 | student |
|
| student2 | C1 | student |
|
||||||
And the following "group members" exists:
|
And the following "group members" exist:
|
||||||
| user | group |
|
| user | group |
|
||||||
| student1 | G1 |
|
| student1 | G1 |
|
||||||
| student2 | G2 |
|
| student2 | G2 |
|
||||||
And the following "grouping groups" exists:
|
And the following "grouping groups" exist:
|
||||||
| grouping | group |
|
| grouping | group |
|
||||||
| GG1 | G1 |
|
| GG1 | G1 |
|
||||||
When I log in as "admin"
|
When I log in as "admin"
|
||||||
|
@ -5,13 +5,13 @@ Feature: Edit capabilities
|
|||||||
I need to allow/deny the existing capabilities at different levels
|
I need to allow/deny the existing capabilities at different levels
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
|
|
||||||
|
@ -5,31 +5,31 @@ Feature: Verify that all form fields values can be get and set
|
|||||||
I need to verify it all works in real moodle forms
|
I need to verify it all works in real moodle forms
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | email | firstname | lastname |
|
| username | email | firstname | lastname |
|
||||||
| student1 | s1@asd.com | Student | 1 |
|
| student1 | s1@asd.com | Student | 1 |
|
||||||
| student2 | s2@asd.com | Student | 2 |
|
| student2 | s2@asd.com | Student | 2 |
|
||||||
| student3 | s3@asd.com | Student | 3 |
|
| student3 | s3@asd.com | Student | 3 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
| student2 | C1 | student |
|
| student2 | C1 | student |
|
||||||
| student3 | C1 | student |
|
| student3 | C1 | student |
|
||||||
| admin | C1 | editingteacher |
|
| admin | C1 | editingteacher |
|
||||||
And the following "groups" exists:
|
And the following "groups" exist:
|
||||||
| name | description | course | idnumber |
|
| name | description | course | idnumber |
|
||||||
| Group 1 | G1 description | C1 | G1 |
|
| Group 1 | G1 description | C1 | G1 |
|
||||||
| Group 2 | G1 description | C1 | G2 |
|
| Group 2 | G1 description | C1 | G2 |
|
||||||
And the following "group members" exists:
|
And the following "group members" exist:
|
||||||
| user | group |
|
| user | group |
|
||||||
| student1 | G1 |
|
| student1 | G1 |
|
||||||
| student2 | G1 |
|
| student2 | G1 |
|
||||||
| student2 | G2 |
|
| student2 | G2 |
|
||||||
| student3 | G2 |
|
| student3 | G2 |
|
||||||
And the following "activities" exists:
|
And the following "activities" exist:
|
||||||
| activity | course | idnumber | name | intro | firstpagetitle | wikimode | visible |
|
| activity | course | idnumber | name | intro | firstpagetitle | wikimode | visible |
|
||||||
| wiki | C1 | wiki1 | Test this one | Test this one | Test this one | collaborative | 0 |
|
| wiki | C1 | wiki1 | Test this one | Test this one | Test this one | collaborative | 0 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
|
@ -21,7 +21,7 @@ Feature: Forms manipulation
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Expand all fieldsets and advanced elements
|
Scenario: Expand all fieldsets and advanced elements
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
|
@ -6,7 +6,7 @@ Feature: Transform steps arguments
|
|||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given I am on homepage
|
Given I am on homepage
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
|
@ -5,7 +5,7 @@ Feature: An admin can create courses using a CSV file
|
|||||||
I need to be able to upload a CSV file and navigate through the import process
|
I need to be able to upload a CSV file and navigate through the import process
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| First course | C1 | 0 |
|
| First course | C1 | 0 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
|
@ -5,7 +5,7 @@ Feature: An admin can update courses using a CSV file
|
|||||||
I need to be able to upload a CSV file and navigate through the import process
|
I need to be able to upload a CSV file and navigate through the import process
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Some random name | C1 | 0 |
|
| Some random name | C1 | 0 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
|
@ -14,7 +14,7 @@ Feature: Authentication
|
|||||||
Then I should see "You are logged in as Admin User"
|
Then I should see "You are logged in as Admin User"
|
||||||
|
|
||||||
Scenario: Log in as an existing admin user filling the form
|
Scenario: Log in as an existing admin user filling the form
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | password | firstname | lastname | email |
|
| username | password | firstname | lastname | email |
|
||||||
| testuser | testuser | Test | User | moodle@moodlemoodle.com |
|
| testuser | testuser | Test | User | moodle@moodlemoodle.com |
|
||||||
And I am on homepage
|
And I am on homepage
|
||||||
@ -25,7 +25,7 @@ Feature: Authentication
|
|||||||
Then I should see "You are logged in as"
|
Then I should see "You are logged in as"
|
||||||
|
|
||||||
Scenario: Log in as an unexisting user filling the form
|
Scenario: Log in as an unexisting user filling the form
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | password | firstname | lastname | email |
|
| username | password | firstname | lastname | email |
|
||||||
| testuser | testuser | Test | User | moodle@moodlemoodle.com |
|
| testuser | testuser | Test | User | moodle@moodlemoodle.com |
|
||||||
And I am on homepage
|
And I am on homepage
|
||||||
|
@ -5,11 +5,11 @@ Feature: Backup Moodle courses
|
|||||||
I need to create backups of courses
|
I need to create backups of courses
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category | numsections |
|
| fullname | shortname | category | numsections |
|
||||||
| Course 1 | C1 | 0 | 10 |
|
| Course 1 | C1 | 0 | 10 |
|
||||||
| Course 2 | C2 | 0 | 2 |
|
| Course 2 | C2 | 0 | 2 |
|
||||||
And the following "activities" exists:
|
And the following "activities" exist:
|
||||||
| activity | course | idnumber | name | intro | section |
|
| activity | course | idnumber | name | intro | section |
|
||||||
| assign | C2 | assign1 | Test assign | Assign description | 1 |
|
| assign | C2 | assign1 | Test assign | Assign description | 1 |
|
||||||
| data | C2 | data1 | Test data | Database description | 2 |
|
| data | C2 | data1 | Test data | Database description | 2 |
|
||||||
@ -37,8 +37,8 @@ Feature: Backup Moodle courses
|
|||||||
And I should not see "Section 3"
|
And I should not see "Section 3"
|
||||||
And I press "Continue"
|
And I press "Continue"
|
||||||
And I click on "Continue" "button" in the ".bcs-current-course" "css_element"
|
And I click on "Continue" "button" in the ".bcs-current-course" "css_element"
|
||||||
And "//div[contains(concat(' ', normalize-space(@class), ' '), ' fitem ')][contains(., 'Include calendar events')]/descendant::img" "xpath_element" should exists
|
And "//div[contains(concat(' ', normalize-space(@class), ' '), ' fitem ')][contains(., 'Include calendar events')]/descendant::img" "xpath_element" should exist
|
||||||
And "Include course logs" "checkbox" should exists
|
And "Include course logs" "checkbox" should exist
|
||||||
And I press "Next"
|
And I press "Next"
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
|
@ -6,13 +6,13 @@ Feature: Duplicate activities
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Duplicate an activity
|
Scenario: Duplicate an activity
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
|
@ -6,14 +6,14 @@ Feature: Import course's contents into another course
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Import course's contents to another course
|
Scenario: Import course's contents to another course
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
| Course 2 | C2 | 0 |
|
| Course 2 | C2 | 0 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| teacher1 | C2 | editingteacher |
|
| teacher1 | C2 | editingteacher |
|
||||||
|
@ -5,12 +5,12 @@ Feature: Restore Moodle 2 course backups
|
|||||||
I need to restore them inside other Moodle courses or in new courses
|
I need to restore them inside other Moodle courses or in new courses
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category | format | numsections | coursedisplay |
|
| fullname | shortname | category | format | numsections | coursedisplay |
|
||||||
| Course 1 | C1 | 0 | topics | 15 | 1 |
|
| Course 1 | C1 | 0 | topics | 15 | 1 |
|
||||||
| Course 2 | C2 | 0 | topics | 5 | 0 |
|
| Course 2 | C2 | 0 | topics | 5 | 0 |
|
||||||
| Course 3 | C3 | 0 | topics | 2 | 0 |
|
| Course 3 | C3 | 0 | topics | 2 | 0 |
|
||||||
And the following "activities" exists:
|
And the following "activities" exist:
|
||||||
| activity | course | idnumber | name | intro | section |
|
| activity | course | idnumber | name | intro | section |
|
||||||
| assign | C3 | assign1 | Test assign name | Assign description | 1 |
|
| assign | C3 | assign1 | Test assign name | Assign description | 1 |
|
||||||
| data | C3 | data1 | Test database name | Database description | 2 |
|
| data | C3 | data1 | Test database name | Database description | 2 |
|
||||||
|
@ -39,7 +39,7 @@ Feature: Award badges
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Award site badge
|
Scenario: Award site badge
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher | teacher | 1 | teacher1@asd.com |
|
| teacher | teacher | 1 | teacher1@asd.com |
|
||||||
| student | student | 1 | student1@asd.com |
|
| student | student | 1 | student1@asd.com |
|
||||||
@ -74,15 +74,15 @@ Feature: Award badges
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Award course badge
|
Scenario: Award course badge
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
| student2 | Student | 2 | student2@asd.com |
|
| student2 | Student | 2 | student2@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category | groupmode |
|
| fullname | shortname | category | groupmode |
|
||||||
| Course 1 | C1 | 0 | 1 |
|
| Course 1 | C1 | 0 | 1 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
@ -119,14 +119,14 @@ Feature: Award badges
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Award badge on activity completion
|
Scenario: Award badge on activity completion
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | Frist | teacher1@asd.com |
|
| teacher1 | Teacher | Frist | teacher1@asd.com |
|
||||||
| student1 | Student | First | student1@asd.com |
|
| student1 | Student | First | student1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
@ -174,14 +174,14 @@ Feature: Award badges
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Award badge on course completion
|
Scenario: Award badge on course completion
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | Frist | teacher1@asd.com |
|
| teacher1 | Teacher | Frist | teacher1@asd.com |
|
||||||
| student1 | Student | First | student1@asd.com |
|
| student1 | Student | First | student1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -13,7 +13,7 @@ Feature: Block activity modules
|
|||||||
And I click on "//a[@title=\"Show\"]" "xpath_element" in the "Feedback" "table_row"
|
And I click on "//a[@title=\"Show\"]" "xpath_element" in the "Feedback" "table_row"
|
||||||
|
|
||||||
Scenario: Add activities block on the frontpage
|
Scenario: Add activities block on the frontpage
|
||||||
Given the following "activities" exists:
|
Given the following "activities" exist:
|
||||||
| activity | name | intro | course | idnumber |
|
| activity | name | intro | course | idnumber |
|
||||||
| assign | Frontpage assignment name | Frontpage assignment description | Acceptance test site | assign0 |
|
| assign | Frontpage assignment name | Frontpage assignment description | Acceptance test site | assign0 |
|
||||||
| book | Frontpage book name | Frontpage book description | Acceptance test site | book0 |
|
| book | Frontpage book name | Frontpage book description | Acceptance test site | book0 |
|
||||||
@ -88,10 +88,10 @@ Feature: Block activity modules
|
|||||||
And I should see "Frontpage url name"
|
And I should see "Frontpage url name"
|
||||||
|
|
||||||
Scenario: Add activities block in a course
|
Scenario: Add activities block in a course
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | topics |
|
| Course 1 | C1 | topics |
|
||||||
And the following "activities" exists:
|
And the following "activities" exist:
|
||||||
| activity | name | intro | course | idnumber |
|
| activity | name | intro | course | idnumber |
|
||||||
| assign | Test assignment name | Test assignment description | C1 | assign1 |
|
| assign | Test assignment name | Test assignment description | C1 | assign1 |
|
||||||
| book | Test book name | Test book description | C1 | book1 |
|
| book | Test book name | Test book description | C1 | book1 |
|
||||||
|
@ -5,14 +5,14 @@ Feature: Add a comment to the comments block
|
|||||||
In need to add comments to courses
|
In need to add comments to courses
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | Frist | teacher1@asd.com |
|
| teacher1 | Teacher | Frist | teacher1@asd.com |
|
||||||
| student1 | Student | First | student1@asd.com |
|
| student1 | Student | First | student1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -6,14 +6,14 @@ Feature: Delete comment block messages
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Delete comments with Javascript enabled
|
Scenario: Delete comments with Javascript enabled
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | First | teacher1@asd.com |
|
| teacher1 | Teacher | First | teacher1@asd.com |
|
||||||
| student1 | Student | First | student1@asd.com |
|
| student1 | Student | First | student1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -5,10 +5,10 @@ Feature: View my courses in navigation block
|
|||||||
I need my courses displayed in the navigation block
|
I need my courses displayed in the navigation block
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "categories" exists:
|
And the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| cat1 | 0 | cat1 |
|
| cat1 | 0 | cat1 |
|
||||||
| cat2 | 0 | cat2 |
|
| cat2 | 0 | cat2 |
|
||||||
@ -16,7 +16,7 @@ Feature: View my courses in navigation block
|
|||||||
| cat31 | cat3 | cat31 |
|
| cat31 | cat3 | cat31 |
|
||||||
| cat32 | cat3 | cat32 |
|
| cat32 | cat3 | cat32 |
|
||||||
| cat33 | cat3 | cat33 |
|
| cat33 | cat3 | cat33 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course1 | c1 | cat1 |
|
| Course1 | c1 | cat1 |
|
||||||
| Course2 | c2 | cat2 |
|
| Course2 | c2 | cat2 |
|
||||||
@ -24,7 +24,7 @@ Feature: View my courses in navigation block
|
|||||||
| Course32 | c32 | cat32 |
|
| Course32 | c32 | cat32 |
|
||||||
| Course331| c331 | cat33 |
|
| Course331| c331 | cat33 |
|
||||||
| Course332| c332 | cat33 |
|
| Course332| c332 | cat33 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| student1 | c1 | student |
|
| student1 | c1 | student |
|
||||||
| student1 | c31 | student |
|
| student1 | c31 | student |
|
||||||
|
@ -5,14 +5,14 @@ Feature: Add blocks
|
|||||||
I need to add blocks to pages
|
I need to add blocks to pages
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
| student2 | Student | 2 | student2@asd.com |
|
| student2 | Student | 2 | student2@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | topics |
|
| Course 1 | C1 | topics |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
| student2 | C1 | student |
|
| student2 | C1 | student |
|
||||||
|
@ -6,13 +6,13 @@ Feature: Add and configure blocks throughout the site
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Add and configure a block throughtout the site
|
Scenario: Add and configure a block throughtout the site
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| manager1 | Manager | 1 | manager1@asd.com |
|
| manager1 | Manager | 1 | manager1@asd.com |
|
||||||
And the following "system role assigns" exists:
|
And the following "system role assigns" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| manager1 | Acceptance test site | manager |
|
| manager1 | Acceptance test site | manager |
|
||||||
And I log in as "manager1"
|
And I log in as "manager1"
|
||||||
|
@ -5,13 +5,13 @@ Feature: Block appearances
|
|||||||
I need to add and modify block configuration for the page
|
I need to add and modify block configuration for the page
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | teacher | 1 | teacher1@asd.com |
|
| teacher1 | teacher | 1 | teacher1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
|
@ -5,13 +5,13 @@ Feature: Allowed blocks controls
|
|||||||
I need to restrict some blocks to be used in courses
|
I need to restrict some blocks to be used in courses
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Feature: The context of a block can always be returned to it's original state.
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Add and configure a block to display on every page and revert back
|
Scenario: Add and configure a block to display on every page and revert back
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
@ -32,9 +32,9 @@ Feature: The context of a block can always be returned to it's original state.
|
|||||||
And I press "Save changes"
|
And I press "Save changes"
|
||||||
And I should see "Tags" in the "Tags" "block"
|
And I should see "Tags" in the "Tags" "block"
|
||||||
And I follow "Course 1"
|
And I follow "Course 1"
|
||||||
And "Tags" "block" should not exists
|
And "Tags" "block" should not exist
|
||||||
And I click on "Participants" "link" in the "//li[p/span[contains(normalize-space(string(.)), 'Current course')]]" "xpath_element"
|
And I click on "Participants" "link" in the "//li[p/span[contains(normalize-space(string(.)), 'Current course')]]" "xpath_element"
|
||||||
And "Tags" "block" should not exists
|
And "Tags" "block" should not exist
|
||||||
And I follow "Course 1"
|
And I follow "Course 1"
|
||||||
And I add a "Assignment" to section "1" and I fill the form with:
|
And I add a "Assignment" to section "1" and I fill the form with:
|
||||||
| Assignment name | Assignment2 |
|
| Assignment name | Assignment2 |
|
||||||
|
@ -5,7 +5,7 @@ Feature: Comment on a blog entry
|
|||||||
I need to be able to comment on a blog entry
|
I need to be able to comment on a blog entry
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| testuser | Test | User | moodle@moodlemoodle.com |
|
| testuser | Test | User | moodle@moodlemoodle.com |
|
||||||
| testuser2 | Test2 | User2 | moodle2@moodlemoodle.com |
|
| testuser2 | Test2 | User2 | moodle2@moodlemoodle.com |
|
||||||
|
@ -5,14 +5,14 @@ Feature: Perform basic calendar functionality
|
|||||||
I need to create calendar data
|
I need to create calendar data
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
| student2 | Student | 2 | student2@asd.com |
|
| student2 | Student | 2 | student2@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | topics |
|
| Course 1 | C1 | topics |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
When I log in as "admin"
|
When I log in as "admin"
|
||||||
|
@ -5,7 +5,7 @@ Feature: Add cohorts of users
|
|||||||
I need to create cohorts and add users on them
|
I need to create cohorts and add users on them
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| user1 | First | User | first@user.com |
|
| user1 | First | User | first@user.com |
|
||||||
| user2 | Second | User | second@user.com |
|
| user2 | Second | User | second@user.com |
|
||||||
|
@ -6,11 +6,11 @@ Feature: Upload users to a cohort
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Upload users and assign them to a course with cohort enrolment method enabled
|
Scenario: Upload users and assign them to a course with cohort enrolment method enabled
|
||||||
Given the following "cohorts" exists:
|
Given the following "cohorts" exist:
|
||||||
| name | idnumber |
|
| name | idnumber |
|
||||||
| Cohort 1 | ASD |
|
| Cohort 1 | ASD |
|
||||||
| Cohort 2 | DSA |
|
| Cohort 2 | DSA |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
| Course 2 | C2 | 0 |
|
| Course 2 | C2 | 0 |
|
||||||
|
@ -6,14 +6,14 @@ Feature: Allow students to manually mark an activity as complete
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Mark an activity as completed
|
Scenario: Mark an activity as completed
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | Frist | teacher1@asd.com |
|
| teacher1 | Teacher | Frist | teacher1@asd.com |
|
||||||
| student1 | Student | First | student1@asd.com |
|
| student1 | Student | First | student1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -5,14 +5,14 @@ Feature: Restrict activity availability through date conditions
|
|||||||
I need to set allow access dates to restrict activity access
|
I need to set allow access dates to restrict activity access
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | Frist | teacher1@asd.com |
|
| teacher1 | Teacher | Frist | teacher1@asd.com |
|
||||||
| student1 | Student | First | student1@asd.com |
|
| student1 | Student | First | student1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -6,14 +6,14 @@ Feature: Restrict activity availability through grade conditions
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Show activity greyed-out to students when grade condition is not satisfied
|
Scenario: Show activity greyed-out to students when grade condition is not satisfied
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | Frist | teacher1@asd.com |
|
| teacher1 | Teacher | Frist | teacher1@asd.com |
|
||||||
| student1 | Student | First | student1@asd.com |
|
| student1 | Student | First | student1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -5,14 +5,14 @@ Feature: Restrict sections availability through completion or grade conditions
|
|||||||
I need to restrict sections availability using different conditions
|
I need to restrict sections availability using different conditions
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | Frist | teacher1@asd.com |
|
| teacher1 | Teacher | Frist | teacher1@asd.com |
|
||||||
| student1 | Student | First | student1@asd.com |
|
| student1 | Student | First | student1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -6,13 +6,13 @@ Feature: Open the edit menu when a block is docked
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Open the action menu with a block docked
|
Scenario: Open the action menu with a block docked
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | weeks |
|
| Course 1 | C1 | weeks |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
|
@ -6,13 +6,13 @@ Feature: Toggle activities groups mode from the course page
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Groups mode toggle with javascript enabled
|
Scenario: Groups mode toggle with javascript enabled
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | topics |
|
| Course 1 | C1 | topics |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
@ -26,20 +26,20 @@ Feature: Toggle activities groups mode from the course page
|
|||||||
| Group mode | No groups |
|
| Group mode | No groups |
|
||||||
| Force group mode | No |
|
| Force group mode | No |
|
||||||
When I press "Save changes"
|
When I press "Save changes"
|
||||||
Then "No groups (Click to change)" "link" should exists
|
Then "No groups (Click to change)" "link" should exist
|
||||||
And "//a/child::img[contains(@src, 'groupn')]" "xpath_element" should exists
|
And "//a/child::img[contains(@src, 'groupn')]" "xpath_element" should exist
|
||||||
And I click on "No groups (Click to change)" "link" in the "Test forum name" activity
|
And I click on "No groups (Click to change)" "link" in the "Test forum name" activity
|
||||||
And "Separate groups (Click to change)" "link" should exists
|
And "Separate groups (Click to change)" "link" should exist
|
||||||
And "//a/child::img[contains(@src, 'groups')]" "xpath_element" should exists
|
And "//a/child::img[contains(@src, 'groups')]" "xpath_element" should exist
|
||||||
And I reload the page
|
And I reload the page
|
||||||
And "Separate groups (Click to change)" "link" should exists
|
And "Separate groups (Click to change)" "link" should exist
|
||||||
And "//a/child::img[contains(@src, 'groups')]" "xpath_element" should exists
|
And "//a/child::img[contains(@src, 'groups')]" "xpath_element" should exist
|
||||||
And I click on "Separate groups (Click to change)" "link" in the "Test forum name" activity
|
And I click on "Separate groups (Click to change)" "link" in the "Test forum name" activity
|
||||||
And "Visible groups (Click to change)" "link" should exists
|
And "Visible groups (Click to change)" "link" should exist
|
||||||
And "//a/child::img[contains(@src, 'groupv')]" "xpath_element" should exists
|
And "//a/child::img[contains(@src, 'groupv')]" "xpath_element" should exist
|
||||||
And I reload the page
|
And I reload the page
|
||||||
And "Visible groups (Click to change)" "link" should exists
|
And "Visible groups (Click to change)" "link" should exist
|
||||||
And "//a/child::img[contains(@src, 'groupv')]" "xpath_element" should exists
|
And "//a/child::img[contains(@src, 'groupv')]" "xpath_element" should exist
|
||||||
And I click on "Visible groups (Click to change)" "link" in the "Test forum name" activity
|
And I click on "Visible groups (Click to change)" "link" in the "Test forum name" activity
|
||||||
And "No groups (Click to change)" "link" should exists
|
And "No groups (Click to change)" "link" should exist
|
||||||
And "//a/child::img[contains(@src, 'groupn')]" "xpath_element" should exists
|
And "//a/child::img[contains(@src, 'groupn')]" "xpath_element" should exist
|
||||||
|
@ -6,14 +6,14 @@ Feature: Indent items on the course page
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Indent course items with Javascript enabled
|
Scenario: Indent course items with Javascript enabled
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | weeks |
|
| Course 1 | C1 | weeks |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
@ -24,14 +24,14 @@ Feature: Indent items on the course page
|
|||||||
| Name | Test glossary name |
|
| Name | Test glossary name |
|
||||||
| Description | Test glossary description |
|
| Description | Test glossary description |
|
||||||
When I indent right "Test glossary name" activity
|
When I indent right "Test glossary name" activity
|
||||||
Then "#section-1 li.glossary div.mod-indent-1" "css_element" should exists
|
Then "#section-1 li.glossary div.mod-indent-1" "css_element" should exist
|
||||||
And I indent right "Test glossary name" activity
|
And I indent right "Test glossary name" activity
|
||||||
And "//li[@id='section-1']/descendant::li[contains(concat(' ', @class, ' '), ' glossary ')]/descendant::a[not(contains(concat(' ', @class, ' '), ' hidden '))]/descendant::span[normalize-space(.)='Move left']" "xpath_element" should exists
|
And "//li[@id='section-1']/descendant::li[contains(concat(' ', @class, ' '), ' glossary ')]/descendant::a[not(contains(concat(' ', @class, ' '), ' hidden '))]/descendant::span[normalize-space(.)='Move left']" "xpath_element" should exist
|
||||||
And "#section-1 li.glossary div.mod-indent-2" "css_element" should exists
|
And "#section-1 li.glossary div.mod-indent-2" "css_element" should exist
|
||||||
And I reload the page
|
And I reload the page
|
||||||
And "#section-1 li.glossary div.mod-indent-2" "css_element" should exists
|
And "#section-1 li.glossary div.mod-indent-2" "css_element" should exist
|
||||||
And I indent left "Test glossary name" activity
|
And I indent left "Test glossary name" activity
|
||||||
And I indent left "Test glossary name" activity
|
And I indent left "Test glossary name" activity
|
||||||
And "#section-1 li.glossary div.mod-indent-2" "css_element" should not exists
|
And "#section-1 li.glossary div.mod-indent-2" "css_element" should not exist
|
||||||
And "#section-1 li.glossary div.mod-indent-1" "css_element" should not exists
|
And "#section-1 li.glossary div.mod-indent-1" "css_element" should not exist
|
||||||
And "//li[@id='section-1']/descendant::li[contains(concat(' ', @class, ' '), ' glossary ')]/descendant::a[not(contains(concat(' ', @class, ' '), ' hidden '))]/descendant::span[normalize-space(.)='Move left']" "xpath_element" should not exists
|
And "//li[@id='section-1']/descendant::li[contains(concat(' ', @class, ' '), ' glossary ')]/descendant::a[not(contains(concat(' ', @class, ' '), ' hidden '))]/descendant::span[normalize-space(.)='Move left']" "xpath_element" should not exist
|
||||||
|
@ -6,14 +6,14 @@ Feature: Toggle activities visibility from the course page
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Hide/Show toggle with javascript enabled
|
Scenario: Hide/Show toggle with javascript enabled
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | topics |
|
| Course 1 | C1 | topics |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
@ -42,13 +42,13 @@ Feature: Toggle activities visibility from the course page
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Activities can be shown and hidden inside a hidden section
|
Scenario: Activities can be shown and hidden inside a hidden section
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format | numsections |
|
| fullname | shortname | format | numsections |
|
||||||
| Course 1 | C1 | topics | 2 |
|
| Course 1 | C1 | topics | 2 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
@ -69,13 +69,13 @@ Feature: Toggle activities visibility from the course page
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Activities can be shown and hidden inside an orphaned section
|
Scenario: Activities can be shown and hidden inside an orphaned section
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format | numsections |
|
| fullname | shortname | format | numsections |
|
||||||
| Course 1 | C1 | topics | 2 |
|
| Course 1 | C1 | topics | 2 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
|
@ -5,14 +5,14 @@ Feature: Add activities to courses
|
|||||||
I need to add activites to a course
|
I need to add activites to a course
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
| student2 | Student | 2 | student2@asd.com |
|
| student2 | Student | 2 | student2@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | topics |
|
| Course 1 | C1 | topics |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
| student2 | C1 | student |
|
| student2 | C1 | student |
|
||||||
|
@ -498,7 +498,7 @@ class behat_course extends behat_base {
|
|||||||
|
|
||||||
if ($this->is_course_editor()) {
|
if ($this->is_course_editor()) {
|
||||||
|
|
||||||
// The activity should exists.
|
// The activity should exist.
|
||||||
$activitynode = $this->get_activity_node($activityname);
|
$activitynode = $this->get_activity_node($activityname);
|
||||||
|
|
||||||
// Should be hidden.
|
// Should be hidden.
|
||||||
@ -511,7 +511,7 @@ class behat_course extends behat_base {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// It should not exists at all.
|
// It should not exist at all.
|
||||||
try {
|
try {
|
||||||
$this->find_link($activityname);
|
$this->find_link($activityname);
|
||||||
throw new ExpectationException('The "' . $activityname . '" should not appear');
|
throw new ExpectationException('The "' . $activityname . '" should not appear');
|
||||||
@ -1440,20 +1440,20 @@ class behat_course extends behat_base {
|
|||||||
);
|
);
|
||||||
switch ($mode) {
|
switch ($mode) {
|
||||||
case "Courses":
|
case "Courses":
|
||||||
$return[] = new Given('"#category-listing" "css_element" should not exists');
|
$return[] = new Given('"#category-listing" "css_element" should not exist');
|
||||||
$return[] = new Given('"#course-listing" "css_element" should exists');
|
$return[] = new Given('"#course-listing" "css_element" should exist');
|
||||||
break;
|
break;
|
||||||
case "Course categories":
|
case "Course categories":
|
||||||
$return[] = new Given('"#category-listing" "css_element" should exists');
|
$return[] = new Given('"#category-listing" "css_element" should exist');
|
||||||
$return[] = new Given('"#course-listing" "css_element" should not exists');
|
$return[] = new Given('"#course-listing" "css_element" should not exist');
|
||||||
break;
|
break;
|
||||||
case "Courses categories and courses":
|
case "Courses categories and courses":
|
||||||
default:
|
default:
|
||||||
$return[] = new Given('"#category-listing" "css_element" should exists');
|
$return[] = new Given('"#category-listing" "css_element" should exist');
|
||||||
$return[] = new Given('"#course-listing" "css_element" should exists');
|
$return[] = new Given('"#course-listing" "css_element" should exist');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$return[] = new Given('"#course-detail" "css_element" should not exists');
|
$return[] = new Given('"#course-detail" "css_element" should not exist');
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1467,7 +1467,7 @@ class behat_course extends behat_base {
|
|||||||
public function i_should_see_the_courses_management_page_with_a_course_selected($mode) {
|
public function i_should_see_the_courses_management_page_with_a_course_selected($mode) {
|
||||||
$return = $this->i_should_see_the_courses_management_page($mode);
|
$return = $this->i_should_see_the_courses_management_page($mode);
|
||||||
array_pop($return);
|
array_pop($return);
|
||||||
$return[] = new Given('"#course-detail" "css_element" should exists');
|
$return[] = new Given('"#course-detail" "css_element" should exist');
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ Feature: We can change the visibility of categories in the management interface.
|
|||||||
|
|
||||||
# Tests hiding and then showing a single category.
|
# Tests hiding and then showing a single category.
|
||||||
Scenario: Test making a category hidden and then visible again.
|
Scenario: Test making a category hidden and then visible again.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ Feature: We can change the visibility of categories in the management interface.
|
|||||||
# Tests hiding and then showing a single category.
|
# Tests hiding and then showing a single category.
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Test using AJAX to make a category hidden and then visible again.
|
Scenario: Test using AJAX to make a category hidden and then visible again.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ Feature: We can change the visibility of categories in the management interface.
|
|||||||
|
|
||||||
# Tests hiding and then showing a subcategory.
|
# Tests hiding and then showing a subcategory.
|
||||||
Scenario: Test making a subcategory hidden and then visible again.
|
Scenario: Test making a subcategory hidden and then visible again.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
| Cat 2 | CAT1 | CAT2 |
|
| Cat 2 | CAT1 | CAT2 |
|
||||||
@ -84,7 +84,7 @@ Feature: We can change the visibility of categories in the management interface.
|
|||||||
# Tests hiding and then showing a subcategory.
|
# Tests hiding and then showing a subcategory.
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Test using AJAX to make a subcategory hidden and then visible again.
|
Scenario: Test using AJAX to make a subcategory hidden and then visible again.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
| Cat 2 | CAT1 | CAT2 |
|
| Cat 2 | CAT1 | CAT2 |
|
||||||
@ -110,13 +110,13 @@ Feature: We can change the visibility of categories in the management interface.
|
|||||||
|
|
||||||
# The test below this is identical except with JavaScript enabled.
|
# The test below this is identical except with JavaScript enabled.
|
||||||
Scenario: Test relation between category and course when changing visibility.
|
Scenario: Test relation between category and course when changing visibility.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
| Cat 2 | 0 | CAT2 |
|
| Cat 2 | 0 | CAT2 |
|
||||||
| Cat 3 | CAT1 | CAT3 |
|
| Cat 3 | CAT1 | CAT3 |
|
||||||
| Cat 4 | CAT1 | CAT4 |
|
| Cat 4 | CAT1 | CAT4 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT1 | Course 1 | Course 1 | C1 |
|
| CAT1 | Course 1 | Course 1 | C1 |
|
||||||
| CAT1 | Course 2 | Course 2 | C2 |
|
| CAT1 | Course 2 | Course 2 | C2 |
|
||||||
@ -185,13 +185,13 @@ Feature: We can change the visibility of categories in the management interface.
|
|||||||
# The test above this is identical except without JavaScript enabled.
|
# The test above this is identical except without JavaScript enabled.
|
||||||
@javascript @_cross_browser
|
@javascript @_cross_browser
|
||||||
Scenario: Test the relation between category and course when changing visibility with AJAX
|
Scenario: Test the relation between category and course when changing visibility with AJAX
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
| Cat 2 | 0 | CAT2 |
|
| Cat 2 | 0 | CAT2 |
|
||||||
| Cat 3 | CAT1 | CAT3 |
|
| Cat 3 | CAT1 | CAT3 |
|
||||||
| Cat 4 | CAT1 | CAT4 |
|
| Cat 4 | CAT1 | CAT4 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT1 | Course 1 | Course 1 | C1 |
|
| CAT1 | Course 1 | Course 1 | C1 |
|
||||||
| CAT1 | Course 2 | Course 2 | C2 |
|
| CAT1 | Course 2 | Course 2 | C2 |
|
||||||
@ -253,12 +253,12 @@ Feature: We can change the visibility of categories in the management interface.
|
|||||||
|
|
||||||
@javascript @_cross_browser
|
@javascript @_cross_browser
|
||||||
Scenario: Test courses are hidden when selected category parent is hidden.
|
Scenario: Test courses are hidden when selected category parent is hidden.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
| Cat 2 | CAT1 | CAT2 |
|
| Cat 2 | CAT1 | CAT2 |
|
||||||
| Cat 3 | CAT2 | CAT3 |
|
| Cat 3 | CAT2 | CAT3 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT3 | Course 1 | Course 1 | C1 |
|
| CAT3 | Course 1 | Course 1 | C1 |
|
||||||
|
|
||||||
|
@ -12,10 +12,10 @@ Feature: Test category management actions
|
|||||||
Test we can manage filters for a category
|
Test we can manage filters for a category
|
||||||
|
|
||||||
Scenario: Test editing a category through the management interface.
|
Scenario: Test editing a category through the management interface.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT1 | Course 1 | Course 1 | C1 |
|
| CAT1 | Course 1 | Course 1 | C1 |
|
||||||
|
|
||||||
@ -43,13 +43,13 @@ Feature: Test category management actions
|
|||||||
And I should see "Category 1 (edited)" in the "#course-listing h3" "css_element"
|
And I should see "Category 1 (edited)" in the "#course-listing h3" "css_element"
|
||||||
|
|
||||||
Scenario: Test deleting a categories through the management interface.
|
Scenario: Test deleting a categories through the management interface.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
| Cat 2 | 0 | CAT2 |
|
| Cat 2 | 0 | CAT2 |
|
||||||
| Cat 3 | 0 | CAT3 |
|
| Cat 3 | 0 | CAT3 |
|
||||||
|
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT3 | Course 1 | Course 1 | C1 |
|
| CAT3 | Course 1 | Course 1 | C1 |
|
||||||
|
|
||||||
@ -104,10 +104,10 @@ Feature: Test category management actions
|
|||||||
And I should see "Course 1" in the "#course-listing ul.ml" "css_element"
|
And I should see "Course 1" in the "#course-listing ul.ml" "css_element"
|
||||||
|
|
||||||
Scenario: Test I can assign roles for a category through the management interface.
|
Scenario: Test I can assign roles for a category through the management interface.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT1 | Course 1 | Course 1 | C1 |
|
| CAT1 | Course 1 | Course 1 | C1 |
|
||||||
|
|
||||||
@ -124,10 +124,10 @@ Feature: Test category management actions
|
|||||||
And I should see "Cat 1" in the "#course-listing h3" "css_element"
|
And I should see "Cat 1" in the "#course-listing h3" "css_element"
|
||||||
|
|
||||||
Scenario: Test I can set access permissions for a category through the management interface.
|
Scenario: Test I can set access permissions for a category through the management interface.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT1 | Course 1 | Course 1 | C1 |
|
| CAT1 | Course 1 | Course 1 | C1 |
|
||||||
|
|
||||||
@ -143,10 +143,10 @@ Feature: Test category management actions
|
|||||||
And I should see "Cat 1" in the "#course-listing h3" "css_element"
|
And I should see "Cat 1" in the "#course-listing h3" "css_element"
|
||||||
|
|
||||||
Scenario: Test clicking to manage cohorts for a category through the management interface.
|
Scenario: Test clicking to manage cohorts for a category through the management interface.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT1 | Course 1 | Course 1 | C1 |
|
| CAT1 | Course 1 | Course 1 | C1 |
|
||||||
|
|
||||||
@ -158,10 +158,10 @@ Feature: Test category management actions
|
|||||||
And I should see "Category: Cat 1: available cohorts"
|
And I should see "Category: Cat 1: available cohorts"
|
||||||
|
|
||||||
Scenario: Test configuring filters for a category
|
Scenario: Test configuring filters for a category
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT1 | Course 1 | Course 1 | C1 |
|
| CAT1 | Course 1 | Course 1 | C1 |
|
||||||
|
|
||||||
@ -178,7 +178,7 @@ Feature: Test category management actions
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Test that I can create a category and view it in the management interface
|
Scenario: Test that I can create a category and view it in the management interface
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
@ -211,7 +211,7 @@ Feature: Test category management actions
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Test moving a categories through the management interface.
|
Scenario: Test moving a categories through the management interface.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
| Cat 2 | 0 | CAT2 |
|
| Cat 2 | 0 | CAT2 |
|
||||||
@ -238,12 +238,12 @@ Feature: Test category management actions
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Test bulk action is shown only when some category/course is selected
|
Scenario: Test bulk action is shown only when some category/course is selected
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
| Cat 2 | 0 | CAT2 |
|
| Cat 2 | 0 | CAT2 |
|
||||||
| Cat 3 | 0 | CAT3 |
|
| Cat 3 | 0 | CAT3 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT3 | Course 1 | Course 1 | C1 |
|
| CAT3 | Course 1 | Course 1 | C1 |
|
||||||
| CAT3 | Course 2 | Course 2 | C2 |
|
| CAT3 | Course 2 | Course 2 | C2 |
|
||||||
|
@ -6,7 +6,7 @@ Feature: Test we can resort categories in the management interface.
|
|||||||
I need to test we can manually sort categories.
|
I need to test we can manually sort categories.
|
||||||
|
|
||||||
Scenario Outline: Test bulk sorting all categories.
|
Scenario Outline: Test bulk sorting all categories.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| category | name | idnumber | sortorder |
|
| category | name | idnumber | sortorder |
|
||||||
| 0 | Social studies | Ext003 | 1 |
|
| 0 | Social studies | Ext003 | 1 |
|
||||||
| 0 | Applied sciences | Sci001 | 2 |
|
| 0 | Applied sciences | Sci001 | 2 |
|
||||||
@ -29,7 +29,7 @@ Feature: Test we can resort categories in the management interface.
|
|||||||
| "Sort categories by ID number" | "Extended social studies" | "Social studies" | "Applied sciences" |
|
| "Sort categories by ID number" | "Extended social studies" | "Social studies" | "Applied sciences" |
|
||||||
|
|
||||||
Scenario Outline: Test bulk sorting current category.
|
Scenario Outline: Test bulk sorting current category.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| category | name | idnumber | sortorder |
|
| category | name | idnumber | sortorder |
|
||||||
| 0 | Test category | Tes001 | 1 |
|
| 0 | Test category | Tes001 | 1 |
|
||||||
| Tes001 | Social studies | Ext003 | 2 |
|
| Tes001 | Social studies | Ext003 | 2 |
|
||||||
@ -56,7 +56,7 @@ Feature: Test we can resort categories in the management interface.
|
|||||||
| "Sort categories by ID number" | "Extended social studies" | "Social studies" | "Applied sciences" |
|
| "Sort categories by ID number" | "Extended social studies" | "Social studies" | "Applied sciences" |
|
||||||
|
|
||||||
Scenario Outline: Test resorting subcategories.
|
Scenario Outline: Test resorting subcategories.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| category | name | idnumber | sortorder |
|
| category | name | idnumber | sortorder |
|
||||||
| 0 | Master cat | CAT1 | 1 |
|
| 0 | Master cat | CAT1 | 1 |
|
||||||
| CAT1 | Social studies | Ext003 | 1 |
|
| CAT1 | Social studies | Ext003 | 1 |
|
||||||
@ -82,7 +82,7 @@ Feature: Test we can resort categories in the management interface.
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario Outline: Test resorting subcategories with JS enabled.
|
Scenario Outline: Test resorting subcategories with JS enabled.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| category | name | idnumber | sortorder |
|
| category | name | idnumber | sortorder |
|
||||||
| 0 | Master cat | CAT1 | 1 |
|
| 0 | Master cat | CAT1 | 1 |
|
||||||
| CAT1 | Social studies | Ext003 | 1 |
|
| CAT1 | Social studies | Ext003 | 1 |
|
||||||
@ -108,7 +108,7 @@ Feature: Test we can resort categories in the management interface.
|
|||||||
|
|
||||||
# The scenario below this is the same but with JS enabled.
|
# The scenario below this is the same but with JS enabled.
|
||||||
Scenario: Test moving categories up and down by one.
|
Scenario: Test moving categories up and down by one.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| category | idnumber | name |
|
| category | idnumber | name |
|
||||||
| 0 | CAT1 | Cat 1 |
|
| 0 | CAT1 | Cat 1 |
|
||||||
| 0 | CAT2 | Cat 2 |
|
| 0 | CAT2 | Cat 2 |
|
||||||
@ -168,7 +168,7 @@ Feature: Test we can resort categories in the management interface.
|
|||||||
|
|
||||||
@javascript @_cross_browser
|
@javascript @_cross_browser
|
||||||
Scenario: Test using AJAX to move categories up and down by one.
|
Scenario: Test using AJAX to move categories up and down by one.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| category | idnumber | name |
|
| category | idnumber | name |
|
||||||
| 0 | CAT1 | Cat 1 |
|
| 0 | CAT1 | Cat 1 |
|
||||||
| 0 | CAT2 | Cat 2 |
|
| 0 | CAT2 | Cat 2 |
|
||||||
|
@ -6,7 +6,7 @@ Feature: Course category management interface performs as expected
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Test general look of management interface
|
Scenario: Test general look of management interface
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
@ -18,10 +18,10 @@ Feature: Course category management interface performs as expected
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Test view mode functionality
|
Scenario: Test view mode functionality
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category | format |
|
| fullname | shortname | category | format |
|
||||||
| Course 1 | C1 | CAT1 | topics |
|
| Course 1 | C1 | CAT1 | topics |
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ Feature: Course category management interface performs as expected
|
|||||||
And I should see "Cat 1" in the "#course-detail .category" "css_element"
|
And I should see "Cat 1" in the "#course-detail .category" "css_element"
|
||||||
|
|
||||||
Scenario: Test displaying of sub categories
|
Scenario: Test displaying of sub categories
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
| Cat 2 | 0 | CAT2 |
|
| Cat 2 | 0 | CAT2 |
|
||||||
@ -81,7 +81,7 @@ Feature: Course category management interface performs as expected
|
|||||||
| Cat 1-1-2 | CAT3 | CAT6 |
|
| Cat 1-1-2 | CAT3 | CAT6 |
|
||||||
| Cat 2-1 | CAT2 | CAT7 |
|
| Cat 2-1 | CAT2 | CAT7 |
|
||||||
| Cat 2-1-1 | CAT7 | CAT8 |
|
| Cat 2-1-1 | CAT7 | CAT8 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | CAT1 |
|
| Course 1 | C1 | CAT1 |
|
||||||
| Course 2 | C2 | CAT1 |
|
| Course 2 | C2 | CAT1 |
|
||||||
@ -141,7 +141,7 @@ Feature: Course category management interface performs as expected
|
|||||||
# to load the categories.
|
# to load the categories.
|
||||||
@javascript @_cross_browser
|
@javascript @_cross_browser
|
||||||
Scenario: Test AJAX loading of sub categories
|
Scenario: Test AJAX loading of sub categories
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
| Cat 2 | 0 | CAT2 |
|
| Cat 2 | 0 | CAT2 |
|
||||||
@ -151,7 +151,7 @@ Feature: Course category management interface performs as expected
|
|||||||
| Cat 1-1-2 | CAT3 | CAT6 |
|
| Cat 1-1-2 | CAT3 | CAT6 |
|
||||||
| Cat 2-1 | CAT2 | CAT7 |
|
| Cat 2-1 | CAT2 | CAT7 |
|
||||||
| Cat 2-1-1 | CAT7 | CAT8 |
|
| Cat 2-1-1 | CAT7 | CAT8 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | CAT1 |
|
| Course 1 | C1 | CAT1 |
|
||||||
| Course 2 | C2 | CAT1 |
|
| Course 2 | C2 | CAT1 |
|
||||||
@ -236,7 +236,7 @@ Feature: Course category management interface performs as expected
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario Outline: Top level categories are displayed correctly when resorted
|
Scenario Outline: Top level categories are displayed correctly when resorted
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| category | name | idnumber | sortorder |
|
| category | name | idnumber | sortorder |
|
||||||
| 0 | Social studies | Ext003 | 1 |
|
| 0 | Social studies | Ext003 | 1 |
|
||||||
| 0 | Applied sciences | Sci001 | 2 |
|
| 0 | Applied sciences | Sci001 | 2 |
|
||||||
@ -260,7 +260,7 @@ Feature: Course category management interface performs as expected
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario Outline: Sub categories are displayed correctly when resorted
|
Scenario Outline: Sub categories are displayed correctly when resorted
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| category | name | idnumber | sortorder |
|
| category | name | idnumber | sortorder |
|
||||||
| 0 | Master cat | CAT1 | 1 |
|
| 0 | Master cat | CAT1 | 1 |
|
||||||
| CAT1 | Social studies | Ext003 | 1 |
|
| CAT1 | Social studies | Ext003 | 1 |
|
||||||
@ -286,10 +286,10 @@ Feature: Course category management interface performs as expected
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario Outline: Test courses are displayed correctly after being resorted.
|
Scenario Outline: Test courses are displayed correctly after being resorted.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category 0| idnumber |
|
| name | category 0| idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber | sortorder |
|
| category | fullname | shortname | idnumber | sortorder |
|
||||||
| CAT1 | Social studies | Senior school | Ext003 | 1 |
|
| CAT1 | Social studies | Senior school | Ext003 | 1 |
|
||||||
| CAT1 | Applied sciences | Middle school | Sci001 | 2 |
|
| CAT1 | Applied sciences | Middle school | Sci001 | 2 |
|
||||||
@ -319,10 +319,10 @@ Feature: Course category management interface performs as expected
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Test course pagination
|
Scenario: Test course pagination
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT1 | Course 1 | Course 1 | C1 |
|
| CAT1 | Course 1 | Course 1 | C1 |
|
||||||
| CAT1 | Course 2 | Course 2 | C2 |
|
| CAT1 | Course 2 | Course 2 | C2 |
|
||||||
@ -358,7 +358,7 @@ Feature: Course category management interface performs as expected
|
|||||||
And I should see course listing "Course 9" before "Course 10"
|
And I should see course listing "Course 9" before "Course 10"
|
||||||
And I should see course listing "Course 10" before "Course 11"
|
And I should see course listing "Course 10" before "Course 11"
|
||||||
And I should see course listing "Course 11" before "Course 12"
|
And I should see course listing "Course 11" before "Course 12"
|
||||||
And "#course-listing .listing-pagination" "css_element" should not exists
|
And "#course-listing .listing-pagination" "css_element" should not exist
|
||||||
And I click on "Per page: 20" "link" in the ".course-listing-actions" "css_element"
|
And I click on "Per page: 20" "link" in the ".course-listing-actions" "css_element"
|
||||||
And I should see "5" in the ".courses-per-page" "css_element"
|
And I should see "5" in the ".courses-per-page" "css_element"
|
||||||
And I should see "10" in the ".courses-per-page" "css_element"
|
And I should see "10" in the ".courses-per-page" "css_element"
|
||||||
@ -379,7 +379,7 @@ Feature: Course category management interface performs as expected
|
|||||||
And I should not see "Course 10"
|
And I should not see "Course 10"
|
||||||
And I should not see "Course 11"
|
And I should not see "Course 11"
|
||||||
And I should not see "Course 12"
|
And I should not see "Course 12"
|
||||||
And "#course-listing .listing-pagination" "css_element" should exists
|
And "#course-listing .listing-pagination" "css_element" should exist
|
||||||
And I should see "Showing courses 1 to 5 of 12 courses"
|
And I should see "Showing courses 1 to 5 of 12 courses"
|
||||||
And I should not see "First" in the "#course-listing .listing-pagination" "css_element"
|
And I should not see "First" in the "#course-listing .listing-pagination" "css_element"
|
||||||
And I should not see "Prev" in the "#course-listing .listing-pagination" "css_element"
|
And I should not see "Prev" in the "#course-listing .listing-pagination" "css_element"
|
||||||
@ -403,7 +403,7 @@ Feature: Course category management interface performs as expected
|
|||||||
And I should see course listing "Course 9" before "Course 10"
|
And I should see course listing "Course 9" before "Course 10"
|
||||||
And I should not see "Course 11"
|
And I should not see "Course 11"
|
||||||
And I should not see "Course 12"
|
And I should not see "Course 12"
|
||||||
And "#course-listing .listing-pagination" "css_element" should exists
|
And "#course-listing .listing-pagination" "css_element" should exist
|
||||||
And I should see "Showing courses 6 to 10 of 12 courses"
|
And I should see "Showing courses 6 to 10 of 12 courses"
|
||||||
And I should see "First" in the "#course-listing .listing-pagination" "css_element"
|
And I should see "First" in the "#course-listing .listing-pagination" "css_element"
|
||||||
And I should see "Prev" in the "#course-listing .listing-pagination" "css_element"
|
And I should see "Prev" in the "#course-listing .listing-pagination" "css_element"
|
||||||
@ -427,7 +427,7 @@ Feature: Course category management interface performs as expected
|
|||||||
And I should not see "Course 9" in the "#course-listing" "css_element"
|
And I should not see "Course 9" in the "#course-listing" "css_element"
|
||||||
And I should not see "Course 10" in the "#course-listing" "css_element"
|
And I should not see "Course 10" in the "#course-listing" "css_element"
|
||||||
And I should see course listing "Course 11" before "Course 12"
|
And I should see course listing "Course 11" before "Course 12"
|
||||||
And "#course-listing .listing-pagination" "css_element" should exists
|
And "#course-listing .listing-pagination" "css_element" should exist
|
||||||
And I should see "Showing courses 11 to 12 of 12 courses"
|
And I should see "Showing courses 11 to 12 of 12 courses"
|
||||||
And I should see "First" in the "#course-listing .listing-pagination" "css_element"
|
And I should see "First" in the "#course-listing .listing-pagination" "css_element"
|
||||||
And I should see "Prev" in the "#course-listing .listing-pagination" "css_element"
|
And I should see "Prev" in the "#course-listing .listing-pagination" "css_element"
|
||||||
@ -451,7 +451,7 @@ Feature: Course category management interface performs as expected
|
|||||||
And I should not see "Course 10" in the "#course-listing" "css_element"
|
And I should not see "Course 10" in the "#course-listing" "css_element"
|
||||||
And I should not see "Course 11" in the "#course-listing" "css_element"
|
And I should not see "Course 11" in the "#course-listing" "css_element"
|
||||||
And I should not see "Course 12" in the "#course-listing" "css_element"
|
And I should not see "Course 12" in the "#course-listing" "css_element"
|
||||||
And "#course-listing .listing-pagination" "css_element" should exists
|
And "#course-listing .listing-pagination" "css_element" should exist
|
||||||
And I should see "Showing courses 1 to 5 of 12 courses"
|
And I should see "Showing courses 1 to 5 of 12 courses"
|
||||||
And I should not see "First" in the "#course-listing .listing-pagination" "css_element"
|
And I should not see "First" in the "#course-listing .listing-pagination" "css_element"
|
||||||
And I should not see "Prev" in the "#course-listing .listing-pagination" "css_element"
|
And I should not see "Prev" in the "#course-listing .listing-pagination" "css_element"
|
||||||
@ -475,7 +475,7 @@ Feature: Course category management interface performs as expected
|
|||||||
And I should not see "Course 9" in the "#course-listing" "css_element"
|
And I should not see "Course 9" in the "#course-listing" "css_element"
|
||||||
And I should not see "Course 10" in the "#course-listing" "css_element"
|
And I should not see "Course 10" in the "#course-listing" "css_element"
|
||||||
And I should see course listing "Course 11" before "Course 12"
|
And I should see course listing "Course 11" before "Course 12"
|
||||||
And "#course-listing .listing-pagination" "css_element" should exists
|
And "#course-listing .listing-pagination" "css_element" should exist
|
||||||
And I should see "Showing courses 11 to 12 of 12 courses"
|
And I should see "Showing courses 11 to 12 of 12 courses"
|
||||||
And I should see "First" in the "#course-listing .listing-pagination" "css_element"
|
And I should see "First" in the "#course-listing .listing-pagination" "css_element"
|
||||||
And I should see "Prev" in the "#course-listing .listing-pagination" "css_element"
|
And I should see "Prev" in the "#course-listing .listing-pagination" "css_element"
|
||||||
@ -499,7 +499,7 @@ Feature: Course category management interface performs as expected
|
|||||||
And I should see course listing "Course 9" before "Course 10"
|
And I should see course listing "Course 9" before "Course 10"
|
||||||
And I should not see "Course 11"
|
And I should not see "Course 11"
|
||||||
And I should not see "Course 12"
|
And I should not see "Course 12"
|
||||||
And "#course-listing .listing-pagination" "css_element" should exists
|
And "#course-listing .listing-pagination" "css_element" should exist
|
||||||
And I should see "Showing courses 6 to 10 of 12 courses"
|
And I should see "Showing courses 6 to 10 of 12 courses"
|
||||||
And I should see "First" in the "#course-listing .listing-pagination" "css_element"
|
And I should see "First" in the "#course-listing .listing-pagination" "css_element"
|
||||||
And I should see "Prev" in the "#course-listing .listing-pagination" "css_element"
|
And I should see "Prev" in the "#course-listing .listing-pagination" "css_element"
|
||||||
@ -510,10 +510,10 @@ Feature: Course category management interface performs as expected
|
|||||||
And I should see "Last" in the "#course-listing .listing-pagination" "css_element"
|
And I should see "Last" in the "#course-listing .listing-pagination" "css_element"
|
||||||
|
|
||||||
Scenario: Test pagination is only shown when required
|
Scenario: Test pagination is only shown when required
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT1 | Course 1 | Course 1 | C1 |
|
| CAT1 | Course 1 | Course 1 | C1 |
|
||||||
| CAT1 | Course 2 | Course 2 | C2 |
|
| CAT1 | Course 2 | Course 2 | C2 |
|
||||||
@ -534,7 +534,7 @@ Feature: Course category management interface performs as expected
|
|||||||
And I should see course listing "Course 2" before "Course 3"
|
And I should see course listing "Course 2" before "Course 3"
|
||||||
And I should see course listing "Course 3" before "Course 4"
|
And I should see course listing "Course 3" before "Course 4"
|
||||||
And I should see course listing "Course 4" before "Course 5"
|
And I should see course listing "Course 4" before "Course 5"
|
||||||
And "#course-listing .listing-pagination" "css_element" should not exists
|
And "#course-listing .listing-pagination" "css_element" should not exist
|
||||||
And I click on "5" "link" in the ".course-listing-actions" "css_element"
|
And I click on "5" "link" in the ".course-listing-actions" "css_element"
|
||||||
# Redirect
|
# Redirect
|
||||||
And I should see "Per page: 5" in the ".course-listing-actions" "css_element"
|
And I should see "Per page: 5" in the ".course-listing-actions" "css_element"
|
||||||
@ -542,15 +542,15 @@ Feature: Course category management interface performs as expected
|
|||||||
And I should see course listing "Course 2" before "Course 3"
|
And I should see course listing "Course 2" before "Course 3"
|
||||||
And I should see course listing "Course 3" before "Course 4"
|
And I should see course listing "Course 3" before "Course 4"
|
||||||
And I should see course listing "Course 4" before "Course 5"
|
And I should see course listing "Course 4" before "Course 5"
|
||||||
And "#course-listing .listing-pagination" "css_element" should not exists
|
And "#course-listing .listing-pagination" "css_element" should not exist
|
||||||
|
|
||||||
# We need at least 30 courses for this next test.
|
# We need at least 30 courses for this next test.
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Test many course pagination
|
Scenario: Test many course pagination
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category 0| idnumber |
|
| name | category 0| idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT1 | Course 1 | Course 1 | C1 |
|
| CAT1 | Course 1 | Course 1 | C1 |
|
||||||
| CAT1 | Course 2 | Course 2 | C2 |
|
| CAT1 | Course 2 | Course 2 | C2 |
|
||||||
@ -609,7 +609,7 @@ Feature: Course category management interface performs as expected
|
|||||||
And I should see course listing "Course 19" before "Course 20"
|
And I should see course listing "Course 19" before "Course 20"
|
||||||
And I should see course listing "Course 21" before "Course 22"
|
And I should see course listing "Course 21" before "Course 22"
|
||||||
And I should see course listing "Course 31" before "Course 32"
|
And I should see course listing "Course 31" before "Course 32"
|
||||||
And "#course-listing .listing-pagination" "css_element" should not exists
|
And "#course-listing .listing-pagination" "css_element" should not exist
|
||||||
And I click on "Per page: 100" "link" in the ".course-listing-actions" "css_element"
|
And I click on "Per page: 100" "link" in the ".course-listing-actions" "css_element"
|
||||||
And I click on "5" "link" in the ".courses-per-page" "css_element"
|
And I click on "5" "link" in the ".courses-per-page" "css_element"
|
||||||
# Redirect.
|
# Redirect.
|
||||||
@ -672,10 +672,10 @@ Feature: Course category management interface performs as expected
|
|||||||
And I should see "Last" in the "#course-listing .listing-pagination" "css_element"
|
And I should see "Last" in the "#course-listing .listing-pagination" "css_element"
|
||||||
|
|
||||||
Scenario: Test clicking to edit a course.
|
Scenario: Test clicking to edit a course.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT1 | Course 1 | Course 1 | C1 |
|
| CAT1 | Course 1 | Course 1 | C1 |
|
||||||
|
|
||||||
@ -690,7 +690,7 @@ Feature: Course category management interface performs as expected
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Test AJAX expanded categories stay open.
|
Scenario: Test AJAX expanded categories stay open.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
| Cat 2 | 0 | CAT2 |
|
| Cat 2 | 0 | CAT2 |
|
||||||
@ -754,7 +754,7 @@ Feature: Course category management interface performs as expected
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Test category expansion after deletion
|
Scenario: Test category expansion after deletion
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat A (1) | 0 | CAT1 |
|
| Cat A (1) | 0 | CAT1 |
|
||||||
| Cat B (2) | 0 | CAT2 |
|
| Cat B (2) | 0 | CAT2 |
|
||||||
|
@ -6,10 +6,10 @@ Feature: We can change the visibility of courses in the management interface.
|
|||||||
|
|
||||||
# Test hiding and showing a course.
|
# Test hiding and showing a course.
|
||||||
Scenario: Test toggling course visibility through the management interfaces.
|
Scenario: Test toggling course visibility through the management interfaces.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT1 | Course 1 | Course 1 | C1 |
|
| CAT1 | Course 1 | Course 1 | C1 |
|
||||||
|
|
||||||
@ -53,10 +53,10 @@ Feature: We can change the visibility of courses in the management interface.
|
|||||||
# Test hiding and showing a course with JS, same as the above test.
|
# Test hiding and showing a course with JS, same as the above test.
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Test using AJAX to hide a course through the management interfaces.
|
Scenario: Test using AJAX to hide a course through the management interfaces.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT1 | Course 1 | Course 1 | C1 |
|
| CAT1 | Course 1 | Course 1 | C1 |
|
||||||
|
|
||||||
|
@ -17,13 +17,13 @@ Feature: Course activity controls works as expected
|
|||||||
|
|
||||||
@javascript @_cross_browser
|
@javascript @_cross_browser
|
||||||
Scenario Outline: General activities course controls using topics and weeks formats, and paged mode and not paged mode works as expected
|
Scenario Outline: General activities course controls using topics and weeks formats, and paged mode and not paged mode works as expected
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format | coursedisplay | numsections |
|
| fullname | shortname | format | coursedisplay | numsections |
|
||||||
| Course 1 | C1 | <courseformat> | <coursedisplay> | 5 |
|
| Course 1 | C1 | <courseformat> | <coursedisplay> | 5 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
@ -32,12 +32,12 @@ Feature: Course activity controls works as expected
|
|||||||
And I press "Turn editing on"
|
And I press "Turn editing on"
|
||||||
Then I should see "Turn editing off"
|
Then I should see "Turn editing off"
|
||||||
And I press "Turn editing off"
|
And I press "Turn editing off"
|
||||||
And "Turn editing on" "button" should exists
|
And "Turn editing on" "button" should exist
|
||||||
And I follow "Turn editing on"
|
And I follow "Turn editing on"
|
||||||
And "Turn editing off" "button" should exists
|
And "Turn editing off" "button" should exist
|
||||||
And I follow "Turn editing off"
|
And I follow "Turn editing off"
|
||||||
And I should see "Turn editing on"
|
And I should see "Turn editing on"
|
||||||
And "Turn editing on" "button" should exists
|
And "Turn editing on" "button" should exist
|
||||||
And I turn editing mode on
|
And I turn editing mode on
|
||||||
And I click on "Actions" "link" in the "Recent activity" "block"
|
And I click on "Actions" "link" in the "Recent activity" "block"
|
||||||
And I click on "Delete Recent activity block" "link"
|
And I click on "Delete Recent activity block" "link"
|
||||||
@ -98,13 +98,13 @@ Feature: Course activity controls works as expected
|
|||||||
| weeks | 1 | "Course 1" | should | should not |
|
| weeks | 1 | "Course 1" | should | should not |
|
||||||
|
|
||||||
Scenario Outline: General activities course controls using topics and weeks formats, and paged mode and not paged mode works as expected
|
Scenario Outline: General activities course controls using topics and weeks formats, and paged mode and not paged mode works as expected
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format | coursedisplay | numsections |
|
| fullname | shortname | format | coursedisplay | numsections |
|
||||||
| Course 1 | C1 | <courseformat> | <coursedisplay> | 5 |
|
| Course 1 | C1 | <courseformat> | <coursedisplay> | 5 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
@ -113,12 +113,12 @@ Feature: Course activity controls works as expected
|
|||||||
And I press "Turn editing on"
|
And I press "Turn editing on"
|
||||||
Then I should see "Turn editing off"
|
Then I should see "Turn editing off"
|
||||||
And I press "Turn editing off"
|
And I press "Turn editing off"
|
||||||
And "Turn editing on" "button" should exists
|
And "Turn editing on" "button" should exist
|
||||||
And I follow "Turn editing on"
|
And I follow "Turn editing on"
|
||||||
And "Turn editing off" "button" should exists
|
And "Turn editing off" "button" should exist
|
||||||
And I follow "Turn editing off"
|
And I follow "Turn editing off"
|
||||||
And I should see "Turn editing on"
|
And I should see "Turn editing on"
|
||||||
And "Turn editing on" "button" should exists
|
And "Turn editing on" "button" should exist
|
||||||
And I turn editing mode on
|
And I turn editing mode on
|
||||||
And I click on "Actions" "link" in the "Recent activity" "block"
|
And I click on "Actions" "link" in the "Recent activity" "block"
|
||||||
And I click on "Delete Recent activity block" "link"
|
And I click on "Delete Recent activity block" "link"
|
||||||
|
@ -6,10 +6,10 @@ Feature: Test we can resort course in the management interface.
|
|||||||
|
|
||||||
# Test resorting courses with
|
# Test resorting courses with
|
||||||
Scenario Outline: Resort courses.
|
Scenario Outline: Resort courses.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category 0| idnumber |
|
| name | category 0| idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber | sortorder |
|
| category | fullname | shortname | idnumber | sortorder |
|
||||||
| CAT1 | Social studies | Senior school | Ext003 | 1 |
|
| CAT1 | Social studies | Senior school | Ext003 | 1 |
|
||||||
| CAT1 | Applied sciences | Middle school | Sci001 | 2 |
|
| CAT1 | Applied sciences | Middle school | Sci001 | 2 |
|
||||||
@ -39,10 +39,10 @@ Feature: Test we can resort course in the management interface.
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario Outline: Resort courses with JavaScript enabled.
|
Scenario Outline: Resort courses with JavaScript enabled.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category 0| idnumber |
|
| name | category 0| idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber | sortorder |
|
| category | fullname | shortname | idnumber | sortorder |
|
||||||
| CAT1 | Social studies | Senior school | Ext003 | 1 |
|
| CAT1 | Social studies | Senior school | Ext003 | 1 |
|
||||||
| CAT1 | Applied sciences | Middle school | Sci001 | 2 |
|
| CAT1 | Applied sciences | Middle school | Sci001 | 2 |
|
||||||
@ -75,10 +75,10 @@ Feature: Test we can resort course in the management interface.
|
|||||||
| "By idnumber" | "Extended social studies" | "Social studies" | "Applied sciences" |
|
| "By idnumber" | "Extended social studies" | "Social studies" | "Applied sciences" |
|
||||||
|
|
||||||
Scenario: Test moving courses up and down by one.
|
Scenario: Test moving courses up and down by one.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT1 | Course 1 | Course 1 | C1 |
|
| CAT1 | Course 1 | Course 1 | C1 |
|
||||||
| CAT1 | Course 2 | Course 2 | C2 |
|
| CAT1 | Course 2 | Course 2 | C2 |
|
||||||
@ -112,10 +112,10 @@ Feature: Test we can resort course in the management interface.
|
|||||||
# Like the above test but with JavaScript enabled.
|
# Like the above test but with JavaScript enabled.
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Test using AJAX to move courses up and down by one.
|
Scenario: Test using AJAX to move courses up and down by one.
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT1 | Course 1 | Course 1 | C1 |
|
| CAT1 | Course 1 | Course 1 | C1 |
|
||||||
| CAT1 | Course 2 | Course 2 | C2 |
|
| CAT1 | Course 2 | Course 2 | C2 |
|
||||||
|
@ -5,7 +5,7 @@ Feature: Test we can both create and delete a course.
|
|||||||
I need to test I can delete a course
|
I need to test I can delete a course
|
||||||
|
|
||||||
Scenario: Create a course
|
Scenario: Create a course
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category 0| idnumber |
|
| name | category 0| idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
|
|
||||||
@ -34,10 +34,10 @@ Feature: Test we can both create and delete a course.
|
|||||||
And I should see "Test course: create a course" in the "#course-listing" "css_element"
|
And I should see "Test course: create a course" in the "#course-listing" "css_element"
|
||||||
|
|
||||||
Scenario: Delete a course via its management listing
|
Scenario: Delete a course via its management listing
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category 0| idnumber |
|
| name | category 0| idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT1 | Test course: create a course | TCCAC | TC3401 |
|
| CAT1 | Test course: create a course | TCCAC | TC3401 |
|
||||||
| CAT1 | Test course 2: create another course | TC2CAC | TC3402 |
|
| CAT1 | Test course 2: create another course | TC2CAC | TC3402 |
|
||||||
@ -66,10 +66,10 @@ Feature: Test we can both create and delete a course.
|
|||||||
And I should see "Test course 2: create another course" in the "#course-listing" "css_element"
|
And I should see "Test course 2: create another course" in the "#course-listing" "css_element"
|
||||||
|
|
||||||
Scenario: Delete a course via its management details page
|
Scenario: Delete a course via its management details page
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category 0| idnumber |
|
| name | category 0| idnumber |
|
||||||
| Cat 1 | 0 | CAT1 |
|
| Cat 1 | 0 | CAT1 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| category | fullname | shortname | idnumber |
|
| category | fullname | shortname | idnumber |
|
||||||
| CAT1 | Test course: create a course | TCCAC | TC3401 |
|
| CAT1 | Test course: create a course | TCCAC | TC3401 |
|
||||||
| CAT1 | Test course 2: create another course | TC2CAC | TC3402 |
|
| CAT1 | Test course 2: create another course | TC2CAC | TC3402 |
|
||||||
|
@ -6,13 +6,13 @@ Feature: Edit course settings
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Edit course settings
|
Scenario: Edit course settings
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | summary | format |
|
| fullname | shortname | summary | format |
|
||||||
| Course 1 | C1 | <p>Course summary</p> | topics |
|
| Course 1 | C1 | <p>Course summary</p> | topics |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
|
@ -5,13 +5,13 @@ Feature: Force group mode in a course
|
|||||||
I need to force the group mode of all course's activities
|
I need to force the group mode of all course's activities
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
@ -28,8 +28,8 @@ Feature: Force group mode in a course
|
|||||||
| Group mode | Separate groups |
|
| Group mode | Separate groups |
|
||||||
| Force group mode | Yes |
|
| Force group mode | Yes |
|
||||||
When I press "Save changes"
|
When I press "Save changes"
|
||||||
Then "//a/child::img[contains(@alt, 'Separate groups (forced mode)')]" "xpath_element" should not exists
|
Then "//a/child::img[contains(@alt, 'Separate groups (forced mode)')]" "xpath_element" should not exist
|
||||||
And "//img[contains(@alt, 'Separate groups (forced mode)')]" "xpath_element" should not exists
|
And "//img[contains(@alt, 'Separate groups (forced mode)')]" "xpath_element" should not exist
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Forced group mode using visible groups
|
Scenario: Forced group mode using visible groups
|
||||||
@ -37,8 +37,8 @@ Feature: Force group mode in a course
|
|||||||
| Group mode | Visible groups |
|
| Group mode | Visible groups |
|
||||||
| Force group mode | Yes |
|
| Force group mode | Yes |
|
||||||
And I press "Save changes"
|
And I press "Save changes"
|
||||||
Then "//a/child::img[contains(@alt, 'Visible groups (forced mode)')]" "xpath_element" should not exists
|
Then "//a/child::img[contains(@alt, 'Visible groups (forced mode)')]" "xpath_element" should not exist
|
||||||
And "//img[contains(@alt, 'Visible groups (forced mode)')]" "xpath_element" should not exists
|
And "//img[contains(@alt, 'Visible groups (forced mode)')]" "xpath_element" should not exist
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Forced group mode without groups
|
Scenario: Forced group mode without groups
|
||||||
@ -46,6 +46,6 @@ Feature: Force group mode in a course
|
|||||||
| Group mode | No groups |
|
| Group mode | No groups |
|
||||||
| Force group mode | Yes |
|
| Force group mode | Yes |
|
||||||
And I press "Save changes"
|
And I press "Save changes"
|
||||||
Then "//a/child::img[contains(@alt, 'No groups (forced mode)')]" "xpath_element" should not exists
|
Then "//a/child::img[contains(@alt, 'No groups (forced mode)')]" "xpath_element" should not exist
|
||||||
And "//img[contains(@alt, 'No groups (forced mode)')]" "xpath_element" should not exists
|
And "//img[contains(@alt, 'No groups (forced mode)')]" "xpath_element" should not exist
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ Feature: Front page displays items in different modes
|
|||||||
I need to set different frontpage display modes
|
I need to set different frontpage display modes
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "categories" exists:
|
Given the following "categories" exist:
|
||||||
| name | category | idnumber |
|
| name | category | idnumber |
|
||||||
| Category 1 | 0 | CAT1 |
|
| Category 1 | 0 | CAT1 |
|
||||||
| Category 2 | 0 | CAT2 |
|
| Category 2 | 0 | CAT2 |
|
||||||
@ -13,7 +13,7 @@ Feature: Front page displays items in different modes
|
|||||||
| Category 2 child | CAT2 | CAT21 |
|
| Category 2 child | CAT2 | CAT21 |
|
||||||
| Category 1 child child | CAT11 | CAT111 |
|
| Category 1 child child | CAT11 | CAT111 |
|
||||||
| Category 3 | 0 | CAT3 |
|
| Category 3 | 0 | CAT3 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 1 | COURSE1_1 | CAT1 |
|
| Course 1 1 | COURSE1_1 | CAT1 |
|
||||||
| Course 2 1 | COURSE2_1 | CAT2 |
|
| Course 2 1 | COURSE2_1 | CAT2 |
|
||||||
|
@ -5,10 +5,10 @@ Feature: The maximum number of weeks/topics in a course can be configured
|
|||||||
I need to limit the number of weeks/topics a course can have
|
I need to limit the number of weeks/topics a course can have
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| manager1 | Manager | 1 | manager1@asd.com |
|
| manager1 | Manager | 1 | manager1@asd.com |
|
||||||
And the following "system role assigns" exists:
|
And the following "system role assigns" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| manager1 | Acceptance test site | manager |
|
| manager1 | Acceptance test site | manager |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
|
@ -5,13 +5,13 @@ Feature: Activities can be moved between sections
|
|||||||
I need to move activities between sections
|
I need to move activities between sections
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format | coursedisplay | numsections |
|
| fullname | shortname | format | coursedisplay | numsections |
|
||||||
| Course 1 | C1 | topics | 0 | 5 |
|
| Course 1 | C1 | topics | 0 | 5 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
|
@ -5,13 +5,13 @@ Feature: Sections can be moved
|
|||||||
I need to move sections up and down
|
I need to move sections up and down
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format | coursedisplay | numsections |
|
| fullname | shortname | format | coursedisplay | numsections |
|
||||||
| Course 1 | C1 | topics | 0 | 5 |
|
| Course 1 | C1 | topics | 0 | 5 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
@ -49,7 +49,7 @@ Feature: Sections can be moved
|
|||||||
| Forum name | Test forum name |
|
| Forum name | Test forum name |
|
||||||
| Description | Test forum description |
|
| Description | Test forum description |
|
||||||
When I follow "Topic 2"
|
When I follow "Topic 2"
|
||||||
Then "#section-1" "css_element" should not exists
|
Then "#section-1" "css_element" should not exist
|
||||||
And "#section-3" "css_element" should not exists
|
And "#section-3" "css_element" should not exist
|
||||||
And "Move down" "link" should not exists
|
And "Move down" "link" should not exist
|
||||||
And "Move up" "link" should not exists
|
And "Move up" "link" should not exist
|
||||||
|
@ -6,7 +6,7 @@ Feature: Course paged mode
|
|||||||
|
|
||||||
@javascript @_cross_browser
|
@javascript @_cross_browser
|
||||||
Scenario Outline: Weekly and topics course formats with Javascript enabled
|
Scenario Outline: Weekly and topics course formats with Javascript enabled
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category | format | coursedisplay | numsections |
|
| fullname | shortname | category | format | coursedisplay | numsections |
|
||||||
| Course 1 | C1 | 0 | <courseformat> | 1 | 3 |
|
| Course 1 | C1 | 0 | <courseformat> | 1 | 3 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
@ -39,7 +39,7 @@ Feature: Course paged mode
|
|||||||
| weeks | "1 January - 7 January" | "8 January - 14 January" | "15 January - 21 January" | "25 December - 31 December" | "22 January - 28 January" |
|
| weeks | "1 January - 7 January" | "8 January - 14 January" | "15 January - 21 January" | "25 December - 31 December" | "22 January - 28 January" |
|
||||||
|
|
||||||
Scenario Outline: Weekly and topics course formats with Javascript disabled
|
Scenario Outline: Weekly and topics course formats with Javascript disabled
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category | format | coursedisplay | numsections |
|
| fullname | shortname | category | format | coursedisplay | numsections |
|
||||||
| Course 1 | C1 | 0 | <courseformat> | 1 | 3 |
|
| Course 1 | C1 | 0 | <courseformat> | 1 | 3 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
|
@ -6,15 +6,15 @@ Feature: Rename roles within a course
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Rename roles within a course
|
Scenario: Rename roles within a course
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| teacher2 | Teacher | 2 | teacher2@asd.com |
|
| teacher2 | Teacher | 2 | teacher2@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | topics |
|
| Course 1 | C1 | topics |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| teacher2 | C1 | teacher |
|
| teacher2 | C1 | teacher |
|
||||||
|
@ -5,13 +5,13 @@ Feature: Restrict activities availability
|
|||||||
I need to control which activities can be used in courses
|
I need to control which activities can be used in courses
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category | format |
|
| fullname | shortname | category | format |
|
||||||
| Course 1 | C1 | 0 | topics |
|
| Course 1 | C1 | 0 | topics |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
|
|
||||||
|
@ -6,14 +6,14 @@ Feature: Topic's course sections highlighting
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario Outline: Highlight a topic's course section with course paged mode and without it
|
Scenario Outline: Highlight a topic's course section with course paged mode and without it
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format | coursedisplay |
|
| fullname | shortname | format | coursedisplay |
|
||||||
| Course 1 | C1 | topics | <coursedisplay> |
|
| Course 1 | C1 | topics | <coursedisplay> |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -6,14 +6,14 @@ Feature: Show/hide course sections
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Show / hide section icon functions correctly
|
Scenario: Show / hide section icon functions correctly
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | topics |
|
| Course 1 | C1 | topics |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -5,14 +5,14 @@ Feature: Guest users can auto-enrol themself in courses where guest access is al
|
|||||||
I need to access courses as a guest
|
I need to access courses as a guest
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | topics |
|
| Course 1 | C1 | topics |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
|
@ -5,14 +5,14 @@ Feature: Users can auto-enrol themself in courses where self enrolment is allowe
|
|||||||
I need to auto enrol me in courses
|
I need to auto enrol me in courses
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | topics |
|
| Course 1 | C1 | topics |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Feature: Course files
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Add legacy files
|
Scenario: Add legacy files
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category | legacyfiles |
|
| fullname | shortname | category | legacyfiles |
|
||||||
| Course 1 | C1 | 0 | 2 |
|
| Course 1 | C1 | 0 | 2 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
@ -23,7 +23,7 @@ Feature: Course files
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Add legacy file disabled
|
Scenario: Add legacy file disabled
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category | legacyfiles |
|
| fullname | shortname | category | legacyfiles |
|
||||||
| Course 1 | C1 | 0 | 2 |
|
| Course 1 | C1 | 0 | 2 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
|
@ -5,14 +5,14 @@ Feature: Rubrics can be created and edited
|
|||||||
I need to edit previously used rubrics
|
I need to edit previously used rubrics
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | topics |
|
| Course 1 | C1 | topics |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
@ -84,7 +84,7 @@ Feature: Rubrics can be created and edited
|
|||||||
And I follow "Course 1"
|
And I follow "Course 1"
|
||||||
# Editing a rubric definition without regrading students.
|
# Editing a rubric definition without regrading students.
|
||||||
And I go to "Test assignment 1 name" advanced grading definition page
|
And I go to "Test assignment 1 name" advanced grading definition page
|
||||||
And "Save as draft" "button" should not exists
|
And "Save as draft" "button" should not exist
|
||||||
And I click on "Move up" "button" in the "Criterion 1" "table_row"
|
And I click on "Move up" "button" in the "Criterion 1" "table_row"
|
||||||
And I replace "Level 11" rubric level with "Level 11 edited" in "Criterion 1" criterion
|
And I replace "Level 11" rubric level with "Level 11 edited" in "Criterion 1" criterion
|
||||||
And I press "Save"
|
And I press "Save"
|
||||||
|
@ -5,21 +5,21 @@ Feature: Publish rubrics as templates
|
|||||||
I need to publish rubrics and make them available to all teachers
|
I need to publish rubrics and make them available to all teachers
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| manager1 | Manager | 1 | manager1@asd.com |
|
| manager1 | Manager | 1 | manager1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | topics |
|
| Course 1 | C1 | topics |
|
||||||
And the following "activities" exists:
|
And the following "activities" exist:
|
||||||
| activity | course | idnumber | name | intro | advancedgradingmethod_submissions |
|
| activity | course | idnumber | name | intro | advancedgradingmethod_submissions |
|
||||||
| assign | C1 | A1 | Test assignment 1 name | TA1 | rubric |
|
| assign | C1 | A1 | Test assignment 1 name | TA1 | rubric |
|
||||||
| assign | C1 | A2 | Test assignment 2 name | TA2 | rubric |
|
| assign | C1 | A2 | Test assignment 2 name | TA2 | rubric |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And the following "system role assigns" exists:
|
And the following "system role assigns" exist:
|
||||||
| user | role | contextlevel | reference |
|
| user | role | contextlevel | reference |
|
||||||
| manager1 | manager | System | |
|
| manager1 | manager | System | |
|
||||||
And I log in as "manager1"
|
And I log in as "manager1"
|
||||||
@ -52,5 +52,5 @@ Feature: Publish rubrics as templates
|
|||||||
Scenario: Create a rubric template and reuse it as a teacher, with Javascript disabled
|
Scenario: Create a rubric template and reuse it as a teacher, with Javascript disabled
|
||||||
Then the field "Description" matches value "Assignment 1 description"
|
Then the field "Description" matches value "Assignment 1 description"
|
||||||
# Trying to avoid pointing by id or name as the code internals may change.
|
# Trying to avoid pointing by id or name as the code internals may change.
|
||||||
And "//table[@class='criteria']//textarea[text()='Criterion 1']" "xpath_element" should exists
|
And "//table[@class='criteria']//textarea[text()='Criterion 1']" "xpath_element" should exist
|
||||||
And I press "Cancel"
|
And I press "Cancel"
|
||||||
|
@ -5,13 +5,13 @@ Feature: Reuse my rubrics in other activities
|
|||||||
I need to reuse rubrics that I created previously
|
I need to reuse rubrics that I created previously
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | topics |
|
| Course 1 | C1 | topics |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
|
@ -6,14 +6,14 @@ Feature: We can enter in grades and view reports from the gradebook
|
|||||||
I need to enable grade weightings and check that they are displayed correctly.
|
I need to enable grade weightings and check that they are displayed correctly.
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | topics |
|
| Course 1 | C1 | topics |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -5,10 +5,10 @@ Feature: Automatic creation of groups
|
|||||||
I need to create groups automatically and allocate them in groupings if necessary
|
I need to create groups automatically and allocate them in groupings if necessary
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student0 | Student | 0 | student0@asd.com |
|
| student0 | Student | 0 | student0@asd.com |
|
||||||
@ -21,7 +21,7 @@ Feature: Automatic creation of groups
|
|||||||
| student7 | Student | 7 | student7@asd.com |
|
| student7 | Student | 7 | student7@asd.com |
|
||||||
| student8 | Student | 8 | student8@asd.com |
|
| student8 | Student | 8 | student8@asd.com |
|
||||||
| student9 | Student | 9 | student9@asd.com |
|
| student9 | Student | 9 | student9@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student0 | C1 | student |
|
| student0 | C1 | student |
|
||||||
|
@ -6,17 +6,17 @@ Feature: Organize students into groups
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Assign students to groups
|
Scenario: Assign students to groups
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category | groupmode |
|
| fullname | shortname | category | groupmode |
|
||||||
| Course 1 | C1 | 0 | 1 |
|
| Course 1 | C1 | 0 | 1 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student0 | Student | 0 | student0@asd.com |
|
| student0 | Student | 0 | student0@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
| student2 | Student | 2 | student2@asd.com |
|
| student2 | Student | 2 | student2@asd.com |
|
||||||
| student3 | Student | 3 | student3@asd.com |
|
| student3 | Student | 3 | student3@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student0 | C1 | student |
|
| student0 | C1 | student |
|
||||||
@ -59,13 +59,13 @@ Feature: Organize students into groups
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Create groups and groupings without the 'moodle/course:changeidnumber' capability
|
Scenario: Create groups and groupings without the 'moodle/course:changeidnumber' capability
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category | groupmode |
|
| fullname | shortname | category | groupmode |
|
||||||
| Course 1 | C1 | 0 | 1 |
|
| Course 1 | C1 | 0 | 1 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
|
@ -5,13 +5,13 @@ Feature: Automatic deletion of groups and groupings
|
|||||||
I need to create groups and groupings under different scenarios and check that the expected result occurs when attempting to delete them.
|
I need to create groups and groupings under different scenarios and check that the expected result occurs when attempting to delete them.
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | topics |
|
| Course 1 | C1 | topics |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
|
@ -5,13 +5,13 @@ Feature: Importing of groups and groupings
|
|||||||
I need to upload a file and verify groups and groupings can be imported
|
I need to upload a file and verify groups and groupings can be imported
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
|
|
||||||
|
@ -5,13 +5,13 @@ Feature: Uniqueness of Group ID number
|
|||||||
I need to create groups with unique identificators
|
I need to create groups with unique identificators
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
|
@ -5,13 +5,13 @@ Feature: Automatic updating of groups and groupings
|
|||||||
I need to create groups and groupings under different scenarios and check that the expected result occurs when attempting to update them.
|
I need to create groups and groupings under different scenarios and check that the expected result occurs when attempting to update them.
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | topics |
|
| Course 1 | C1 | topics |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
|
@ -5,7 +5,7 @@ Feature: Add or remove items from the TinyMCE editor toolbar
|
|||||||
I need to add and remove items from the toolbar
|
I need to add and remove items from the toolbar
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
@ -18,8 +18,8 @@ Feature: Add or remove items from the TinyMCE editor toolbar
|
|||||||
And I follow "Course 1"
|
And I follow "Course 1"
|
||||||
And I turn editing mode on
|
And I turn editing mode on
|
||||||
And I add a "Database" to section "1"
|
And I add a "Database" to section "1"
|
||||||
Then "#id_introeditor_tbl .mce_bold" "css_element" should not exists
|
Then "#id_introeditor_tbl .mce_bold" "css_element" should not exist
|
||||||
And "#id_introeditor_tbl .mce_fullscreen" "css_element" should exists
|
And "#id_introeditor_tbl .mce_fullscreen" "css_element" should exist
|
||||||
And I press "Cancel"
|
And I press "Cancel"
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
@ -30,14 +30,14 @@ Feature: Add or remove items from the TinyMCE editor toolbar
|
|||||||
And I follow "Course 1"
|
And I follow "Course 1"
|
||||||
And I turn editing mode on
|
And I turn editing mode on
|
||||||
And I add a "Database" to section "1"
|
And I add a "Database" to section "1"
|
||||||
Then "#id_introeditor_tbl .mce_bold" "css_element" should not exists
|
Then "#id_introeditor_tbl .mce_bold" "css_element" should not exist
|
||||||
And "#id_introeditor_tbl .mce_anchor" "css_element" should exists
|
And "#id_introeditor_tbl .mce_anchor" "css_element" should exist
|
||||||
And I set the following administration settings values:
|
And I set the following administration settings values:
|
||||||
| Editor toolbar | fontselect,fontsizeselect,formatselect,\|,undo,redo,\|,search,replace,\|,fullscreen |
|
| Editor toolbar | fontselect,fontsizeselect,formatselect,\|,undo,redo,\|,search,replace,\|,fullscreen |
|
||||||
And I am on homepage
|
And I am on homepage
|
||||||
And I follow "Course 1"
|
And I follow "Course 1"
|
||||||
And I add a "Database" to section "1"
|
And I add a "Database" to section "1"
|
||||||
And "#id_introeditor_tbl .mce_anchor" "css_element" should not exists
|
And "#id_introeditor_tbl .mce_anchor" "css_element" should not exist
|
||||||
And I press "Cancel"
|
And I press "Cancel"
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
@ -46,6 +46,6 @@ Feature: Add or remove items from the TinyMCE editor toolbar
|
|||||||
And I turn editing mode on
|
And I turn editing mode on
|
||||||
When I add a "Database" to section "1"
|
When I add a "Database" to section "1"
|
||||||
And I wait until "#id_introeditor_tbl" "css_element" exists
|
And I wait until "#id_introeditor_tbl" "css_element" exists
|
||||||
Then "#id_introeditor_tbl .mce_bold" "css_element" should exists
|
Then "#id_introeditor_tbl .mce_bold" "css_element" should exist
|
||||||
And "#id_introeditor_tbl .mce_anchor" "css_element" should not exists
|
And "#id_introeditor_tbl .mce_anchor" "css_element" should not exist
|
||||||
And I press "Cancel"
|
And I press "Cancel"
|
||||||
|
@ -878,7 +878,7 @@ class behat_general extends behat_base {
|
|||||||
list($selector, $locator) = $this->transform_selector($selectortype, $element);
|
list($selector, $locator) = $this->transform_selector($selectortype, $element);
|
||||||
|
|
||||||
// Will throw an ElementNotFoundException if it does not exist, but, actually
|
// Will throw an ElementNotFoundException if it does not exist, but, actually
|
||||||
// it should not exists, so we try & catch it.
|
// it should not exist, so we try & catch it.
|
||||||
try {
|
try {
|
||||||
// Would be better to use a 1 second sleep because the element should not be there,
|
// Would be better to use a 1 second sleep because the element should not be there,
|
||||||
// but we would need to duplicate the whole find_all() logic to do it, the benefit of
|
// but we would need to duplicate the whole find_all() logic to do it, the benefit of
|
||||||
|
@ -6,7 +6,7 @@ Feature: Block users from contacting me
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Block users from contacting me with Javascript enabled
|
Scenario: Block users from contacting me with Javascript enabled
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| user1 | User | One | one@asd.com |
|
| user1 | User | One | one@asd.com |
|
||||||
| user2 | User | Two | two@asd.com |
|
| user2 | User | Two | two@asd.com |
|
||||||
|
@ -5,7 +5,7 @@ Feature: Message history displays correctly
|
|||||||
I need to view the conversation with another user
|
I need to view the conversation with another user
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| user1 | User | One | one@asd.com |
|
| user1 | User | One | one@asd.com |
|
||||||
| user2 | User | Two | two@asd.com |
|
| user2 | User | Two | two@asd.com |
|
||||||
|
@ -5,7 +5,7 @@ Feature: Manage contacts
|
|||||||
I need to add and remove users to/from my contacts list
|
I need to add and remove users to/from my contacts list
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| user1 | User | One | one@asd.com |
|
| user1 | User | One | one@asd.com |
|
||||||
| user2 | User | Two | two@asd.com |
|
| user2 | User | Two | two@asd.com |
|
||||||
|
@ -6,16 +6,16 @@ Feature: An user can message course participants
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: An user can message multiple course participants including him/her self
|
Scenario: An user can message multiple course participants including him/her self
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
| student2 | Student | 2 | student2@asd.com |
|
| student2 | Student | 2 | student2@asd.com |
|
||||||
| student3 | Student | 3 | student3@asd.com |
|
| student3 | Student | 3 | student3@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | format |
|
| fullname | shortname | format |
|
||||||
| Course 1 | C1 | topics |
|
| Course 1 | C1 | topics |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -5,7 +5,7 @@ Feature: Users can search their message history
|
|||||||
I need to search in my messages history
|
I need to search in my messages history
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| user1 | User | One | one@asd.com |
|
| user1 | User | One | one@asd.com |
|
||||||
| user2 | User | Two | two@asd.com |
|
| user2 | User | Two | two@asd.com |
|
||||||
|
@ -6,14 +6,14 @@ Feature: In an assignment, students start a new attempt based on their previous
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Submit a text online and edit the submission
|
Scenario: Submit a text online and edit the submission
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category | groupmode |
|
| fullname | shortname | category | groupmode |
|
||||||
| Course 1 | C1 | 0 | 1 |
|
| Course 1 | C1 | 0 | 1 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -6,14 +6,14 @@ Feature: In an assignment, teachers can edit a students submission inline
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Submit a text online and edit the submission
|
Scenario: Submit a text online and edit the submission
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category | groupmode |
|
| fullname | shortname | category | groupmode |
|
||||||
| Course 1 | C1 | 0 | 1 |
|
| Course 1 | C1 | 0 | 1 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -6,15 +6,15 @@ Feature: In an assignment, teachers can edit feedback for a students previous su
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Edit feedback for a students previous attempt.
|
Scenario: Edit feedback for a students previous attempt.
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category | groupmode |
|
| fullname | shortname | category | groupmode |
|
||||||
| Course 1 | C1 | 0 | 1 |
|
| Course 1 | C1 | 0 | 1 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
| student2 | Student | 2 | student2@asd.com |
|
| student2 | Student | 2 | student2@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -6,14 +6,14 @@ Feature: In an assignment, students can upload files for assessment
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Submit a file and update the submission with another file
|
Scenario: Submit a file and update the submission with another file
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category | groupmode |
|
| fullname | shortname | category | groupmode |
|
||||||
| Course 1 | C1 | 0 | 1 |
|
| Course 1 | C1 | 0 | 1 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -6,24 +6,24 @@ Feature: Group assignment submissions
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Switch between group modes
|
Scenario: Switch between group modes
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category | groupmode |
|
| fullname | shortname | category | groupmode |
|
||||||
| Course 1 | C1 | 0 | 1 |
|
| Course 1 | C1 | 0 | 1 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student0 | Student | 0 | student0@asd.com |
|
| student0 | Student | 0 | student0@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
| student2 | Student | 2 | student2@asd.com |
|
| student2 | Student | 2 | student2@asd.com |
|
||||||
| student3 | Student | 3 | student3@asd.com |
|
| student3 | Student | 3 | student3@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student0 | C1 | student |
|
| student0 | C1 | student |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
| student2 | C1 | student |
|
| student2 | C1 | student |
|
||||||
| student3 | C1 | student |
|
| student3 | C1 | student |
|
||||||
And the following "groups" exists:
|
And the following "groups" exist:
|
||||||
| name | course | idnumber |
|
| name | course | idnumber |
|
||||||
| Group 1 | C1 | G1 |
|
| Group 1 | C1 | G1 |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
@ -36,10 +36,10 @@ Feature: Group assignment submissions
|
|||||||
| Group mode | No groups |
|
| Group mode | No groups |
|
||||||
And I follow "Test assignment name"
|
And I follow "Test assignment name"
|
||||||
When I follow "View/grade all submissions"
|
When I follow "View/grade all submissions"
|
||||||
Then "//tr[contains(., 'Student 0')][contains(., 'Default group')]" "xpath_element" should exists
|
Then "//tr[contains(., 'Student 0')][contains(., 'Default group')]" "xpath_element" should exist
|
||||||
And "//tr[contains(., 'Student 1')][contains(., 'Default group')]" "xpath_element" should exists
|
And "//tr[contains(., 'Student 1')][contains(., 'Default group')]" "xpath_element" should exist
|
||||||
And "//tr[contains(., 'Student 2')][contains(., 'Default group')]" "xpath_element" should exists
|
And "//tr[contains(., 'Student 2')][contains(., 'Default group')]" "xpath_element" should exist
|
||||||
And "//tr[contains(., 'Student 3')][contains(., 'Default group')]" "xpath_element" should exists
|
And "//tr[contains(., 'Student 3')][contains(., 'Default group')]" "xpath_element" should exist
|
||||||
And I follow "Edit settings"
|
And I follow "Edit settings"
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
| Group mode | Separate groups |
|
| Group mode | Separate groups |
|
||||||
@ -55,11 +55,11 @@ Feature: Group assignment submissions
|
|||||||
And I follow "Course 1"
|
And I follow "Course 1"
|
||||||
And I follow "Test assignment name"
|
And I follow "Test assignment name"
|
||||||
And I follow "View/grade all submissions"
|
And I follow "View/grade all submissions"
|
||||||
And "//tr[contains(., 'Student 0')][contains(., 'Group 1')]" "xpath_element" should exists
|
And "//tr[contains(., 'Student 0')][contains(., 'Group 1')]" "xpath_element" should exist
|
||||||
And "//tr[contains(., 'Student 1')][contains(., 'Group 1')]" "xpath_element" should exists
|
And "//tr[contains(., 'Student 1')][contains(., 'Group 1')]" "xpath_element" should exist
|
||||||
And I should not see "Student 2"
|
And I should not see "Student 2"
|
||||||
And I set the field "Separate groups" to "All participants"
|
And I set the field "Separate groups" to "All participants"
|
||||||
And "//tr[contains(., 'Student 0')][contains(., 'Group 1')]" "xpath_element" should exists
|
And "//tr[contains(., 'Student 0')][contains(., 'Group 1')]" "xpath_element" should exist
|
||||||
And "//tr[contains(., 'Student 1')][contains(., 'Group 1')]" "xpath_element" should exists
|
And "//tr[contains(., 'Student 1')][contains(., 'Group 1')]" "xpath_element" should exist
|
||||||
And "//tr[contains(., 'Student 2')][contains(., 'Default group')]" "xpath_element" should exists
|
And "//tr[contains(., 'Student 2')][contains(., 'Default group')]" "xpath_element" should exist
|
||||||
And "//tr[contains(., 'Student 3')][contains(., 'Default group')]" "xpath_element" should exists
|
And "//tr[contains(., 'Student 3')][contains(., 'Default group')]" "xpath_element" should exist
|
||||||
|
@ -6,14 +6,14 @@ Feature: In an assignment, students can add and edit text online
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Submit a text online and edit the submission
|
Scenario: Submit a text online and edit the submission
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category | groupmode |
|
| fullname | shortname | category | groupmode |
|
||||||
| Course 1 | C1 | 0 | 1 |
|
| Course 1 | C1 | 0 | 1 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -6,14 +6,14 @@ Feature: Prevent or allow assignment submission changes
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Preventing changes and allowing them again
|
Scenario: Preventing changes and allowing them again
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category | groupmode |
|
| fullname | shortname | category | groupmode |
|
||||||
| Course 1 | C1 | 0 | 1 |
|
| Course 1 | C1 | 0 | 1 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
@ -49,7 +49,7 @@ Feature: Prevent or allow assignment submission changes
|
|||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I follow "Course 1"
|
And I follow "Course 1"
|
||||||
And I follow "Test assignment name"
|
And I follow "Test assignment name"
|
||||||
And "Edit submission" "button" should not exists
|
And "Edit submission" "button" should not exist
|
||||||
And I should see "This assignment is not accepting submissions"
|
And I should see "This assignment is not accepting submissions"
|
||||||
And I log out
|
And I log out
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
|
@ -6,15 +6,15 @@ Feature: In an assignment, teachers grade multiple students on one page
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Grade multiple students on one page
|
Scenario: Grade multiple students on one page
|
||||||
Given the following "courses" exists:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category | groupmode |
|
| fullname | shortname | category | groupmode |
|
||||||
| Course 1 | C1 | 0 | 1 |
|
| Course 1 | C1 | 0 | 1 |
|
||||||
And the following "users" exists:
|
And the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
| student2 | Student | 2 | student2@asd.com |
|
| student2 | Student | 2 | student2@asd.com |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -6,14 +6,14 @@ Feature: Add choice activity
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Add a choice activity and complete the activity as a student
|
Scenario: Add a choice activity and complete the activity as a student
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -6,14 +6,14 @@ Feature: Teacher can choose whether to allow students to change their choice res
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Add a choice activity and complete the activity as a student
|
Scenario: Add a choice activity and complete the activity as a student
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
@ -32,7 +32,7 @@ Feature: Teacher can choose whether to allow students to change their choice res
|
|||||||
And I choose "Option 1" from "Choice name" choice activity
|
And I choose "Option 1" from "Choice name" choice activity
|
||||||
Then I should see "Your selection: Option 1"
|
Then I should see "Your selection: Option 1"
|
||||||
And I should see "Your choice has been saved"
|
And I should see "Your choice has been saved"
|
||||||
And "Save my choice" "button" should not exists
|
And "Save my choice" "button" should not exist
|
||||||
And I log out
|
And I log out
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
And I follow "Course 1"
|
And I follow "Course 1"
|
||||||
@ -46,8 +46,8 @@ Feature: Teacher can choose whether to allow students to change their choice res
|
|||||||
And I follow "Course 1"
|
And I follow "Course 1"
|
||||||
And I follow "Choice name"
|
And I follow "Choice name"
|
||||||
And I should see "Your selection: Option 1"
|
And I should see "Your selection: Option 1"
|
||||||
And "Save my choice" "button" should exists
|
And "Save my choice" "button" should exist
|
||||||
And "Remove my choice" "link" should exists
|
And "Remove my choice" "link" should exist
|
||||||
And I set the field "Option 2" to "1"
|
And I set the field "Option 2" to "1"
|
||||||
And I press "Save my choice"
|
And I press "Save my choice"
|
||||||
And I should see "Your choice has been saved"
|
And I should see "Your choice has been saved"
|
||||||
|
@ -6,15 +6,15 @@ Feature: Limit choice responses
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Limit the number of responses allowed for a choice activity and verify the result as students
|
Scenario: Limit the number of responses allowed for a choice activity and verify the result as students
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
| student2 | Student | 2 | student2@asd.com |
|
| student2 | Student | 2 | student2@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -5,14 +5,14 @@ Feature: A teacher can choose one of 4 options for publishing choice results
|
|||||||
I need to publish the choice activity results in different ways
|
I need to publish the choice activity results in different ways
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -5,15 +5,15 @@ Feature: A teacher can choose whether to publish choice activity results anonymo
|
|||||||
I need to select whether I want other students to know who selected what option
|
I need to select whether I want other students to know who selected what option
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
| student2 | Student | 2 | student2@asd.com |
|
| student2 | Student | 2 | student2@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -6,13 +6,13 @@ Feature: Add forum activities and discussions
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Add a forum and a discussion
|
Scenario: Add a forum and a discussion
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
|
@ -6,14 +6,14 @@ Feature: Set a certain number of discussions as a completion condition for a for
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Set X number of discussions as a condition
|
Scenario: Set X number of discussions as a condition
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -5,13 +5,13 @@ Feature: Students can choose from 4 discussion display options and their choice
|
|||||||
I need to select which display method I want to use
|
I need to select which display method I want to use
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
|
@ -5,13 +5,13 @@ Feature: Students can edit or delete their forum posts within a set time limit
|
|||||||
I need to edit or delete my forum posts within a certain period of time after posting
|
I need to edit or delete my forum posts within a certain period of time after posting
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
|
@ -5,14 +5,14 @@ Feature: Teachers can edit or delete any forum post
|
|||||||
I need to edit or delete any user's forum posts
|
I need to edit or delete any user's forum posts
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -5,14 +5,14 @@ Feature: Single simple forum discussion type
|
|||||||
I need to create a forum with a single simple discussion
|
I need to create a forum with a single simple discussion
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
@ -5,14 +5,14 @@ Feature: A teacher can set one of 3 possible options for tracking read forum pos
|
|||||||
I need to distinct the unread posts from the read ones
|
I need to distinct the unread posts from the read ones
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email | trackforums |
|
| username | firstname | lastname | email | trackforums |
|
||||||
| student1 | Student | 1 | student1@asd.com | 1 |
|
| student1 | Student | 1 | student1@asd.com | 1 |
|
||||||
| student2 | Student | 2 | student2@asd.com | 0 |
|
| student2 | Student | 2 | student2@asd.com | 0 |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
| student2 | C1 | student |
|
| student2 | C1 | student |
|
||||||
|
@ -6,14 +6,14 @@ Feature: A teacher can set whether glossary entries are always editable or not
|
|||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Glossary entries are not always editable
|
Scenario: Glossary entries are not always editable
|
||||||
Given the following "users" exists:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
| teacher1 | Teacher | 1 | teacher1@asd.com |
|
||||||
| student1 | Student | 1 | student1@asd.com |
|
| student1 | Student | 1 | student1@asd.com |
|
||||||
And the following "courses" exists:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
And the following "course enrolments" exists:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
@ -35,9 +35,9 @@ Feature: A teacher can set whether glossary entries are always editable or not
|
|||||||
When I add a glossary entry with the following data:
|
When I add a glossary entry with the following data:
|
||||||
| Concept | Test concept name |
|
| Concept | Test concept name |
|
||||||
| Definition | Test concept description |
|
| Definition | Test concept description |
|
||||||
Then "Delete: Test concept name" "link" should exists
|
Then "Delete: Test concept name" "link" should exist
|
||||||
And "Edit: Test concept name" "link" should exists
|
And "Edit: Test concept name" "link" should exist
|
||||||
And I wait "65" seconds
|
And I wait "65" seconds
|
||||||
And I reload the page
|
And I reload the page
|
||||||
Then "Delete: Test concept name" "link" should not exists
|
Then "Delete: Test concept name" "link" should not exist
|
||||||
And "Edit: Test concept name" "link" should not exists
|
And "Edit: Test concept name" "link" should not exist
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user