commit
4b2aca2bd1
|
@ -71,8 +71,6 @@ Feature: Test basic usage of one course in app
|
|||
| activity | name | intro | course | idnumber | groupmode | section |
|
||||
| workshop | Test workshop name | Test workshop | C1 | workshop | 0 | 3 |
|
||||
|
||||
# Skip in master until MDL-75353 is fixed
|
||||
@lms_upto4.0
|
||||
Scenario: View course contents
|
||||
When I entered the course "Course 1" as "student1" in the app
|
||||
Then the header should be "Course 1" in the app
|
||||
|
@ -148,8 +146,6 @@ Feature: Test basic usage of one course in app
|
|||
And I press "Test workshop name" in the app
|
||||
Then the header should be "Test workshop name" in the app
|
||||
|
||||
# Skip in master until MDL-75353 is fixed
|
||||
@lms_upto4.0
|
||||
Scenario: View section contents
|
||||
When I entered the course "Course 1" as "student1" in the app
|
||||
Then the header should be "Course 1" in the app
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@core @core_course @app @javascript
|
||||
@core @core_course @app @javascript @lms_from4.0
|
||||
Feature: Check relative dates feature.
|
||||
|
||||
Background:
|
||||
|
|
|
@ -0,0 +1,73 @@
|
|||
@app @javascript @lms_upto3.11
|
||||
Feature: View grades
|
||||
|
||||
Background:
|
||||
Given the following "users" exist:
|
||||
| username | firstname | lastname |
|
||||
| student1 | Student | first |
|
||||
And the following "scales" exist:
|
||||
| name | scale |
|
||||
| Scale | Good, Bad |
|
||||
And the following "courses" exist:
|
||||
| fullname | shortname |
|
||||
| Course 1 | C1 |
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role |
|
||||
| student1 | C1 | student |
|
||||
And the following "grade categories" exist:
|
||||
| fullname | course |
|
||||
| Category 1 | C1 |
|
||||
| Category 2 | C1 |
|
||||
And the following "grade outcomes" exist:
|
||||
| fullname | shortname | course | scale |
|
||||
| Outcome | outcome | C1 | Scale |
|
||||
And the following "grade items" exist:
|
||||
| gradecategory | itemname | course | grademin | grademax |
|
||||
| Category 1 | Item 1.1 | C1 | 60 | 80 |
|
||||
| Category 1 | Item 1.2 | C1 | 10 | 90 |
|
||||
| Category 2 | Item 2.1 | C1 | 0 | 100 |
|
||||
And the following "activities" exist:
|
||||
| gradecategory | name | course | activity | idnumber | grade | gradepass |
|
||||
| Category 1 | Assignment 1 | C1 | assign | assign1 | 100 | 50 |
|
||||
| Category 1 | Assignment 2 | C1 | assign | assign2 | 100 | 50 |
|
||||
And the following "grade items" exist:
|
||||
| gradecategory | itemname | course | outcome |
|
||||
| Category 1 | Outcome | C1 | outcome |
|
||||
And the following "grade grades" exist:
|
||||
| gradeitem | user | grade |
|
||||
| Item 1.1 | student1 | 70 |
|
||||
| Item 1.2 | student1 | 20 |
|
||||
| Item 2.1 | student1 | 40 |
|
||||
| Assignment 1 | student1 | 80 |
|
||||
| Assignment 2 | student1 | 35 |
|
||||
| Outcome | student1 | 1 |
|
||||
And the following config values are set as admin:
|
||||
| enableoutcomes | 1 |
|
||||
|
||||
Scenario: View individual grades and the grade report
|
||||
Given I entered the course "Course 1" as "student1" in the app
|
||||
|
||||
When I press "Assignment 1" in the app
|
||||
And I press "Information" in the app
|
||||
Then I should find "80" within "Gradebook" "ion-list" in the app
|
||||
|
||||
When I press "Close" in the app
|
||||
And I press the back button in the app
|
||||
And I press "Assignment 2" in the app
|
||||
And I press "Information" in the app
|
||||
Then I should find "35" within "Gradebook" "ion-list" in the app
|
||||
|
||||
When I press "Close" in the app
|
||||
And I press the back button in the app
|
||||
And I press "Grades" in the app
|
||||
Then I should find "Category 1" in the app
|
||||
And I should find "70" within "Item 1.1" "tr" in the app
|
||||
And I should find "20" within "Item 1.2" "tr" in the app
|
||||
And I should find "80" within "Assignment 1" "tr" in the app
|
||||
And I should find "35" within "Assignment 2" "tr" in the app
|
||||
And I should find "Good" within "Outcome" "tr" in the app
|
||||
And I should find "205" within "Category 1 total" "tr" in the app
|
||||
And I should find "Category 2" in the app
|
||||
And I should find "40" within "Item 2.1" "tr" in the app
|
||||
And I should find "40" within "Category 2 total" "tr" in the app
|
||||
And I should find "245" within "Course total" "tr" in the app
|
|
@ -1,4 +1,4 @@
|
|||
@app @javascript
|
||||
@app @javascript @lms_from4.0
|
||||
Feature: View grades
|
||||
|
||||
Background:
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
@auth @core_auth @app @javascript @lms_upto3.9
|
||||
Feature: Test signup in app
|
||||
I need basic signup functionality to work
|
||||
|
||||
Background:
|
||||
Given the following config values are set as admin:
|
||||
| registerauth | email |
|
||||
| auth_instructions | These are the authentication instructions. |
|
||||
| passwordpolicy | 0 |
|
||||
|
||||
Scenario: Check password policy in signup
|
||||
Given the following config values are set as admin:
|
||||
| passwordpolicy | 1 |
|
||||
| minpasswordlength | 8 |
|
||||
| minpassworddigits | 1 |
|
||||
| minpasswordlower | 1 |
|
||||
| minpasswordupper | 1 |
|
||||
| minpasswordnonalphanum | 1 |
|
||||
When I launch the app
|
||||
And I set the field "Your site" to "$WWWROOT" in the app
|
||||
And I press "Connect to your site" in the app
|
||||
And I press "Create new account" in the app
|
||||
Then I should find "The password must have at least 8 characters" in the app
|
||||
And I set the following fields to these values in the app:
|
||||
| Username | u1 |
|
||||
| Password | pu1 |
|
||||
| Email address | u1@u1.com |
|
||||
| Email (again) | u1@u1.com |
|
||||
| First name | User |
|
||||
| Surname | Test |
|
||||
| City/town | Barcelona |
|
||||
| Country | Spain |
|
||||
And I press "Create my new account" in the app
|
||||
Then I should find "Error" in the app
|
||||
And I should find "Passwords must be at least 8 characters long" in the app
|
||||
And I should find "Passwords must have at least 1 upper case letter(s)" in the app
|
||||
And I should find "Passwords must have at least 1 non-alphanumeric character(s)" in the app
|
||||
But I should not find "An email should have been sent to your address" in the app
|
||||
|
||||
When I press "OK" in the app
|
||||
And I set the field "Password" to "Password1$" in the app
|
||||
And I press "Create my new account" in the app
|
||||
Then I should find "An email should have been sent to your address" in the app
|
|
@ -78,6 +78,7 @@ Feature: Test signup in app
|
|||
Then I should find "Barcelona, Spain" in the app
|
||||
And I should find "u1@u1.com" in the app
|
||||
|
||||
@lms_from3.10
|
||||
Scenario: Check password policy in signup
|
||||
Given the following config values are set as admin:
|
||||
| passwordpolicy | 1 |
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@app @javascript @core_reminders
|
||||
@app @javascript @core_reminders @lms_from4.0
|
||||
Feature: Set a new reminder on activity
|
||||
|
||||
Background:
|
||||
|
@ -89,7 +89,7 @@ Feature: Set a new reminder on activity
|
|||
When I wait "50" seconds
|
||||
Then a notification with title "Due: Assignment 01" is not present in the app
|
||||
|
||||
Scenario: Check toast is correct
|
||||
Scenario: Check toast is correct
|
||||
Given I entered the assign activity "Assignment 02" on course "Course 1" as "student1" in the app
|
||||
|
||||
When I press "Set a reminder for \"Assignment 02\" (Due)" in the app
|
||||
|
|
Loading…
Reference in New Issue