MOBILE-3294: Fix and format behat tests
parent
92d9aea3de
commit
8a68b1c45b
|
@ -16,182 +16,159 @@ Feature: Test basic usage of assignment activity in app
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
And the following "activities" exist:
|
And the following "activities" exist:
|
||||||
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | duedate | attemptreopenmethod |
|
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | duedate | attemptreopenmethod |
|
||||||
| assign | C1 | assign1 | assignment1 | Test assignment description1 | 1 | 1 | manual |
|
| assign | C1 | assign1 | assignment1 | Test assignment description1 | 1 | 1029844800 | manual |
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
|
Scenario: Create, edit and submit an assignment as a student, view it as a teacher
|
||||||
|
# Create, edit and submit as a student
|
||||||
|
When I enter the app
|
||||||
|
And I log in as "student1"
|
||||||
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
|
And I press "assignment1" in the app
|
||||||
|
Then the header should be "assignment1" in the app
|
||||||
|
And I should see "Test assignment description1"
|
||||||
|
And I should see "Due date"
|
||||||
|
And I should see "Tuesday, 20 August 2002, 12:00 PM"
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
When I press "Add submission" in the app
|
||||||
Scenario: View assign and add a submission (online text), submit for grading, view own submission or student submission and view list of student submissions (as teacher)
|
And I set the field "Online text submissions" to "Submission test" in the app
|
||||||
When I enter the app
|
And I press "Save" in the app
|
||||||
And I log in as "student1"
|
Then I should see "Draft (not submitted)"
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I should see "Not graded"
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
Then the header should be "Course 1" in the app
|
|
||||||
And I press "assignment1" in the app
|
|
||||||
Then the header should be "assignment1" in the app
|
|
||||||
And I should see "Test assignment description1"
|
|
||||||
And I should see "Due date"
|
|
||||||
And I should see "Thursday, 1 January 1970, 1:00 AM"
|
|
||||||
And I press "Add submission" in the app
|
|
||||||
And I set the field "Online text submissions" to "Submission test" in the app
|
|
||||||
And I press "Save" in the app
|
|
||||||
Then I should see "Draft (not submitted)"
|
|
||||||
And I should see "Not graded"
|
|
||||||
And I press "Edit submission" in the app
|
|
||||||
And I set the field "Online text submissions" to "Submission test edited" in the app
|
|
||||||
And I press "Save" in the app
|
|
||||||
And I press "OK" in the app
|
|
||||||
And I press "Submit assignment" in the app
|
|
||||||
And I press "OK" in the app
|
|
||||||
Then I should see "Submitted for grading"
|
|
||||||
And I should see "Not graded"
|
|
||||||
And I should see "Submission test edited"
|
|
||||||
When I enter the app
|
|
||||||
And I log in as "teacher1"
|
|
||||||
Then the header should be "Acceptance test site" in the app
|
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
Then the header should be "Course 1" in the app
|
|
||||||
And I press "assignment1" in the app
|
|
||||||
Then the header should be "assignment1" in the app
|
|
||||||
And I press "Submitted" in the app
|
|
||||||
Then I should see "Student student"
|
|
||||||
And I should see "Not graded"
|
|
||||||
And I press "Student student" near "assignment1" in the app
|
|
||||||
Then I should see "Online text submission"
|
|
||||||
And I should see "Submission test edited"
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
When I press "Edit submission" in the app
|
||||||
|
And I set the field "Online text submissions" to "Submission test edited" in the app
|
||||||
|
And I press "Save" in the app
|
||||||
|
And I press "OK" in the app
|
||||||
|
Then I should see "Submission test edited"
|
||||||
|
|
||||||
|
When I press "Submit assignment" in the app
|
||||||
|
And I press "OK" in the app
|
||||||
|
Then I should see "Submitted for grading"
|
||||||
|
And I should see "Not graded"
|
||||||
|
And I should see "Submission test edited"
|
||||||
|
|
||||||
|
# View as a teacher
|
||||||
|
When I enter the app
|
||||||
|
And I log in as "teacher1"
|
||||||
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
|
And I press "assignment1" in the app
|
||||||
|
Then the header should be "assignment1" in the app
|
||||||
|
|
||||||
|
When I press "Submitted" in the app
|
||||||
|
Then I should see "Student student"
|
||||||
|
And I should see "Not graded"
|
||||||
|
|
||||||
|
When I press "Student student" near "assignment1" in the app
|
||||||
|
Then I should see "Online text submissions"
|
||||||
|
And I should see "Submission test edited"
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
Scenario: Add new attempt from previous submission
|
Scenario: Add new attempt from previous submission
|
||||||
When I enter the app
|
# Submit first attempt as a student
|
||||||
And I log in as "student1"
|
Given I enter the app
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I log in as "student1"
|
||||||
And I should see "Course 1"
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
And I press "assignment1" in the app
|
||||||
Then the header should be "Course 1" in the app
|
And I press "Add submission" in the app
|
||||||
And I press "assignment1" in the app
|
And I set the field "Online text submissions" to "Submission test 1st attempt" in the app
|
||||||
Then the header should be "assignment1" in the app
|
And I press "Save" in the app
|
||||||
And I should see "Test assignment description1"
|
And I press "Submit assignment" in the app
|
||||||
And I should see "Due date"
|
And I press "OK" in the app
|
||||||
And I should see "Thursday, 1 January 1970, 1:00 AM"
|
|
||||||
And I press "Add submission" in the app
|
|
||||||
And I set the field "Online text submissions" to "Submission test" in the app
|
|
||||||
And I press "Save" in the app
|
|
||||||
And I press "Submit assignment" in the app
|
|
||||||
And I press "OK" in the app
|
|
||||||
When I enter the app
|
|
||||||
And I log in as "teacher1"
|
|
||||||
Then the header should be "Acceptance test site" in the app
|
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
Then the header should be "Course 1" in the app
|
|
||||||
And I press "assignment1" in the app
|
|
||||||
Then the header should be "assignment1" in the app
|
|
||||||
And I press "Participants" in the app
|
|
||||||
Then I should see "Student student"
|
|
||||||
And I should see "Not graded"
|
|
||||||
And I press "Student student" near "assignment1" in the app
|
|
||||||
Then I should see "Online text submission"
|
|
||||||
And I should see "Submission test"
|
|
||||||
And I press "Grade" in the app
|
|
||||||
And I press "Allow another attempt" in the app
|
|
||||||
And I press "Done"
|
|
||||||
Then I should see "Reopened"
|
|
||||||
And I should see "Not graded"
|
|
||||||
When I enter the app
|
|
||||||
And I log in as "student1"
|
|
||||||
Then the header should be "Acceptance test site" in the app
|
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
Then the header should be "Course 1" in the app
|
|
||||||
And I press "assignment1" in the app
|
|
||||||
And I should see "Reopened"
|
|
||||||
And I should see "2 out of Unlimited"
|
|
||||||
And I should see "Add a new attempt based on previous submission"
|
|
||||||
And I should see "Add a new attempt"
|
|
||||||
And I press "Add a new attempt based on previous submission" in the app
|
|
||||||
And I press "OK" in the app
|
|
||||||
Then I should see "Submission test"
|
|
||||||
And I set the field "Online text submissions" to "Submission test 2 attempt" in the app
|
|
||||||
And I press "Save" in the app
|
|
||||||
And I press "OK" in the app
|
|
||||||
And I press "Submit assignment" in the app
|
|
||||||
And I press "OK" in the app
|
|
||||||
When I enter the app
|
|
||||||
And I log in as "teacher1"
|
|
||||||
Then the header should be "Acceptance test site" in the app
|
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
Then the header should be "Course 1" in the app
|
|
||||||
And I press "assignment1" in the app
|
|
||||||
Then the header should be "assignment1" in the app
|
|
||||||
And I press "Participants" in the app
|
|
||||||
Then I should see "Student student"
|
|
||||||
And I should see "Not graded"
|
|
||||||
And I press "Student student" near "assignment1" in the app
|
|
||||||
Then I should see "Online text submission"
|
|
||||||
And I should see "Submission test 2 attempt"
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
# Allow more attempts as a teacher
|
||||||
Scenario: Add submission offline (online text), submit for grading offline and sync submissions
|
When I enter the app
|
||||||
When I enter the app
|
And I log in as "teacher1"
|
||||||
And I log in as "student1"
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I press "assignment1" in the app
|
||||||
And I should see "Course 1"
|
And I press "Participants" in the app
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
And I press "Student student" near "assignment1" in the app
|
||||||
Then the header should be "Course 1" in the app
|
And I press "Grade" in the app
|
||||||
And I press "assignment1" in the app
|
And I press "Allow another attempt" in the app
|
||||||
Then the header should be "assignment1" in the app
|
And I press "Done"
|
||||||
And I should see "Test assignment description1"
|
Then I should see "Reopened"
|
||||||
And I should see "Due date"
|
And I should see "Not graded"
|
||||||
And I should see "Thursday, 1 January 1970, 1:00 AM"
|
|
||||||
And I press "Add submission" in the app
|
|
||||||
And I switch offline mode to "true"
|
|
||||||
And I set the field "Online text submissions" to "Submission test" in the app
|
|
||||||
And I press "Save" in the app
|
|
||||||
And I press "Submit assignment" in the app
|
|
||||||
And I press "OK" in the app
|
|
||||||
Then I should see "This Assignment has offline data to be synchronised."
|
|
||||||
And I switch offline mode to "false"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I press "assignment1" in the app
|
|
||||||
And I press "Display options" in the app
|
|
||||||
And I press "Refresh" in the app
|
|
||||||
Then I should not see "This Assignment has offline data to be synchronised."
|
|
||||||
And I should see "Submitted for grading"
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
# Submit second attempt as a student
|
||||||
Scenario: Edit an offline submission before synchronizing it
|
When I enter the app
|
||||||
When I enter the app
|
And I log in as "student1"
|
||||||
And I log in as "student1"
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I press "assignment1" in the app
|
||||||
And I should see "Course 1"
|
Then I should see "Reopened"
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
And I should see "2 out of Unlimited"
|
||||||
Then the header should be "Course 1" in the app
|
And I should see "Add a new attempt based on previous submission"
|
||||||
And I press "assignment1" in the app
|
And I should see "Add a new attempt"
|
||||||
Then the header should be "assignment1" in the app
|
|
||||||
And I should see "Test assignment description1"
|
When I press "Add a new attempt based on previous submission" in the app
|
||||||
And I should see "Due date"
|
And I press "OK" in the app
|
||||||
And I should see "Thursday, 1 January 1970, 1:00 AM"
|
Then I should see "Submission test 1st attempt"
|
||||||
And I press "Add submission" in the app
|
|
||||||
And I switch offline mode to "true"
|
When I set the field "Online text submissions" to "Submission test 2nd attempt" in the app
|
||||||
And I set the field "Online text submissions" to "Submission test1" in the app
|
And I press "Save" in the app
|
||||||
And I press "Save" in the app
|
And I press "OK" in the app
|
||||||
Then I should see "This Assignment has offline data to be synchronised."
|
And I press "Submit assignment" in the app
|
||||||
And I should see "Submission test1"
|
And I press "OK" in the app
|
||||||
And I press "Edit submission" in the app
|
|
||||||
And I set the field "Online text submissions" to "Submission test edited offline" in the app
|
# View second attempt as a teacher
|
||||||
And I press "Save" in the app
|
When I enter the app
|
||||||
Then I should see "This Assignment has offline data to be synchronised."
|
And I log in as "teacher1"
|
||||||
And I should not see "Submission test1"
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
And I should see "Submission test edited offline"
|
And I press "assignment1" in the app
|
||||||
And I press "Submit assignment" in the app
|
And I press "Participants" in the app
|
||||||
And I press "OK" in the app
|
And I press "Student student" near "assignment1" in the app
|
||||||
Then I should see "This Assignment has offline data to be synchronised."
|
Then I should see "Online text submissions"
|
||||||
And I switch offline mode to "false"
|
And I should see "Submission test 2nd attempt"
|
||||||
And I press the back button in the app
|
|
||||||
And I press "assignment1" in the app
|
@app @3.8.0
|
||||||
Then I should not see "This Assignment has offline data to be synchronised."
|
Scenario: Add offline submission and synchronise it
|
||||||
And I should see "Submitted for grading"
|
When I enter the app
|
||||||
And I should see "Submission test edited offline"
|
And I log in as "student1"
|
||||||
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
|
And I press "assignment1" in the app
|
||||||
|
And I press "Add submission" in the app
|
||||||
|
And I switch offline mode to "true"
|
||||||
|
And I set the field "Online text submissions" to "Submission test" in the app
|
||||||
|
And I press "Save" in the app
|
||||||
|
And I press "Submit assignment" in the app
|
||||||
|
And I press "OK" in the app
|
||||||
|
Then I should see "This Assignment has offline data to be synchronised."
|
||||||
|
|
||||||
|
When I switch offline mode to "false"
|
||||||
|
And I press the back button in the app
|
||||||
|
And I press "assignment1" in the app
|
||||||
|
And I press "Display options" in the app
|
||||||
|
And I press "Refresh" in the app
|
||||||
|
Then I should see "Submitted for grading"
|
||||||
|
But I should not see "This Assignment has offline data to be synchronised."
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
|
Scenario: Edit an offline submission before synchronising it
|
||||||
|
When I enter the app
|
||||||
|
And I log in as "student1"
|
||||||
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
|
And I press "assignment1" in the app
|
||||||
|
And I press "Add submission" in the app
|
||||||
|
And I switch offline mode to "true"
|
||||||
|
And I set the field "Online text submissions" to "Submission test original offline" in the app
|
||||||
|
And I press "Save" in the app
|
||||||
|
Then I should see "This Assignment has offline data to be synchronised."
|
||||||
|
And I should see "Submission test original offline"
|
||||||
|
|
||||||
|
When I press "Edit submission" in the app
|
||||||
|
And I set the field "Online text submissions" to "Submission test edited offline" in the app
|
||||||
|
And I press "Save" in the app
|
||||||
|
Then I should see "This Assignment has offline data to be synchronised."
|
||||||
|
And I should see "Submission test edited offline"
|
||||||
|
But I should not see "Submission test original offline"
|
||||||
|
|
||||||
|
When I press "Submit assignment" in the app
|
||||||
|
And I press "OK" in the app
|
||||||
|
Then I should see "This Assignment has offline data to be synchronised."
|
||||||
|
|
||||||
|
When I switch offline mode to "false"
|
||||||
|
And I press the back button in the app
|
||||||
|
And I press "assignment1" in the app
|
||||||
|
Then I should see "Submitted for grading"
|
||||||
|
And I should see "Submission test edited offline"
|
||||||
|
But I should not see "This Assignment has offline data to be synchronised."
|
||||||
|
|
|
@ -11,29 +11,33 @@ Feature: Test basic usage of chat in app
|
||||||
| username | firstname | lastname |
|
| username | firstname | lastname |
|
||||||
| student1 | david | student |
|
| student1 | david | student |
|
||||||
| student2 | pau | student2 |
|
| student2 | pau | student2 |
|
||||||
| teacher1 | juan | teacher |
|
|
||||||
And the following "course enrolments" exist:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
| student2 | C1 | student |
|
| student2 | C1 | student |
|
||||||
| teacher1 | C1 | editingteacher |
|
|
||||||
And the following "activities" exist:
|
And the following "activities" exist:
|
||||||
| activity | name | intro | course | idnumber | groupmode |
|
| activity | name | intro | course | idnumber | groupmode |
|
||||||
| chat | Test chat name | Test chat | C1 | chat | 0 |
|
| chat | Test chat name | Test chat | C1 | chat | 0 |
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
@app @3.8.0
|
||||||
Scenario: Receive and send messages, see connected users, beep and talk to
|
Scenario: Send and read messages, send beeps and view connected users
|
||||||
|
# Send messages as student1
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
And I press "Test chat name" in the app
|
And I press "Test chat name" in the app
|
||||||
Then I should see "Click here to enter the chat now"
|
Then I should see "Click here to enter the chat now"
|
||||||
And I should see "View past chat sessions"
|
And I should see "View past chat sessions"
|
||||||
And I press "Click here to enter the chat now" in the app
|
|
||||||
|
When I press "Click here to enter the chat now" in the app
|
||||||
And I set the field "New message" to "Hi!"
|
And I set the field "New message" to "Hi!"
|
||||||
And I press "Send" in the app
|
And I press "Send" in the app
|
||||||
And I set the field "New message" to "I am David"
|
And I set the field "New message" to "I am David"
|
||||||
And I press "Send" in the app
|
And I press "Send" in the app
|
||||||
|
Then I should see "Hi!"
|
||||||
|
And I should see "I am David"
|
||||||
|
|
||||||
|
# Read messages, view connected users, send beep and reply as student2
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student2"
|
And I log in as "student2"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
@ -41,34 +45,37 @@ Feature: Test basic usage of chat in app
|
||||||
And I press "Click here to enter the chat now" in the app
|
And I press "Click here to enter the chat now" in the app
|
||||||
Then I should see "Hi!"
|
Then I should see "Hi!"
|
||||||
And I should see "I am David"
|
And I should see "I am David"
|
||||||
And I press "people" in the app
|
|
||||||
Then I should see "david student"
|
|
||||||
And I press "Beep" in the app
|
|
||||||
Then I should see "You beeped david student"
|
|
||||||
And I set the field "New message" to "Hi David, I am Pau."
|
|
||||||
And I press "Send" in the app
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
When I press "people" in the app
|
||||||
Scenario: Past sessions shown for >=3.5
|
Then I should see "david student"
|
||||||
When I enter the app
|
|
||||||
|
When I press "Beep" in the app
|
||||||
|
Then I should see "You beeped david student"
|
||||||
|
|
||||||
|
When I set the field "New message" to "Hi David, I am Pau."
|
||||||
|
And I press "Send" in the app
|
||||||
|
Then I should see "Hi David, I am Pau."
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
|
Scenario: View past sessions shown for >=3.5
|
||||||
|
# Send messages as student1
|
||||||
|
Given I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
And I press "Test chat name" in the app
|
And I press "Test chat name" in the app
|
||||||
Then I should see "Click here to enter the chat now"
|
|
||||||
And I should see "View past chat sessions"
|
|
||||||
And I press "Click here to enter the chat now" in the app
|
And I press "Click here to enter the chat now" in the app
|
||||||
And I set the field "New message" to "Hi!"
|
And I set the field "New message" to "Hi!"
|
||||||
And I press "Send" in the app
|
And I press "Send" in the app
|
||||||
And I set the field "New message" to "I am David"
|
And I set the field "New message" to "I am David"
|
||||||
And I press "Send" in the app
|
And I press "Send" in the app
|
||||||
|
|
||||||
|
# Read messages from past sessions as student2
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student2"
|
And I log in as "student2"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
And I press "Test chat name" in the app
|
And I press "Test chat name" in the app
|
||||||
Then I should see "Click here to enter the chat now"
|
|
||||||
And I should see "View past chat sessions"
|
|
||||||
And I press "View past chat sessions" in the app
|
And I press "View past chat sessions" in the app
|
||||||
And I press "Show incomplete sessions" in the app
|
And I press "Show incomplete sessions" in the app
|
||||||
And I press "david student (2)" in the app
|
And I press "david student (2)" in the app
|
||||||
Then I should see "Hi!"
|
Then I should see "Hi!"
|
||||||
And I should see "I am David"
|
And I should see "I am David"
|
||||||
|
|
|
@ -16,12 +16,9 @@ Feature: Test basic usage of choice activity in app
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
And the following "activities" exist:
|
|
||||||
| activity | name | intro | course | idnumber | option |
|
|
||||||
| choice | Choice name | Test choice description | C1 | choice1 | Option 1, Option 2, Option 3 |
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
@app @3.8.0
|
||||||
Scenario: Student sends their single choice and views results.
|
Scenario: Student sends a single choice answer and views the results
|
||||||
Given the following "activities" exist:
|
Given the following "activities" exist:
|
||||||
| activity | name | intro | course | idnumber | option | allowmultiple | allowupdate | showresults |
|
| activity | name | intro | course | idnumber | option | allowmultiple | allowupdate | showresults |
|
||||||
| choice | Test single choice name | Test single choice description | C1 | choice1 | Option 1, Option 2, Option 3 | 0 | 0 | 1 |
|
| choice | Test single choice name | Test single choice description | C1 | choice1 | Option 1, Option 2, Option 3 | 0 | 0 | 1 |
|
||||||
|
@ -32,20 +29,22 @@ Feature: Test basic usage of choice activity in app
|
||||||
And I press "Option 1" in the app
|
And I press "Option 1" in the app
|
||||||
And I press "Option 2" in the app
|
And I press "Option 2" in the app
|
||||||
And I press "Save my choice" in the app
|
And I press "Save my choice" in the app
|
||||||
And I should see "Are you sure"
|
Then I should see "Are you sure"
|
||||||
And I press "OK" in the app
|
|
||||||
|
When I press "OK" in the app
|
||||||
Then I should see "Option 1: 0"
|
Then I should see "Option 1: 0"
|
||||||
And I should see "Option 2: 1"
|
And I should see "Option 2: 1"
|
||||||
And I should see "Option 3: 0"
|
And I should see "Option 3: 0"
|
||||||
And I should not see "Remove my choice"
|
But I should not see "Remove my choice"
|
||||||
And I press the back button in the app
|
|
||||||
|
When I press the back button in the app
|
||||||
And I press "Test single choice name" in the app
|
And I press "Test single choice name" in the app
|
||||||
And I should see "Option 1: 0"
|
Then I should see "Option 1: 0"
|
||||||
And I should see "Option 2: 1"
|
And I should see "Option 2: 1"
|
||||||
And I should see "Option 3: 0"
|
And I should see "Option 3: 0"
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
@app @3.8.0
|
||||||
Scenario: Student sends, changes and removes the multi choice
|
Scenario: Student sends, changes and removes a multi choice answer
|
||||||
Given the following "activities" exist:
|
Given the following "activities" exist:
|
||||||
| activity | name | intro | course | idnumber | option | allowmultiple | allowupdate | showresults |
|
| activity | name | intro | course | idnumber | option | allowmultiple | allowupdate | showresults |
|
||||||
| choice | Test multi choice name | Test multi choice description | C1 | choice2 | Option 1, Option 2, Option 3 | 1 | 1 | 1 |
|
| choice | Test multi choice name | Test multi choice description | C1 | choice2 | Option 1, Option 2, Option 3 | 1 | 1 | 1 |
|
||||||
|
@ -60,20 +59,23 @@ Feature: Test basic usage of choice activity in app
|
||||||
And I should see "Option 2: 1"
|
And I should see "Option 2: 1"
|
||||||
And I should see "Option 3: 0"
|
And I should see "Option 3: 0"
|
||||||
And I should see "Remove my choice"
|
And I should see "Remove my choice"
|
||||||
And I press "Option 1" in the app
|
|
||||||
|
When I press "Option 1" in the app
|
||||||
And I press "Option 3" in the app
|
And I press "Option 3" in the app
|
||||||
And I press "Save my choice" in the app
|
And I press "Save my choice" in the app
|
||||||
And I should see "Option 1: 0"
|
Then I should see "Option 1: 0"
|
||||||
And I should see "Option 2: 1"
|
And I should see "Option 2: 1"
|
||||||
And I should see "Option 3: 1"
|
And I should see "Option 3: 1"
|
||||||
And I press "Remove my choice" in the app
|
|
||||||
And I should see "Are you sure"
|
|
||||||
And I press "Delete" in the app
|
|
||||||
And I should not see "Remove my choice"
|
|
||||||
And I should see "The results are not currently viewable"
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
When I press "Remove my choice" in the app
|
||||||
Scenario: Student answers, changes answer offline and sync
|
Then I should see "Are you sure"
|
||||||
|
|
||||||
|
When I press "Delete" in the app
|
||||||
|
Then I should see "The results are not currently viewable"
|
||||||
|
But I should not see "Remove my choice"
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
|
Scenario: Student edits answer offline and synchronises
|
||||||
Given the following "activities" exist:
|
Given the following "activities" exist:
|
||||||
| activity | name | intro | course | idnumber | option | allowmultiple | allowupdate | showresults |
|
| activity | name | intro | course | idnumber | option | allowmultiple | allowupdate | showresults |
|
||||||
| choice | Test single choice name | Test single choice description | C1 | choice1 | Option 1, Option 2, Option 3 | 0 | 0 | 1 |
|
| choice | Test single choice name | Test single choice description | C1 | choice1 | Option 1, Option 2, Option 3 | 0 | 0 | 1 |
|
||||||
|
@ -86,14 +88,16 @@ Feature: Test basic usage of choice activity in app
|
||||||
And I press "Option 2" in the app
|
And I press "Option 2" in the app
|
||||||
And I press "Save my choice" in the app
|
And I press "Save my choice" in the app
|
||||||
Then I should see "Are you sure"
|
Then I should see "Are you sure"
|
||||||
And I press "OK" in the app
|
|
||||||
|
When I press "OK" in the app
|
||||||
And I press the back button in the app
|
And I press the back button in the app
|
||||||
And I press "Test single choice name" in the app
|
And I press "Test single choice name" in the app
|
||||||
Then I should not see "Option 1: 0"
|
Then I should see "This Choice has offline data to be synchronised."
|
||||||
|
But I should not see "Option 1: 0"
|
||||||
And I should not see "Option 2: 1"
|
And I should not see "Option 2: 1"
|
||||||
And I should not see "Option 3: 0"
|
And I should not see "Option 3: 0"
|
||||||
And I should see "This Choice has offline data to be synchronised."
|
|
||||||
And I switch offline mode to "false"
|
When I switch offline mode to "false"
|
||||||
And I press the back button in the app
|
And I press the back button in the app
|
||||||
And I press "Test single choice name" in the app
|
And I press "Test single choice name" in the app
|
||||||
And I press "Display options" in the app
|
And I press "Display options" in the app
|
||||||
|
@ -101,10 +105,10 @@ Feature: Test basic usage of choice activity in app
|
||||||
Then I should see "Option 1: 0"
|
Then I should see "Option 1: 0"
|
||||||
And I should see "Option 2: 1"
|
And I should see "Option 2: 1"
|
||||||
And I should see "Option 3: 0"
|
And I should see "Option 3: 0"
|
||||||
And I should not see "This Choice has offline data to be synchronised."
|
But I should not see "This Choice has offline data to be synchronised."
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
@app @3.8.0
|
||||||
Scenario: Student answers, changes answer offline and auto-sync
|
Scenario: Student edits answer offline and the app synchronises automatically
|
||||||
Given the following "activities" exist:
|
Given the following "activities" exist:
|
||||||
| activity | name | intro | course | idnumber | option | allowmultiple | allowupdate | showresults |
|
| activity | name | intro | course | idnumber | option | allowmultiple | allowupdate | showresults |
|
||||||
| choice | Test single choice name | Test single choice description | C1 | choice1 | Option 1, Option 2, Option 3 | 0 | 0 | 1 |
|
| choice | Test single choice name | Test single choice description | C1 | choice1 | Option 1, Option 2, Option 3 | 0 | 0 | 1 |
|
||||||
|
@ -116,23 +120,26 @@ Feature: Test basic usage of choice activity in app
|
||||||
And I switch offline mode to "true"
|
And I switch offline mode to "true"
|
||||||
And I press "Option 2" in the app
|
And I press "Option 2" in the app
|
||||||
And I press "Save my choice" in the app
|
And I press "Save my choice" in the app
|
||||||
And I should see "Are you sure"
|
Then I should see "Are you sure"
|
||||||
And I press "OK" in the app
|
|
||||||
|
When I press "OK" in the app
|
||||||
And I switch offline mode to "false"
|
And I switch offline mode to "false"
|
||||||
Then I should not see "Option 1: 0"
|
Then I should see "This Choice has offline data to be synchronised."
|
||||||
|
But I should not see "Option 1: 0"
|
||||||
And I should not see "Option 2: 1"
|
And I should not see "Option 2: 1"
|
||||||
And I should not see "Option 3: 0"
|
And I should not see "Option 3: 0"
|
||||||
And I should see "This Choice has offline data to be synchronised."
|
|
||||||
And I wait "600" seconds
|
When I run cron tasks in the app
|
||||||
Then I should see "Option 1: 0"
|
Then I should see "Option 1: 0"
|
||||||
And I should see "Option 2: 1"
|
And I should see "Option 2: 1"
|
||||||
And I should see "Option 3: 0"
|
And I should see "Option 3: 0"
|
||||||
And I should not see "This Choice has offline data to be synchronised."
|
But I should not see "This Choice has offline data to be synchronised."
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
@app @3.8.0
|
||||||
Scenario: Prefetch
|
Scenario: Prefetch activity
|
||||||
Given the following "activities" exist:
|
Given the following "activities" exist:
|
||||||
| activity | name | intro | course | idnumber | option | allowmultiple | allowupdate | showresults |
|
| activity | name | intro | course | idnumber | option | allowmultiple | allowupdate | showresults |
|
||||||
|
| choice | Test multi choice name | Test multi choice description | C1 | choice2 | Option 1, Option 2, Option 3 | 1 | 1 | 1 |
|
||||||
| choice | Test single choice name | Test single choice description | C1 | choice1 | Option 1, Option 2, Option 3 | 0 | 0 | 1 |
|
| choice | Test single choice name | Test single choice description | C1 | choice1 | Option 1, Option 2, Option 3 | 0 | 0 | 1 |
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
|
@ -141,41 +148,47 @@ Feature: Test basic usage of choice activity in app
|
||||||
And I press "Show download options" in the app
|
And I press "Show download options" in the app
|
||||||
And I press "cloud download" near "Test single choice name" in the app
|
And I press "cloud download" near "Test single choice name" in the app
|
||||||
And I switch offline mode to "true"
|
And I switch offline mode to "true"
|
||||||
And I press "Choice name" in the app
|
And I press "Test multi choice name" in the app
|
||||||
And I should see "There was a problem connecting to the site. Please check your connection and try again."
|
Then I should see "There was a problem connecting to the site. Please check your connection and try again."
|
||||||
And I press "OK" in the app
|
|
||||||
|
When I press "OK" in the app
|
||||||
And I press the back button in the app
|
And I press the back button in the app
|
||||||
And I press "Test single choice name" in the app
|
And I press "Test single choice name" in the app
|
||||||
And I press "Option 1" in the app
|
|
||||||
And I press "Option 2" in the app
|
And I press "Option 2" in the app
|
||||||
And I press "Save my choice" in the app
|
And I press "Save my choice" in the app
|
||||||
And I should see "Are you sure"
|
Then I should see "Are you sure"
|
||||||
And I press "OK" in the app
|
|
||||||
|
When I press "OK" in the app
|
||||||
And I press the back button in the app
|
And I press the back button in the app
|
||||||
And I press "Test single choice name" in the app
|
And I press "Test single choice name" in the app
|
||||||
And I should not see "Option 1: 0"
|
Then I should see "This Choice has offline data to be synchronised."
|
||||||
|
But I should not see "Option 1: 0"
|
||||||
And I should not see "Option 2: 1"
|
And I should not see "Option 2: 1"
|
||||||
And I should not see "Option 3: 0"
|
And I should not see "Option 3: 0"
|
||||||
And I should see "This Choice has offline data to be synchronised."
|
|
||||||
And I switch offline mode to "false"
|
When I switch offline mode to "false"
|
||||||
And I press the back button in the app
|
And I press the back button in the app
|
||||||
And I press "Test single choice name" in the app
|
And I press "Test single choice name" in the app
|
||||||
Then I should see "Option 1: 0"
|
Then I should see "Option 1: 0"
|
||||||
And I should see "Option 2: 1"
|
And I should see "Option 2: 1"
|
||||||
And I should see "Option 3: 0"
|
And I should see "Option 3: 0"
|
||||||
And I should not see "This Choice has offline data to be synchronised."
|
But I should not see "This Choice has offline data to be synchronised."
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
@app @3.8.0
|
||||||
Scenario: Download students choice in text format
|
Scenario: Download students choice in text format
|
||||||
When I enter the app
|
# Submit answer as student
|
||||||
|
Given the following "activities" exist:
|
||||||
|
| activity | name | intro | course | idnumber | option |
|
||||||
|
| choice | Choice name | Test choice description | C1 | choice1 | Option 1, Option 2, Option 3 |
|
||||||
|
And I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
And I press "Choice name" in the app
|
And I press "Choice name" in the app
|
||||||
And I press "Option 1" in the app
|
|
||||||
And I press "Option 2" in the app
|
And I press "Option 2" in the app
|
||||||
And I press "Save my choice" in the app
|
And I press "Save my choice" in the app
|
||||||
And I should see "Are you sure"
|
|
||||||
And I press "OK" in the app
|
And I press "OK" in the app
|
||||||
|
|
||||||
|
# Download answers as teacher
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
@ -187,4 +200,3 @@ Feature: Test basic usage of choice activity in app
|
||||||
And I press "Actions menu"
|
And I press "Actions menu"
|
||||||
And I follow "View 1 responses"
|
And I follow "View 1 responses"
|
||||||
And I press "Download in text format"
|
And I press "Download in text format"
|
||||||
And I close the browser tab opened by the app
|
|
|
@ -9,489 +9,356 @@ Feature: Test basic usage of comments in app
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | teacher | teacher1@example.com |
|
| teacher1 | Teacher | teacher | teacher1@example.com |
|
||||||
| student1 | Student | student | student1@example.com |
|
| student1 | Student | student | student1@example.com |
|
||||||
|
|
||||||
And the following "courses" exist:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
|
|
||||||
And the following "course enrolments" exist:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
|
||||||
And the following "activities" exist:
|
And the following "activities" exist:
|
||||||
| activity | name | intro | course | idnumber | mainglossary | allowcomments | assessed | scale |
|
| activity | name | intro | course | idnumber | mainglossary | allowcomments | assessed | scale |
|
||||||
| glossary | Test glossary | glossary description | C1 | gloss1 | 1 | 1 | 1 | 1 |
|
| glossary | Test glossary | glossary description | C1 | gloss1 | 1 | 1 | 1 | 1 |
|
||||||
|
|
||||||
And the following "activities" exist:
|
And the following "activities" exist:
|
||||||
| activity | name | intro | course | idnumber | comments |
|
| activity | name | intro | course | idnumber | comments |
|
||||||
| data | Data | Data info | C1 | data1 | 1 |
|
| data | Data | Data info | C1 | data1 | 1 |
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
|
Scenario: Create and delete comments (database)
|
||||||
|
# Create database entry and comment as a teacher
|
||||||
|
Given I enter the app
|
||||||
|
And I log in as "teacher1"
|
||||||
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
|
And I press "Data" in the app
|
||||||
|
And I press "Display options" in the app
|
||||||
|
And I press "Open in browser" in the app
|
||||||
|
And I switch to the browser tab opened by the app
|
||||||
|
And I log in as "teacher1"
|
||||||
|
And I add a "Text input" field to "Data" database and I fill the form with:
|
||||||
|
| Field name | Test field name |
|
||||||
|
| Field description | Test field description |
|
||||||
|
And I press "Save"
|
||||||
|
And I close the browser tab opened by the app
|
||||||
|
When I enter the app
|
||||||
|
And I log in as "teacher1"
|
||||||
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
|
And I press "Data" in the app
|
||||||
|
And I press "add" in the app
|
||||||
|
And I set the field "Test field name" to "Test" in the app
|
||||||
|
And I press "Save" in the app
|
||||||
|
And I press "More" in the app
|
||||||
|
And I press "Comments (0)" in the app
|
||||||
|
And I press "close" in the app
|
||||||
|
And I set the field "Add a comment..." to "comment test teacher" in the app
|
||||||
|
And I press "Save comment" in the app
|
||||||
|
Then I should see "Comment created"
|
||||||
|
And I should see "comment test teacher"
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
When I press the back button in the app
|
||||||
Scenario: Add comments and delete comments (database)
|
And I should see "Comments (1)"
|
||||||
When I enter the app
|
|
||||||
And I log in as "teacher1"
|
|
||||||
Then the header should be "Acceptance test site" in the app
|
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
And I press "Data" in the app
|
|
||||||
And I press "Display options" in the app
|
|
||||||
And I press "Open in browser" in the app
|
|
||||||
And I switch to the browser tab opened by the app
|
|
||||||
And I log in as "teacher1"
|
|
||||||
And I add a "Text input" field to "Data" database and I fill the form with:
|
|
||||||
| Field name | Test field name |
|
|
||||||
| Field description | Test field description |
|
|
||||||
And I press "Save"
|
|
||||||
And I close the browser tab opened by the app
|
|
||||||
When I enter the app
|
|
||||||
And I log in as "teacher1"
|
|
||||||
Then the header should be "Acceptance test site" in the app
|
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
And I press "Data" in the app
|
|
||||||
And I press "add" in the app
|
|
||||||
And I set the field "Test field name" to "Test" in the app
|
|
||||||
And I press "Save" in the app
|
|
||||||
And I press "More" in the app
|
|
||||||
And I press "Comments (0)" in the app
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Add a comment..." to "comment test" in the app
|
|
||||||
And I press "Save comment" in the app
|
|
||||||
Then I should see "Comment created"
|
|
||||||
And I should see "comment test"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (1)"
|
|
||||||
When I enter the app
|
|
||||||
And I log in as "student1"
|
|
||||||
Then the header should be "Acceptance test site" in the app
|
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
And I press "Data" in the app
|
|
||||||
And I press "More" in the app
|
|
||||||
And I press "Comments (1)" in the app
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Add a comment..." to "comment test student" in the app
|
|
||||||
And I press "Save comment" in the app
|
|
||||||
Then I should see "Comment created"
|
|
||||||
And I should see "comment test"
|
|
||||||
And I should see "comment test student"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (2)"
|
|
||||||
And I press "Comments (2)" in the app
|
|
||||||
And I press "Delete" in the app
|
|
||||||
And I press "trash" in the app
|
|
||||||
And I press "Delete" near "Cancel" in the app
|
|
||||||
Then I should see "Comment deleted"
|
|
||||||
And I should see "comment test"
|
|
||||||
And I should not see "comment test student"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (1)"
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
# Create and delete comments as a student
|
||||||
Scenario: Add comments offline, delete comments offline and sync (database)
|
When I enter the app
|
||||||
When I enter the app
|
And I log in as "student1"
|
||||||
And I log in as "teacher1"
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I press "Data" in the app
|
||||||
And I should see "Course 1"
|
And I press "More" in the app
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
And I press "Comments (1)" in the app
|
||||||
And I press "Data" in the app
|
And I press "close" in the app
|
||||||
And I press "Display options" in the app
|
And I set the field "Add a comment..." to "comment test student" in the app
|
||||||
And I press "Open in browser" in the app
|
And I press "Save comment" in the app
|
||||||
And I switch to the browser tab opened by the app
|
Then I should see "Comment created"
|
||||||
And I log in as "teacher1"
|
And I should see "comment test teacher"
|
||||||
And I add a "Text input" field to "Data" database and I fill the form with:
|
And I should see "comment test student"
|
||||||
| Field name | Test field name |
|
|
||||||
| Field description | Test field description |
|
|
||||||
And I press "Save"
|
|
||||||
And I close the browser tab opened by the app
|
|
||||||
When I enter the app
|
|
||||||
And I log in as "teacher1"
|
|
||||||
Then the header should be "Acceptance test site" in the app
|
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
And I press "Data" in the app
|
|
||||||
And I press "add" in the app
|
|
||||||
And I set the field "Test field name" to "Test" in the app
|
|
||||||
And I press "Save" in the app
|
|
||||||
And I press "More" in the app
|
|
||||||
And I press "Comments (0)" in the app
|
|
||||||
And I switch offline mode to "true"
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Add a comment..." to "comment test" in the app
|
|
||||||
And I press "Save comment" in the app
|
|
||||||
Then I should see "Data stored in the device because it couldn't be sent. It will be sent automatically later."
|
|
||||||
And I should see "There are offline comments to be synchronised."
|
|
||||||
And I should see "comment test"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (0)"
|
|
||||||
And I press "Comments (0)" in the app
|
|
||||||
And I switch offline mode to "false"
|
|
||||||
And I press "Display options" in the app
|
|
||||||
And I press "Synchronise now" in the app
|
|
||||||
Then I should not see "There are offline comments to be synchronised."
|
|
||||||
And I should see "comment test"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (1)"
|
|
||||||
And I press "Comments (1)" in the app
|
|
||||||
And I switch offline mode to "true"
|
|
||||||
And I press "Delete" in the app
|
|
||||||
And I press "trash" in the app
|
|
||||||
And I press "Delete" near "Cancel" in the app
|
|
||||||
Then I should see "Comment deleted"
|
|
||||||
And I should see "There are offline comments to be synchronised."
|
|
||||||
And I should see "Deleted offline"
|
|
||||||
And I should see "comment test"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (1)"
|
|
||||||
And I press "Comments (1)" in the app
|
|
||||||
And I switch offline mode to "false"
|
|
||||||
And I press "Display options" in the app
|
|
||||||
And I press "Synchronise now" in the app
|
|
||||||
Then I should not see "There are offline comments to be synchronised."
|
|
||||||
And I should not see "comment test"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (0)"
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
When I press the back button in the app
|
||||||
Scenario: Add comments and delete comments (glossary)
|
And I press "Comments (2)" in the app
|
||||||
When I enter the app
|
And I press "Delete" in the app
|
||||||
And I log in as "teacher1"
|
And I press "trash" in the app
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I press "Delete" near "Cancel" in the app
|
||||||
And I should see "Course 1"
|
Then I should see "Comment deleted"
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
And I should see "comment test teacher"
|
||||||
And I press "Test glossary" in the app
|
But I should not see "comment test student"
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Concept" to "potato" in the app
|
|
||||||
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
|
||||||
And I press "Save" in the app
|
|
||||||
And I press "potato" in the app
|
|
||||||
And I press "Comments (0)" in the app
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Add a comment..." to "comment test" in the app
|
|
||||||
And I press "Save comment" in the app
|
|
||||||
Then I should see "Comment created"
|
|
||||||
And I should see "comment test"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (1)"
|
|
||||||
When I enter the app
|
|
||||||
And I log in as "student1"
|
|
||||||
Then the header should be "Acceptance test site" in the app
|
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
And I press "Test glossary" in the app
|
|
||||||
And I press "potato" in the app
|
|
||||||
And I press "Comments (1)" in the app
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Add a comment..." to "comment test student" in the app
|
|
||||||
And I press "Save comment" in the app
|
|
||||||
Then I should see "Comment created"
|
|
||||||
And I should see "comment test"
|
|
||||||
And I should see "comment test student"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (2)"
|
|
||||||
And I press "Comments (2)" in the app
|
|
||||||
And I press "Delete" in the app
|
|
||||||
And I press "trash" in the app
|
|
||||||
And I press "Delete" near "Cancel" in the app
|
|
||||||
Then I should see "Comment deleted"
|
|
||||||
And I should see "comment test"
|
|
||||||
And I should not see "comment test student"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (1)"
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
When I press the back button in the app
|
||||||
Scenario: Add comments offline, delete comments offline and sync (glossary)
|
Then I should see "Comments (1)"
|
||||||
When I enter the app
|
|
||||||
And I log in as "teacher1"
|
|
||||||
Then the header should be "Acceptance test site" in the app
|
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
And I press "Test glossary" in the app
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Concept" to "potato" in the app
|
|
||||||
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
|
||||||
And I press "Save" in the app
|
|
||||||
And I press "potato" in the app
|
|
||||||
And I press "Comments (0)" in the app
|
|
||||||
And I switch offline mode to "true"
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Add a comment..." to "comment test" in the app
|
|
||||||
And I press "Save comment" in the app
|
|
||||||
Then I should see "Data stored in the device because it couldn't be sent. It will be sent automatically later."
|
|
||||||
And I should see "There are offline comments to be synchronised."
|
|
||||||
And I should see "comment test"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (0)"
|
|
||||||
And I press "Comments (0)" in the app
|
|
||||||
And I switch offline mode to "false"
|
|
||||||
And I press "Display options" in the app
|
|
||||||
And I press "Synchronise now" in the app
|
|
||||||
Then I should not see "There are offline comments to be synchronised."
|
|
||||||
And I should see "comment test"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (1)"
|
|
||||||
And I press "Comments (1)" in the app
|
|
||||||
And I switch offline mode to "true"
|
|
||||||
And I press "Delete" in the app
|
|
||||||
And I press "trash" in the app
|
|
||||||
And I press "Delete" near "Cancel" in the app
|
|
||||||
Then I should see "Comment deleted"
|
|
||||||
And I should see "There are offline comments to be synchronised."
|
|
||||||
And I should see "Deleted offline"
|
|
||||||
And I should see "comment test"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (1)"
|
|
||||||
And I press "Comments (1)" in the app
|
|
||||||
And I switch offline mode to "false"
|
|
||||||
And I press "Display options" in the app
|
|
||||||
And I press "Synchronise now" in the app
|
|
||||||
Then I should not see "There are offline comments to be synchronised."
|
|
||||||
And I should not see "comment test"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (0)"
|
|
||||||
|
|
||||||
@app @3.8.0 @mobile @OK
|
@app @3.8.0
|
||||||
Scenario: Add comments and delete comments mobile (blogs)
|
Scenario: Create and delete offline comments and synchronise (database)
|
||||||
When I enter the app
|
Given I enter the app
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
And I should see "Course 1"
|
And I press "Data" in the app
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
And I press "Display options" in the app
|
||||||
And I press "menu" in the app
|
And I press "Open in browser" in the app
|
||||||
And I press "Website" in the app
|
And I switch to the browser tab opened by the app
|
||||||
And I switch to the browser tab opened by the app
|
And I log in as "teacher1"
|
||||||
And I follow "Log in"
|
And I add a "Text input" field to "Data" database and I fill the form with:
|
||||||
And I log in as "teacher1"
|
| Field name | Test field name |
|
||||||
And I click on "Side panel" "button"
|
| Field description | Test field description |
|
||||||
And I follow "C1"
|
And I press "Save"
|
||||||
And I press "Actions menu"
|
And I close the browser tab opened by the app
|
||||||
And I follow "Turn editing on"
|
When I enter the app
|
||||||
And I click on "Side panel" "button"
|
And I log in as "teacher1"
|
||||||
And I follow "Add a block"
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
And I follow "Blog menu"
|
And I press "Data" in the app
|
||||||
And I follow "Add an entry about this course"
|
And I press "add" in the app
|
||||||
And I set the field "Entry title" to "Blog test"
|
And I set the field "Test field name" to "Test" in the app
|
||||||
And I set the field "Blog entry body" to "Blog body"
|
And I press "Save" in the app
|
||||||
And I press "Save changes"
|
And I press "More" in the app
|
||||||
And I close the browser tab opened by the app
|
And I press "Comments (0)" in the app
|
||||||
When I enter the app
|
And I switch offline mode to "true"
|
||||||
And I log in as "student1"
|
And I press "close" in the app
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I set the field "Add a comment..." to "comment test" in the app
|
||||||
And I should see "Course 1"
|
And I press "Save comment" in the app
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
Then I should see "Data stored in the device because it couldn't be sent. It will be sent automatically later."
|
||||||
And I press "menu" in the app
|
And I should see "There are offline comments to be synchronised."
|
||||||
And I press "Site blog" in the app
|
And I should see "comment test"
|
||||||
Then I should see "Blog test"
|
|
||||||
And I should see "Blog body"
|
|
||||||
And I should see "Comments (0)"
|
|
||||||
And I press "Comments (0)" in the app
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Add a comment..." to "comment test" in the app
|
|
||||||
And I press "Save comment" in the app
|
|
||||||
Then I should see "Comment created"
|
|
||||||
And I should see "comment test"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (1)"
|
|
||||||
And I press "Comments (1)" in the app
|
|
||||||
And I press "Delete" in the app
|
|
||||||
And I press "trash" in the app
|
|
||||||
And I press "Delete" near "Cancel" in the app
|
|
||||||
Then I should see "Comment deleted"
|
|
||||||
And I should not see "comment test"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (0)"
|
|
||||||
|
|
||||||
@app @3.8.0 @tablet @OK
|
When I press the back button in the app
|
||||||
Scenario: Add comments and delete comments tablet (blogs)
|
And I press "Comments (0)" in the app
|
||||||
When I enter the app
|
And I switch offline mode to "false"
|
||||||
And I change viewport size to "1280x1080"
|
And I press "Display options" in the app
|
||||||
And I log in as "teacher1"
|
And I press "Synchronise now" in the app
|
||||||
Then the header should be "Acceptance test site" in the app
|
Then I should see "comment test"
|
||||||
And I should see "Course 1"
|
But I should not see "There are offline comments to be synchronised."
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
And I press "menu" in the app
|
|
||||||
And I press "Website" in the app
|
|
||||||
And I switch to the browser tab opened by the app
|
|
||||||
And I follow "Log in"
|
|
||||||
And I log in as "teacher1"
|
|
||||||
And I follow "C1"
|
|
||||||
And I press "Actions menu"
|
|
||||||
And I follow "Turn editing on"
|
|
||||||
And I follow "Add a block"
|
|
||||||
And I follow "Blog menu"
|
|
||||||
And I follow "Add an entry about this course"
|
|
||||||
And I set the field "Entry title" to "Blog test"
|
|
||||||
And I set the field "Blog entry body" to "Blog body"
|
|
||||||
And I press "Save changes"
|
|
||||||
And I close the browser tab opened by the app
|
|
||||||
When I enter the app
|
|
||||||
And I change viewport size to "1280x1080"
|
|
||||||
And I log in as "student1"
|
|
||||||
Then the header should be "Acceptance test site" in the app
|
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
And I press "Site blog" in the app
|
|
||||||
Then I should see "Blog test"
|
|
||||||
And I should see "Blog body"
|
|
||||||
And I should see "Comments (0)"
|
|
||||||
And I press "Comments (0)" in the app
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Add a comment..." to "comment test" in the app
|
|
||||||
And I press "Save comment" in the app
|
|
||||||
Then I should see "Comment created"
|
|
||||||
And I should see "comment test"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (1)"
|
|
||||||
And I press "Comments (1)" in the app
|
|
||||||
And I press "Delete" in the app
|
|
||||||
And I press "trash" in the app
|
|
||||||
And I press "Delete" near "Cancel" in the app
|
|
||||||
Then I should see "Comment deleted"
|
|
||||||
And I should not see "comment test"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (0)"
|
|
||||||
|
|
||||||
@app @3.8.0 @mobile @OK
|
When I press the back button in the app
|
||||||
Scenario: Add comments offline, delete comments offline and sync mobile (blogs)
|
And I press "Comments (1)" in the app
|
||||||
When I enter the app
|
And I switch offline mode to "true"
|
||||||
And I log in as "teacher1"
|
And I press "Delete" in the app
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I press "trash" in the app
|
||||||
And I should see "Course 1"
|
And I press "Delete" near "Cancel" in the app
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
Then I should see "Comment deleted"
|
||||||
And I press "menu" in the app
|
And I should see "There are offline comments to be synchronised."
|
||||||
And I press "Website" in the app
|
And I should see "Deleted offline"
|
||||||
And I switch to the browser tab opened by the app
|
And I should see "comment test"
|
||||||
And I follow "Log in"
|
|
||||||
And I log in as "teacher1"
|
|
||||||
And I click on "Side panel" "button"
|
|
||||||
And I follow "C1"
|
|
||||||
And I press "Actions menu"
|
|
||||||
And I follow "Turn editing on"
|
|
||||||
And I click on "Side panel" "button"
|
|
||||||
And I follow "Add a block"
|
|
||||||
And I follow "Blog menu"
|
|
||||||
And I follow "Add an entry about this course"
|
|
||||||
And I set the field "Entry title" to "Blog test"
|
|
||||||
And I set the field "Blog entry body" to "Blog body"
|
|
||||||
And I press "Save changes"
|
|
||||||
And I close the browser tab opened by the app
|
|
||||||
When I enter the app
|
|
||||||
And I log in as "student1"
|
|
||||||
Then the header should be "Acceptance test site" in the app
|
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
And I press "menu" in the app
|
|
||||||
And I press "Site blog" in the app
|
|
||||||
Then I should see "Blog test"
|
|
||||||
And I should see "Blog body"
|
|
||||||
And I should see "Comments (0)"
|
|
||||||
And I press "Comments (0)" in the app
|
|
||||||
And I switch offline mode to "true"
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Add a comment..." to "comment test" in the app
|
|
||||||
And I press "Save comment" in the app
|
|
||||||
Then I should see "Data stored in the device because it couldn't be sent. It will be sent automatically later."
|
|
||||||
And I should see "There are offline comments to be synchronised."
|
|
||||||
And I should see "comment test"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (0)"
|
|
||||||
And I press "Comments (0)" in the app
|
|
||||||
And I switch offline mode to "false"
|
|
||||||
And I press "Display options" in the app
|
|
||||||
And I press "Synchronise now" in the app
|
|
||||||
Then I should not see "There are offline comments to be synchronised."
|
|
||||||
And I should see "comment test"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (1)"
|
|
||||||
And I press "Comments (1)" in the app
|
|
||||||
And I switch offline mode to "true"
|
|
||||||
And I press "Delete" in the app
|
|
||||||
And I press "trash" in the app
|
|
||||||
And I press "Delete" near "Cancel" in the app
|
|
||||||
Then I should see "Comment deleted"
|
|
||||||
And I should see "There are offline comments to be synchronised."
|
|
||||||
And I should see "Deleted offline"
|
|
||||||
And I should see "comment test"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (1)"
|
|
||||||
And I press "Comments (1)" in the app
|
|
||||||
And I switch offline mode to "false"
|
|
||||||
And I press "Display options" in the app
|
|
||||||
And I press "Synchronise now" in the app
|
|
||||||
Then I should not see "There are offline comments to be synchronised."
|
|
||||||
And I should not see "comment test"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I should see "Comments (0)"
|
|
||||||
|
|
||||||
@app @3.8.0 @tablet @OK
|
When I press the back button in the app
|
||||||
Scenario: Add comments offline, delete comments offline and sync tablet (blogs)
|
And I press "Comments (1)" in the app
|
||||||
When I enter the app
|
And I switch offline mode to "false"
|
||||||
And I change viewport size to "1280x1080"
|
And I press "Display options" in the app
|
||||||
And I log in as "teacher1"
|
And I press "Synchronise now" in the app
|
||||||
Then the header should be "Acceptance test site" in the app
|
Then I should not see "There are offline comments to be synchronised."
|
||||||
And I should see "Course 1"
|
And I should not see "comment test"
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
And I press "menu" in the app
|
When I press the back button in the app
|
||||||
And I press "Website" in the app
|
And I should see "Comments (0)"
|
||||||
And I switch to the browser tab opened by the app
|
|
||||||
And I follow "Log in"
|
@app @3.8.0
|
||||||
And I log in as "teacher1"
|
Scenario: Create and delete comments (glossary)
|
||||||
And I follow "C1"
|
# Create glossary entry and comment as a teacher
|
||||||
And I press "Actions menu"
|
When I enter the app
|
||||||
And I follow "Turn editing on"
|
And I log in as "teacher1"
|
||||||
And I follow "Add a block"
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
And I follow "Blog menu"
|
And I press "Test glossary" in the app
|
||||||
And I follow "Add an entry about this course"
|
And I press "close" in the app
|
||||||
And I set the field "Entry title" to "Blog test"
|
And I set the field "Concept" to "potato" in the app
|
||||||
And I set the field "Blog entry body" to "Blog body"
|
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
||||||
And I press "Save changes"
|
And I press "Save" in the app
|
||||||
And I close the browser tab opened by the app
|
And I press "potato" in the app
|
||||||
When I enter the app
|
And I press "Comments (0)" in the app
|
||||||
And I change viewport size to "1280x1080"
|
And I press "close" in the app
|
||||||
And I log in as "student1"
|
And I set the field "Add a comment..." to "comment test teacher" in the app
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I press "Save comment" in the app
|
||||||
And I should see "Course 1"
|
Then I should see "Comment created"
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
And I should see "comment test teacher"
|
||||||
And I press "Site blog" in the app
|
And I press the back button in the app
|
||||||
Then I should see "Blog test"
|
And I should see "Comments (1)"
|
||||||
And I should see "Blog body"
|
|
||||||
And I should see "Comments (0)"
|
# Create and delete comments as a student
|
||||||
And I press "Comments (0)" in the app
|
When I enter the app
|
||||||
And I switch offline mode to "true"
|
And I log in as "student1"
|
||||||
And I press "close" in the app
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
And I set the field "Add a comment..." to "comment test" in the app
|
And I press "Test glossary" in the app
|
||||||
And I press "Save comment" in the app
|
And I press "potato" in the app
|
||||||
Then I should see "Data stored in the device because it couldn't be sent. It will be sent automatically later."
|
And I press "Comments (1)" in the app
|
||||||
And I should see "There are offline comments to be synchronised."
|
And I press "close" in the app
|
||||||
And I should see "comment test"
|
And I set the field "Add a comment..." to "comment test student" in the app
|
||||||
And I press the back button in the app
|
And I press "Save comment" in the app
|
||||||
And I should see "Comments (0)"
|
Then I should see "Comment created"
|
||||||
And I press "Comments (0)" in the app
|
And I should see "comment test teacher"
|
||||||
And I switch offline mode to "false"
|
And I should see "comment test student"
|
||||||
And I press "Display options" in the app
|
|
||||||
And I press "Synchronise now" in the app
|
When I press the back button in the app
|
||||||
Then I should not see "There are offline comments to be synchronised."
|
And I press "Comments (2)" in the app
|
||||||
And I should see "comment test"
|
And I press "Delete" in the app
|
||||||
And I press the back button in the app
|
And I press "trash" in the app
|
||||||
And I should see "Comments (1)"
|
And I press "Delete" near "Cancel" in the app
|
||||||
And I press "Comments (1)" in the app
|
Then I should see "Comment deleted"
|
||||||
And I switch offline mode to "true"
|
And I should see "comment test teacher"
|
||||||
And I press "Delete" in the app
|
But I should not see "comment test student"
|
||||||
And I press "trash" in the app
|
|
||||||
And I press "Delete" near "Cancel" in the app
|
When I press the back button in the app
|
||||||
Then I should see "Comment deleted"
|
And I should see "Comments (1)"
|
||||||
And I should see "There are offline comments to be synchronised."
|
|
||||||
And I should see "Deleted offline"
|
@app @3.8.0
|
||||||
And I should see "comment test"
|
Scenario: Create and delete offline comments and synchronise (glossary)
|
||||||
And I press the back button in the app
|
When I enter the app
|
||||||
And I should see "Comments (1)"
|
And I log in as "teacher1"
|
||||||
And I press "Comments (1)" in the app
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
And I switch offline mode to "false"
|
And I press "Test glossary" in the app
|
||||||
And I press "Display options" in the app
|
And I press "close" in the app
|
||||||
And I press "Synchronise now" in the app
|
And I set the field "Concept" to "potato" in the app
|
||||||
Then I should not see "There are offline comments to be synchronised."
|
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
||||||
And I should not see "comment test"
|
And I press "Save" in the app
|
||||||
And I press the back button in the app
|
And I press "potato" in the app
|
||||||
And I should see "Comments (0)"
|
And I press "Comments (0)" in the app
|
||||||
|
And I switch offline mode to "true"
|
||||||
|
And I press "close" in the app
|
||||||
|
And I set the field "Add a comment..." to "comment test" in the app
|
||||||
|
And I press "Save comment" in the app
|
||||||
|
Then I should see "Data stored in the device because it couldn't be sent. It will be sent automatically later."
|
||||||
|
And I should see "There are offline comments to be synchronised."
|
||||||
|
And I should see "comment test"
|
||||||
|
|
||||||
|
When I press the back button in the app
|
||||||
|
And I press "Comments (0)" in the app
|
||||||
|
And I switch offline mode to "false"
|
||||||
|
And I press "Display options" in the app
|
||||||
|
And I press "Synchronise now" in the app
|
||||||
|
Then I should see "comment test"
|
||||||
|
But I should not see "There are offline comments to be synchronised."
|
||||||
|
|
||||||
|
When I press the back button in the app
|
||||||
|
And I press "Comments (1)" in the app
|
||||||
|
And I switch offline mode to "true"
|
||||||
|
And I press "Delete" in the app
|
||||||
|
And I press "trash" in the app
|
||||||
|
And I press "Delete" near "Cancel" in the app
|
||||||
|
Then I should see "Comment deleted"
|
||||||
|
And I should see "There are offline comments to be synchronised."
|
||||||
|
And I should see "Deleted offline"
|
||||||
|
And I should see "comment test"
|
||||||
|
|
||||||
|
When I press the back button in the app
|
||||||
|
And I press "Comments (1)" in the app
|
||||||
|
And I switch offline mode to "false"
|
||||||
|
And I press "Display options" in the app
|
||||||
|
And I press "Synchronise now" in the app
|
||||||
|
Then I should not see "There are offline comments to be synchronised."
|
||||||
|
And I should not see "comment test"
|
||||||
|
|
||||||
|
When I press the back button in the app
|
||||||
|
And I should see "Comments (0)"
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
|
Scenario: Create and delete comments (blogs)
|
||||||
|
# Create blog as a teacher
|
||||||
|
Given I enter the app
|
||||||
|
And I log in as "teacher1"
|
||||||
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
|
And I press "menu" in the app
|
||||||
|
And I press "Website" in the app
|
||||||
|
And I switch to the browser tab opened by the app
|
||||||
|
And I follow "Log in"
|
||||||
|
And I log in as "teacher1"
|
||||||
|
And I click on "Side panel" "button"
|
||||||
|
And I follow "C1"
|
||||||
|
And I press "Turn editing on"
|
||||||
|
And I click on "Side panel" "button"
|
||||||
|
And I follow "Add a block"
|
||||||
|
And I follow "Blog menu"
|
||||||
|
And I follow "Add an entry about this course"
|
||||||
|
And I set the field "Entry title" to "Blog test"
|
||||||
|
And I set the field "Blog entry body" to "Blog body"
|
||||||
|
And I press "Save changes"
|
||||||
|
And I close the browser tab opened by the app
|
||||||
|
|
||||||
|
# Create and delete comments as a student
|
||||||
|
When I enter the app
|
||||||
|
And I log in as "student1"
|
||||||
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
|
And I press "menu" in the app
|
||||||
|
And I press "Site blog" in the app
|
||||||
|
Then I should see "Blog test"
|
||||||
|
And I should see "Blog body"
|
||||||
|
|
||||||
|
When I press "Comments (0)" in the app
|
||||||
|
And I press "close" in the app
|
||||||
|
And I set the field "Add a comment..." to "comment test" in the app
|
||||||
|
And I press "Save comment" in the app
|
||||||
|
Then I should see "Comment created"
|
||||||
|
And I should see "comment test"
|
||||||
|
|
||||||
|
When I press the back button in the app
|
||||||
|
And I press "Comments (1)" in the app
|
||||||
|
And I press "Delete" in the app
|
||||||
|
And I press "trash" in the app
|
||||||
|
And I press "Delete" near "Cancel" in the app
|
||||||
|
Then I should see "Comment deleted"
|
||||||
|
But I should not see "comment test"
|
||||||
|
|
||||||
|
When I press the back button in the app
|
||||||
|
Then I should see "Comments (0)"
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
|
Scenario: Create and delete offline comments and synchronise (blogs)
|
||||||
|
# Create blog as a teacher
|
||||||
|
Given I enter the app
|
||||||
|
And I log in as "teacher1"
|
||||||
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
|
And I press "menu" in the app
|
||||||
|
And I press "Website" in the app
|
||||||
|
And I switch to the browser tab opened by the app
|
||||||
|
And I follow "Log in"
|
||||||
|
And I log in as "teacher1"
|
||||||
|
And I click on "Side panel" "button"
|
||||||
|
And I follow "C1"
|
||||||
|
And I press "Turn editing on"
|
||||||
|
And I click on "Side panel" "button"
|
||||||
|
And I follow "Add a block"
|
||||||
|
And I follow "Blog menu"
|
||||||
|
And I follow "Add an entry about this course"
|
||||||
|
And I set the field "Entry title" to "Blog test"
|
||||||
|
And I set the field "Blog entry body" to "Blog body"
|
||||||
|
And I press "Save changes"
|
||||||
|
And I close the browser tab opened by the app
|
||||||
|
|
||||||
|
# Create and delete comments as a student
|
||||||
|
When I enter the app
|
||||||
|
And I log in as "student1"
|
||||||
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
|
And I press "menu" in the app
|
||||||
|
And I press "Site blog" in the app
|
||||||
|
Then I should see "Blog test"
|
||||||
|
And I should see "Blog body"
|
||||||
|
|
||||||
|
When I press "Comments (0)" in the app
|
||||||
|
And I switch offline mode to "true"
|
||||||
|
And I press "close" in the app
|
||||||
|
And I set the field "Add a comment..." to "comment test" in the app
|
||||||
|
And I press "Save comment" in the app
|
||||||
|
Then I should see "Data stored in the device because it couldn't be sent. It will be sent automatically later."
|
||||||
|
And I should see "There are offline comments to be synchronised."
|
||||||
|
And I should see "comment test"
|
||||||
|
|
||||||
|
When I press the back button in the app
|
||||||
|
And I press "Comments (0)" in the app
|
||||||
|
And I switch offline mode to "false"
|
||||||
|
And I press "Display options" in the app
|
||||||
|
And I press "Synchronise now" in the app
|
||||||
|
Then I should see "comment test"
|
||||||
|
But I should not see "There are offline comments to be synchronised."
|
||||||
|
|
||||||
|
When I press the back button in the app
|
||||||
|
And I press "Comments (1)" in the app
|
||||||
|
And I switch offline mode to "true"
|
||||||
|
And I press "Delete" in the app
|
||||||
|
And I press "trash" in the app
|
||||||
|
And I press "Delete" near "Cancel" in the app
|
||||||
|
Then I should see "Comment deleted"
|
||||||
|
And I should see "There are offline comments to be synchronised."
|
||||||
|
And I should see "Deleted offline"
|
||||||
|
And I should see "comment test"
|
||||||
|
|
||||||
|
When I press the back button in the app
|
||||||
|
And I press "Comments (1)" in the app
|
||||||
|
And I switch offline mode to "false"
|
||||||
|
And I press "Display options" in the app
|
||||||
|
And I press "Synchronise now" in the app
|
||||||
|
Then I should not see "There are offline comments to be synchronised."
|
||||||
|
And I should not see "comment test"
|
||||||
|
|
||||||
|
When I press the back button in the app
|
||||||
|
Then I should see "Comments (0)"
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,36 @@
|
||||||
|
@core @core_course @app @javascript
|
||||||
|
Feature: Check course completion feature.
|
||||||
|
In order to track the progress of the course on mobile device
|
||||||
|
As a student
|
||||||
|
I need to be able to update the activity completion status.
|
||||||
|
|
||||||
|
Background:
|
||||||
|
Given the following "users" exist:
|
||||||
|
| username | firstname | lastname | email |
|
||||||
|
| student1 | Student | 1 | student1@example.com |
|
||||||
|
And the following "courses" exist:
|
||||||
|
| fullname | shortname | category | enablecompletion |
|
||||||
|
| Course 1 | C1 | 0 | 1 |
|
||||||
|
And the following "course enrolments" exist:
|
||||||
|
| user | course | role |
|
||||||
|
| student1 | C1 | student |
|
||||||
|
|
||||||
|
Scenario: Complete the activity manually by clicking at the completion checkbox.
|
||||||
|
Given the following "activities" exist:
|
||||||
|
| activity | name | course | idnumber | completion | completionview |
|
||||||
|
| forum | First forum | C1 | forum1 | 1 | 0 |
|
||||||
|
| forum | Second forum | C1 | forum2 | 1 | 0 |
|
||||||
|
When I enter the app
|
||||||
|
And I log in as "student1"
|
||||||
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
|
# Set activities as completed.
|
||||||
|
And I should see "0%"
|
||||||
|
And I press "Not completed: First forum. Select to mark as complete." in the app
|
||||||
|
And I should see "50%"
|
||||||
|
And I press "Not completed: Second forum. Select to mark as complete." in the app
|
||||||
|
And I should see "100%"
|
||||||
|
# Set activities as not completed.
|
||||||
|
And I press "Completed: First forum. Select to mark as not complete." in the app
|
||||||
|
And I should see "50%"
|
||||||
|
And I press "Completed: Second forum. Select to mark as not complete." in the app
|
||||||
|
And I should see "0%"
|
|
@ -0,0 +1,120 @@
|
||||||
|
@core @core_course @app @javascript
|
||||||
|
Feature: Test course list shown on app start tab
|
||||||
|
In order to select a course
|
||||||
|
As a student
|
||||||
|
I need to see the correct list of courses
|
||||||
|
|
||||||
|
Background:
|
||||||
|
Given the following "courses" exist:
|
||||||
|
| fullname | shortname |
|
||||||
|
| Course 1 | C1 |
|
||||||
|
| Course 2 | C2 |
|
||||||
|
And the following "users" exist:
|
||||||
|
| username |
|
||||||
|
| student1 |
|
||||||
|
| student2 |
|
||||||
|
And the following "course enrolments" exist:
|
||||||
|
| user | course | role |
|
||||||
|
| student1 | C1 | student |
|
||||||
|
| student2 | C1 | student |
|
||||||
|
| student2 | C2 | student |
|
||||||
|
|
||||||
|
Scenario: Student is registered on one course
|
||||||
|
When I enter the app
|
||||||
|
And I log in as "student1"
|
||||||
|
Then I should see "Course 1"
|
||||||
|
And I should not see "Course 2"
|
||||||
|
|
||||||
|
Scenario: Student is registered on two courses (shortnames not displayed)
|
||||||
|
When I enter the app
|
||||||
|
And I log in as "student2"
|
||||||
|
Then I should see "Course 1"
|
||||||
|
And I should see "Course 2"
|
||||||
|
And I should not see "C1"
|
||||||
|
And I should not see "C2"
|
||||||
|
|
||||||
|
Scenario: Student is registered on two courses (shortnames displayed)
|
||||||
|
Given the following config values are set as admin:
|
||||||
|
| courselistshortnames | 1 |
|
||||||
|
When I enter the app
|
||||||
|
And I log in as "student2"
|
||||||
|
Then I should see "Course 1"
|
||||||
|
And I should see "Course 2"
|
||||||
|
And I should see "C1"
|
||||||
|
And I should see "C2"
|
||||||
|
|
||||||
|
Scenario: Student uses course list to enter course, then leaves it again
|
||||||
|
When I enter the app
|
||||||
|
And I log in as "student2"
|
||||||
|
And I press "Course 2" near "Course overview" in the app
|
||||||
|
Then the header should be "Course 2" in the app
|
||||||
|
And I press the back button in the app
|
||||||
|
Then the header should be "Acceptance test site" in the app
|
||||||
|
|
||||||
|
Scenario: Student uses filter feature to reduce course list
|
||||||
|
Given the following config values are set as admin:
|
||||||
|
| courselistshortnames | 1 |
|
||||||
|
And the following "courses" exist:
|
||||||
|
| fullname | shortname |
|
||||||
|
| Frog 3 | C3 |
|
||||||
|
| Frog 4 | C4 |
|
||||||
|
| Course 5 | C5 |
|
||||||
|
| Toad 6 | C6 |
|
||||||
|
And the following "course enrolments" exist:
|
||||||
|
| user | course | role |
|
||||||
|
| student2 | C3 | student |
|
||||||
|
| student2 | C4 | student |
|
||||||
|
| student2 | C5 | student |
|
||||||
|
| student2 | C6 | student |
|
||||||
|
# Create bogus courses so that the main ones aren't shown in the 'recently accessed' part.
|
||||||
|
# Because these come later in alphabetical order, they may not be displayed in the lower part
|
||||||
|
# which is OK.
|
||||||
|
And the following "courses" exist:
|
||||||
|
| fullname | shortname |
|
||||||
|
| Zogus 1 | Z1 |
|
||||||
|
| Zogus 2 | Z2 |
|
||||||
|
| Zogus 3 | Z3 |
|
||||||
|
| Zogus 4 | Z4 |
|
||||||
|
| Zogus 5 | Z5 |
|
||||||
|
| Zogus 6 | Z6 |
|
||||||
|
| Zogus 7 | Z7 |
|
||||||
|
| Zogus 8 | Z8 |
|
||||||
|
| Zogus 9 | Z9 |
|
||||||
|
| Zogus 10 | Z10 |
|
||||||
|
And the following "course enrolments" exist:
|
||||||
|
| user | course | role |
|
||||||
|
| student2 | Z1 | student |
|
||||||
|
| student2 | Z2 | student |
|
||||||
|
| student2 | Z3 | student |
|
||||||
|
| student2 | Z4 | student |
|
||||||
|
| student2 | Z5 | student |
|
||||||
|
| student2 | Z6 | student |
|
||||||
|
| student2 | Z7 | student |
|
||||||
|
| student2 | Z8 | student |
|
||||||
|
| student2 | Z9 | student |
|
||||||
|
| student2 | Z10 | student |
|
||||||
|
When I enter the app
|
||||||
|
And I log in as "student2"
|
||||||
|
Then I press "Display options" near "Course overview" in the app
|
||||||
|
Then I should see "C1"
|
||||||
|
And I should see "C2"
|
||||||
|
And I should see "C3"
|
||||||
|
And I should see "C4"
|
||||||
|
And I should see "C5"
|
||||||
|
And I should see "C6"
|
||||||
|
Then I press "Filter my courses" in the app
|
||||||
|
And I set the field "Filter my courses" to "fr" in the app
|
||||||
|
Then I should not see "C1"
|
||||||
|
And I should not see "C2"
|
||||||
|
And I should see "C3"
|
||||||
|
And I should see "C4"
|
||||||
|
And I should not see "C5"
|
||||||
|
And I should not see "C6"
|
||||||
|
And I press "Display options" near "Course overview" in the app
|
||||||
|
And I press "Filter my courses" in the app
|
||||||
|
Then I should see "C1"
|
||||||
|
And I should see "C2"
|
||||||
|
And I should see "C3"
|
||||||
|
And I should see "C4"
|
||||||
|
And I should see "C5"
|
||||||
|
And I should see "C6"
|
|
@ -9,14 +9,12 @@ Feature: Test basic usage of courses in app
|
||||||
| username | firstname | lastname | email |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | teacher | teacher1@example.com |
|
| teacher1 | Teacher | teacher | teacher1@example.com |
|
||||||
| student1 | Student | student | student1@example.com |
|
| student1 | Student | student | student1@example.com |
|
||||||
|
|
||||||
And the following "courses" exist:
|
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 |
|
||||||
| Course 3 | C3 | 0 |
|
| Course 3 | C3 | 0 |
|
||||||
| Course 4 | C4 | 0 |
|
| Course 4 | C4 | 0 |
|
||||||
|
|
||||||
And the following "course enrolments" exist:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
|
@ -26,137 +24,133 @@ Feature: Test basic usage of courses in app
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
| student1 | C2 | student |
|
| student1 | C2 | student |
|
||||||
| student1 | C3 | student |
|
| student1 | C3 | student |
|
||||||
|
|
||||||
And the following "activities" exist:
|
And the following "activities" exist:
|
||||||
| activity | name | intro | course | idnumber | option |
|
| activity | name | intro | course | idnumber | option |
|
||||||
| choice | Choice course 1 | Test choice description | C1 | choice1 | Option 1, Option 2, Option 3 |
|
| choice | Choice course 1 | Test choice description | C1 | choice1 | Option 1, Option 2, Option 3 |
|
||||||
| choice | Choice course 2 | Test choice description | C2 | choice1 | Option 1, Option 2, Option 3 |
|
| choice | Choice course 2 | Test choice description | C2 | choice1 | Option 1, Option 2, Option 3 |
|
||||||
| choice | Choice course 3 | Test choice description | C3 | choice1 | Option 1, Option 2, Option 3 |
|
| choice | Choice course 3 | Test choice description | C3 | choice1 | Option 1, Option 2, Option 3 |
|
||||||
| choice | Choice course 4 | Test choice description | C4 | choice1 | Option 1, Option 2, Option 3 |
|
| choice | Choice course 4 | Test choice description | C4 | choice1 | Option 1, Option 2, Option 3 |
|
||||||
|
|
||||||
And the following "activities" exist:
|
And the following "activities" exist:
|
||||||
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled |
|
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled |
|
||||||
| assign | C1 | assign1 | assignment | Test assignment description | 1 |
|
| assign | C1 | assign1 | assignment | Test assignment description | 1 |
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
@app @3.8.0
|
||||||
Scenario: Dashboard tab displayed in >= 3.3 sites
|
Scenario: Dashboard tab displayed in >= 3.3 sites
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
Then I should see "Dashboard"
|
Then I should see "Dashboard"
|
||||||
And the header should be "Acceptance test site" in the app
|
And the header should be "Acceptance test site" in the app
|
||||||
And I should see "Course 1"
|
And I should see "Course 1"
|
||||||
And I should see "Course 2"
|
And I should see "Course 2"
|
||||||
And I should see "Course 3"
|
And I should see "Course 3"
|
||||||
And I press "Site home" in the app
|
|
||||||
Then I should see "Dashboard"
|
|
||||||
And the header should be "Acceptance test site" in the app
|
|
||||||
And I press "Dashboard" in the app
|
|
||||||
Then I should see "Course 1"
|
|
||||||
And I should see "Course 2"
|
|
||||||
And I should see "Course 3"
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
When I press "Site home" in the app
|
||||||
|
Then I should see "Dashboard"
|
||||||
|
And the header should be "Acceptance test site" in the app
|
||||||
|
|
||||||
|
When I press "Dashboard" in the app
|
||||||
|
Then I should see "Course 1"
|
||||||
|
And I should see "Course 2"
|
||||||
|
And I should see "Course 3"
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
Scenario: See my courses
|
Scenario: See my courses
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
Then the header should be "Acceptance test site" in the app
|
Then the header should be "Acceptance test site" in the app
|
||||||
And I should see "Course 1"
|
And I should see "Course 1"
|
||||||
And I should see "Course 2"
|
And I should see "Course 2"
|
||||||
And I should see "Course 3"
|
And I should see "Course 3"
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
Then I should see "Choice course 1"
|
|
||||||
And the header should be "Course 1" in the app
|
|
||||||
And I press "Choice course 1" in the app
|
|
||||||
Then I should see "Test choice description"
|
|
||||||
And the header should be "Choice course 1" in the app
|
|
||||||
And I press the back button in the app
|
|
||||||
And I press the back button in the app
|
|
||||||
And I press "Course 2" near "Recently accessed courses" in the app
|
|
||||||
Then I should see "Choice course 2"
|
|
||||||
And the header should be "Course 2" in the app
|
|
||||||
And I press the back button in the app
|
|
||||||
And I press "Course 3" near "Recently accessed courses" in the app
|
|
||||||
Then I should see "Choice course 3"
|
|
||||||
And the header should be "Course 3" in the app
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
When I press "Course 1" near "Recently accessed courses" in the app
|
||||||
|
Then I should see "Choice course 1"
|
||||||
|
And the header should be "Course 1" in the app
|
||||||
|
|
||||||
|
When I press "Choice course 1" in the app
|
||||||
|
Then I should see "Test choice description"
|
||||||
|
And the header should be "Choice course 1" in the app
|
||||||
|
|
||||||
|
When I press the back button in the app
|
||||||
|
And I press the back button in the app
|
||||||
|
And I press "Course 2" near "Recently accessed courses" in the app
|
||||||
|
Then I should see "Choice course 2"
|
||||||
|
And the header should be "Course 2" in the app
|
||||||
|
|
||||||
|
When I press the back button in the app
|
||||||
|
And I press "Course 3" near "Recently accessed courses" in the app
|
||||||
|
Then I should see "Choice course 3"
|
||||||
|
And the header should be "Course 3" in the app
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
Scenario: Search for a course
|
Scenario: Search for a course
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I press "Search courses" in the app
|
||||||
And I should see "Course 1"
|
And I set the field "Search" to "Course 4" in the app
|
||||||
And I should see "Course 2"
|
And I press "Search" in the app
|
||||||
And I should see "Course 3"
|
Then I should see "Course 4"
|
||||||
And I press "Search courses" in the app
|
And the header should be "Search courses" in the app
|
||||||
And I set the field "Search" to "Course 4" in the app
|
|
||||||
And I press "Search" in the app
|
|
||||||
Then I should see "Course 4"
|
|
||||||
And the header should be "Search courses" in the app
|
|
||||||
And I press "Course 4" in the app
|
|
||||||
Then I should see "Course 4"
|
|
||||||
And the header should be "Course 4" in the app
|
|
||||||
And I press the back button in the app
|
|
||||||
And I set the field "Search" to "Course" in the app
|
|
||||||
And I press "Search" in the app
|
|
||||||
Then I should see "Course 1"
|
|
||||||
And I should see "Course 2"
|
|
||||||
And I should see "Course 3"
|
|
||||||
And I should see "Course 4"
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
When I press "Course 4" in the app
|
||||||
|
Then I should see "Course 4"
|
||||||
|
And the header should be "Course 4" in the app
|
||||||
|
|
||||||
|
When I press the back button in the app
|
||||||
|
And I set the field "Search" to "Course" in the app
|
||||||
|
And I press "Search" in the app
|
||||||
|
Then I should see "Course 1"
|
||||||
|
And I should see "Course 2"
|
||||||
|
And I should see "Course 3"
|
||||||
|
And I should see "Course 4"
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
Scenario: Links to actions in Timeline work for teachers/students
|
Scenario: Links to actions in Timeline work for teachers/students
|
||||||
When I enter the app
|
# Configure assignment as teacher
|
||||||
And I log in as "teacher1"
|
When I enter the app
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I log in as "teacher1"
|
||||||
And I should see "Course 1"
|
Then I should see "Timeline"
|
||||||
And I should see "Course 2"
|
|
||||||
And I should see "Course 3"
|
Given I press "Course 1" near "Recently accessed courses" in the app
|
||||||
And I should see "Timeline"
|
And I press "assignment" in the app
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
And I press "Display options" in the app
|
||||||
And I press "assignment" in the app
|
And I press "Open in browser" in the app
|
||||||
And I press "Display options" in the app
|
And I switch to the browser tab opened by the app
|
||||||
And I press "Open in browser" in the app
|
And I log in as "teacher1"
|
||||||
And I switch to the browser tab opened by the app
|
And I press "Actions menu"
|
||||||
And I log in as "teacher1"
|
And I follow "Edit settings"
|
||||||
And I press "Actions menu"
|
And I press "Expand all"
|
||||||
And I follow "Edit settings"
|
And I click on "duedate[enabled]" "checkbox"
|
||||||
And I press "Expand all"
|
And I click on "gradingduedate[enabled]" "checkbox"
|
||||||
And I click on "duedate[enabled]" "checkbox"
|
And I press "Save and return to course"
|
||||||
And I click on "gradingduedate[enabled]" "checkbox"
|
And I close the browser tab opened by the app
|
||||||
And I press "Save and return to course"
|
|
||||||
And I close the browser tab opened by the app
|
# Submit assignment as student
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I press "Add submission" in the app
|
||||||
And I should see "Course 1"
|
Then the header should be "assignment" in the app
|
||||||
And I should see "Course 2"
|
And I should see "Test assignment description"
|
||||||
And I should see "Course 3"
|
And I should see "No attempt"
|
||||||
And I should see "Timeline"
|
And I should see "Due date"
|
||||||
And I press "Add submission" in the app
|
|
||||||
Then the header should be "assignment" in the app
|
When I press "Add submission" in the app
|
||||||
And I should see "Test assignment description"
|
And I set the field "Online text submissions" to "test" in the app
|
||||||
And I should see "No attempt"
|
And I press "Save" in the app
|
||||||
And I should see "Due date"
|
And I press "Submit assignment" in the app
|
||||||
And I press "Add submission" in the app
|
And I press "OK" in the app
|
||||||
And I set the field "Online text submissions" to "test" in the app
|
Then the header should be "assignment" in the app
|
||||||
And I press "Save" in the app
|
And I should see "Test assignment description"
|
||||||
And I press "Submit assignment" in the app
|
And I should see "Submitted for grading"
|
||||||
And I press "OK" in the app
|
And I should see "Due date"
|
||||||
Then the header should be "assignment" in the app
|
|
||||||
And I should see "Test assignment description"
|
# Grade assignment as teacher
|
||||||
And I should see "Submitted for grading"
|
When I enter the app
|
||||||
And I should see "Due date"
|
And I log in as "teacher1"
|
||||||
When I enter the app
|
And I press "Grade" in the app
|
||||||
And I log in as "teacher1"
|
Then the header should be "assignment" in the app
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I should see "Test assignment description"
|
||||||
And I should see "Course 1"
|
And I should see "Time remaining"
|
||||||
And I should see "Course 2"
|
|
||||||
And I should see "Course 3"
|
When I press "Needs grading" in the app
|
||||||
And I should see "Timeline"
|
Then I should see "Student student"
|
||||||
And I press "Grade" in the app
|
And I should see "Not graded"
|
||||||
Then the header should be "assignment" in the app
|
|
||||||
And I should see "Test assignment description"
|
|
||||||
And I should see "Time remaining"
|
|
||||||
And I press "Needs grading" in the app
|
|
||||||
Then I should see "Student student"
|
|
||||||
And I should see "Not graded"
|
|
||||||
|
|
|
@ -24,8 +24,8 @@ Feature: Test basic usage of forum activity in app
|
||||||
| activity | name | intro | course | idnumber | groupmode | assessed | scale |
|
| activity | name | intro | course | idnumber | groupmode | assessed | scale |
|
||||||
| forum | Test forum name | Test forum | C1 | forum | 0 | 1 | 1 |
|
| forum | Test forum name | Test forum | C1 | forum | 0 | 1 | 1 |
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
@app @3.8.0
|
||||||
Scenario: Student starts a discussion
|
Scenario: Student starts a discussion
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
@ -35,11 +35,12 @@ Feature: Test basic usage of forum activity in app
|
||||||
And I set the field "Message" to "An awesome message" in the app
|
And I set the field "Message" to "An awesome message" in the app
|
||||||
And I press "Post to forum" in the app
|
And I press "Post to forum" in the app
|
||||||
Then I should see "My happy subject"
|
Then I should see "My happy subject"
|
||||||
And I press "My happy subject" in the app
|
|
||||||
And I should see "An awesome message"
|
|
||||||
|
|
||||||
@app_from3.7
|
When I press "My happy subject" in the app
|
||||||
Scenario: Student posts a reply
|
Then I should see "An awesome message"
|
||||||
|
|
||||||
|
@app_from3.7
|
||||||
|
Scenario: Student posts a reply
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
@ -55,73 +56,45 @@ Feature: Test basic usage of forum activity in app
|
||||||
Then I should see "DiscussionMessage"
|
Then I should see "DiscussionMessage"
|
||||||
And I should see "ReplyMessage"
|
And I should see "ReplyMessage"
|
||||||
|
|
||||||
@app @3.8.0 @mobile @OK
|
@app @3.8.0
|
||||||
Scenario: Student stars a discussion (mobile)
|
Scenario: Student stars a discussion
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
And I press "Test forum name" in the app
|
And I press "Test forum name" in the app
|
||||||
And I press "close" in the app
|
And I press "close" in the app
|
||||||
And I set the field "Subject" to "Auto-test star" in the app
|
And I set the field "Subject" to "starred subject" in the app
|
||||||
And I set the field "Message" to "Auto-test star message" in the app
|
And I set the field "Message" to "starred message" in the app
|
||||||
And I press "Post to forum" in the app
|
And I press "Post to forum" in the app
|
||||||
And I wait "60" seconds
|
|
||||||
And I press "close" in the app
|
And I press "close" in the app
|
||||||
And I set the field "Subject" to "Auto-test star" in the app
|
And I set the field "Subject" to "normal subject" in the app
|
||||||
And I set the field "Message" to "Auto-test no star message" in the app
|
And I set the field "Message" to "normal message" in the app
|
||||||
And I press "Post to forum" in the app
|
And I press "Post to forum" in the app
|
||||||
And I press "Auto-test star" near "Last post a minute ago" in the app
|
And I press "starred subject" in the app
|
||||||
Then I should see "Auto-test star message"
|
Then I should see "starred message"
|
||||||
And I press the back button in the app
|
|
||||||
And I press "Display options" near "Last post a minute ago" in the app
|
|
||||||
And I press "Star this discussion" in the app
|
|
||||||
And I press "Auto-test star" near "Last post a minute ago" in the app
|
|
||||||
Then I should see "Auto-test star message"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I press "Auto-test star" near "Last post a few seconds ago" in the app
|
|
||||||
Then I should see "Auto-test no star message"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I press "Display options" near "Last post a minute ago" in the app
|
|
||||||
And I press "Unstar this discussion" in the app
|
|
||||||
And I press "Auto-test star" near "Last post a few seconds ago" in the app
|
|
||||||
Then I should see "Auto-test no star message"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I press "Auto-test star" near "Last post a minute ago" in the app
|
|
||||||
Then I should see "Auto-test star message"
|
|
||||||
|
|
||||||
@app @3.8.0 @tablet @OK
|
When I press the back button in the app
|
||||||
Scenario: Student stars a discussion (tablet)
|
And I press "Display options" near "starred subject" in the app
|
||||||
When I enter the app
|
|
||||||
And I change viewport size to "1280x1080"
|
|
||||||
And I log in as "student1"
|
|
||||||
And I press "Course 1" near "Course overview" in the app
|
|
||||||
And I press "Test forum name" in the app
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Subject" to "Auto-test star" in the app
|
|
||||||
And I set the field "Message" to "Auto-test star message" in the app
|
|
||||||
And I press "Post to forum" in the app
|
|
||||||
And I wait "60" seconds
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Subject" to "Auto-test star" in the app
|
|
||||||
And I set the field "Message" to "Auto-test no star message" in the app
|
|
||||||
And I press "Post to forum" in the app
|
|
||||||
And I press "Auto-test star" near "Last post a minute ago" in the app
|
|
||||||
Then I should see "Auto-test star message"
|
|
||||||
And I press "Display options" near "Last post a minute ago" in the app
|
|
||||||
And I press "Star this discussion" in the app
|
And I press "Star this discussion" in the app
|
||||||
And I press "Auto-test star" near "Last post a minute ago" in the app
|
And I press "starred subject" in the app
|
||||||
Then I should see "Auto-test star message"
|
Then I should see "starred message"
|
||||||
And I press "Auto-test star" near "Last post a few seconds ago" in the app
|
|
||||||
Then I should see "Auto-test no star message"
|
|
||||||
And I press "Display options" near "Last post a minute ago" in the app
|
|
||||||
And I press "Unstar this discussion" in the app
|
|
||||||
And I press "Auto-test star" near "Last post a few seconds ago" in the app
|
|
||||||
Then I should see "Auto-test no star message"
|
|
||||||
And I press "Auto-test star" near "Last post a minute ago" in the app
|
|
||||||
Then I should see "Auto-test star message"
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
When I press the back button in the app
|
||||||
Scenario: Teacher star and pin a discussion
|
And I press "normal subject" in the app
|
||||||
|
Then I should see "normal message"
|
||||||
|
|
||||||
|
When I press the back button in the app
|
||||||
|
And I press "Display options" near "starred subject" in the app
|
||||||
|
And I press "Unstar this discussion" in the app
|
||||||
|
And I press "starred subject" in the app
|
||||||
|
Then I should see "starred message"
|
||||||
|
|
||||||
|
When I press the back button in the app
|
||||||
|
And I press "normal subject" in the app
|
||||||
|
Then I should see "normal message"
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
|
Scenario: Teacher star and pin a discussion
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
@ -142,18 +115,19 @@ Feature: Test basic usage of forum activity in app
|
||||||
And I press "Star this discussion" in the app
|
And I press "Star this discussion" in the app
|
||||||
And I press "Display options" near "Auto-test pin" in the app
|
And I press "Display options" near "Auto-test pin" in the app
|
||||||
And I press "Pin this discussion" in the app
|
And I press "Pin this discussion" in the app
|
||||||
And I should see "Auto-test pin"
|
Then I should see "Auto-test pin"
|
||||||
And I should see "Auto-test star"
|
And I should see "Auto-test star"
|
||||||
And I should see "Auto-test"
|
And I should see "Auto-test"
|
||||||
And I press "Display options" near "Auto-test pin" in the app
|
|
||||||
|
When I press "Display options" near "Auto-test pin" in the app
|
||||||
And I press "Unpin this discussion" in the app
|
And I press "Unpin this discussion" in the app
|
||||||
And I press "Display options" near "Auto-test star" in the app
|
And I press "Display options" near "Auto-test star" in the app
|
||||||
And I press "Unstar this discussion" in the app
|
And I press "Unstar this discussion" in the app
|
||||||
Then I should see "Auto-test star"
|
Then I should see "Auto-test star"
|
||||||
And I should see "Auto-test pin"
|
And I should see "Auto-test pin"
|
||||||
|
|
||||||
@app_upto3.6.0 @OK
|
@app_upto3.6.0
|
||||||
Scenario: Teacher checks pin and star in 3.6
|
Scenario: Teacher checks pin and star in 3.6
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
@ -167,8 +141,8 @@ Feature: Test basic usage of forum activity in app
|
||||||
Then I should not see "Star this discussion"
|
Then I should not see "Star this discussion"
|
||||||
And I should not see "Pin this discussion"
|
And I should not see "Pin this discussion"
|
||||||
|
|
||||||
@app @3.8.0 @mobile @OK
|
@app @3.8.0
|
||||||
Scenario: Edit a not sent reply offline (mobile)
|
Scenario: Edit a not sent reply offline
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
@ -184,48 +158,21 @@ Feature: Test basic usage of forum activity in app
|
||||||
And I press "Post to forum" in the app
|
And I press "Post to forum" in the app
|
||||||
And I press "Display options" near "not sent reply" in the app
|
And I press "Display options" near "not sent reply" in the app
|
||||||
Then I should see "Edit"
|
Then I should see "Edit"
|
||||||
And I press "Edit" in the app
|
|
||||||
|
When I press "Edit" in the app
|
||||||
And I set the field "Write your reply..." to "not sent reply edited" in the app
|
And I set the field "Write your reply..." to "not sent reply edited" in the app
|
||||||
And I press "Post to forum" in the app
|
And I press "Post to forum" in the app
|
||||||
Then I should see "Not sent"
|
Then I should see "Not sent"
|
||||||
And I should see "This Discussion has offline data to be synchronised"
|
And I should see "This Discussion has offline data to be synchronised"
|
||||||
And I switch offline mode to "false"
|
|
||||||
|
When I switch offline mode to "false"
|
||||||
And I press the back button in the app
|
And I press the back button in the app
|
||||||
And I press "Auto-test" near "Sort by last post creation date in descending order" in the app
|
And I press "Auto-test" near "Sort by last post creation date in descending order" in the app
|
||||||
Then I should not see "Not sent"
|
Then I should not see "Not sent"
|
||||||
And I should not see "This Discussion has offline data to be synchronised"
|
And I should not see "This Discussion has offline data to be synchronised"
|
||||||
|
|
||||||
@app @3.8.0 @tablet @OK
|
@app @3.8.0
|
||||||
Scenario: Edit a not sent reply offline (tablet)
|
Scenario: Edit a not sent new discussion offline
|
||||||
When I enter the app
|
|
||||||
And I change viewport size to "1280x1080"
|
|
||||||
And I log in as "student1"
|
|
||||||
And I press "Course 1" near "Course overview" in the app
|
|
||||||
And I press "Test forum name" in the app
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Subject" to "Auto-test" in the app
|
|
||||||
And I set the field "Message" to "Auto-test message" in the app
|
|
||||||
And I press "Post to forum" in the app
|
|
||||||
And I press "Auto-test" near "Sort by last post creation date in descending order" in the app
|
|
||||||
And I switch offline mode to "true"
|
|
||||||
And I press "Reply" in the app
|
|
||||||
And I set the field "Write your reply..." to "not sent reply" in the app
|
|
||||||
And I press "Post to forum" in the app
|
|
||||||
And I press "Display options" near "not sent reply" in the app
|
|
||||||
Then I should see "Edit"
|
|
||||||
And I press "Edit" in the app
|
|
||||||
And I set the field "Write your reply..." to "not sent reply edited" in the app
|
|
||||||
And I press "Post to forum" in the app
|
|
||||||
Then I should see "Not sent"
|
|
||||||
And I should see "This Discussion has offline data to be synchronised"
|
|
||||||
And I switch offline mode to "false"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I press "Test forum name" in the app
|
|
||||||
Then I should not see "Not sent"
|
|
||||||
And I should not see "This Discussion has offline data to be synchronised"
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
|
||||||
Scenario: Edit a not sent new discussion offline
|
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
@ -239,15 +186,17 @@ Feature: Test basic usage of forum activity in app
|
||||||
And I set the field "Message" to "Auto-test message edited" in the app
|
And I set the field "Message" to "Auto-test message edited" in the app
|
||||||
And I press "Post to forum" in the app
|
And I press "Post to forum" in the app
|
||||||
Then I should see "This Forum has offline data to be synchronised."
|
Then I should see "This Forum has offline data to be synchronised."
|
||||||
And I switch offline mode to "false"
|
|
||||||
|
When I switch offline mode to "false"
|
||||||
And I press "Auto-test" in the app
|
And I press "Auto-test" in the app
|
||||||
And I press "Post to forum" in the app
|
And I press "Post to forum" in the app
|
||||||
Then I should not see "This Forum has offline data to be synchronised."
|
Then I should not see "This Forum has offline data to be synchronised."
|
||||||
And I press "Auto-test" near "Sort by last post creation date in descending order" in the app
|
|
||||||
|
When I press "Auto-test" near "Sort by last post creation date in descending order" in the app
|
||||||
And I should see "Auto-test message edited"
|
And I should see "Auto-test message edited"
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
@app @3.8.0
|
||||||
Scenario: Edit a forum post (only online)
|
Scenario: Edit a forum post (only online)
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
@ -257,7 +206,8 @@ Feature: Test basic usage of forum activity in app
|
||||||
And I set the field "Message" to "Auto-test message" in the app
|
And I set the field "Message" to "Auto-test message" in the app
|
||||||
And I press "Post to forum" in the app
|
And I press "Post to forum" in the app
|
||||||
Then I should see "Auto-test"
|
Then I should see "Auto-test"
|
||||||
And I press the back button in the app
|
|
||||||
|
When I press the back button in the app
|
||||||
And I press "Display options" in the app
|
And I press "Display options" in the app
|
||||||
And I press "Show download options" in the app
|
And I press "Show download options" in the app
|
||||||
And I press "cloud download" near "Test forum name" in the app
|
And I press "cloud download" near "Test forum name" in the app
|
||||||
|
@ -265,17 +215,19 @@ Feature: Test basic usage of forum activity in app
|
||||||
And I press "Auto-test" near "Sort by last post creation date in descending order" in the app
|
And I press "Auto-test" near "Sort by last post creation date in descending order" in the app
|
||||||
And I press "Display options" near "Reply" in the app
|
And I press "Display options" near "Reply" in the app
|
||||||
Then I should see "Edit"
|
Then I should see "Edit"
|
||||||
And I press "Edit" in the app
|
|
||||||
|
When I press "Edit" in the app
|
||||||
And I set the field "Write your reply..." to "Auto-test message edited" in the app
|
And I set the field "Write your reply..." to "Auto-test message edited" in the app
|
||||||
And I press "Save changes" in the app
|
And I press "Save changes" in the app
|
||||||
And I switch offline mode to "true"
|
And I switch offline mode to "true"
|
||||||
And I press "Display options" near "Reply" in the app
|
And I press "Display options" near "Reply" in the app
|
||||||
Then I should see "There was a problem connecting to the site. Please check your connection and try again."
|
Then I should see "There was a problem connecting to the site. Please check your connection and try again."
|
||||||
And I press "OK" in the app
|
|
||||||
|
When I press "OK" in the app
|
||||||
And I should not see "Edit"
|
And I should not see "Edit"
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
@app @3.8.0
|
||||||
Scenario: Delete a forum post (only online)
|
Scenario: Delete a forum post (only online)
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
@ -285,7 +237,8 @@ Feature: Test basic usage of forum activity in app
|
||||||
And I set the field "Message" to "Auto-test message" in the app
|
And I set the field "Message" to "Auto-test message" in the app
|
||||||
And I press "Post to forum" in the app
|
And I press "Post to forum" in the app
|
||||||
Then I should see "Auto-test"
|
Then I should see "Auto-test"
|
||||||
And I press the back button in the app
|
|
||||||
|
When I press the back button in the app
|
||||||
And I press "Display options" in the app
|
And I press "Display options" in the app
|
||||||
And I press "Show download options" in the app
|
And I press "Show download options" in the app
|
||||||
And I press "cloud download" near "Test forum name" in the app
|
And I press "cloud download" near "Test forum name" in the app
|
||||||
|
@ -293,22 +246,25 @@ Feature: Test basic usage of forum activity in app
|
||||||
And I press "Auto-test" near "Sort by last post creation date in descending order" in the app
|
And I press "Auto-test" near "Sort by last post creation date in descending order" in the app
|
||||||
And I press "Display options" near "Reply" in the app
|
And I press "Display options" near "Reply" in the app
|
||||||
Then I should see "Delete"
|
Then I should see "Delete"
|
||||||
And I press "Delete" in the app
|
|
||||||
|
When I press "Delete" in the app
|
||||||
And I press "Cancel" in the app
|
And I press "Cancel" in the app
|
||||||
And I switch offline mode to "true"
|
And I switch offline mode to "true"
|
||||||
And I press "Display options" near "Reply" in the app
|
And I press "Display options" near "Reply" in the app
|
||||||
Then I should see "There was a problem connecting to the site. Please check your connection and try again."
|
Then I should see "There was a problem connecting to the site. Please check your connection and try again."
|
||||||
And I press "OK" in the app
|
|
||||||
And I should not see "Delete"
|
When I press "OK" in the app
|
||||||
And I switch offline mode to "false"
|
Then I should not see "Delete"
|
||||||
|
|
||||||
|
When I switch offline mode to "false"
|
||||||
And I press "Display options" near "Reply" in the app
|
And I press "Display options" near "Reply" in the app
|
||||||
And I press "Delete" in the app
|
And I press "Delete" in the app
|
||||||
And I press "Delete" in the app
|
And I press "Delete" in the app
|
||||||
Then I should not see "Auto-test"
|
Then I should not see "Auto-test"
|
||||||
|
|
||||||
@app @3.8.0 @mobile @OK
|
@app @3.8.0
|
||||||
Scenario: Add/view ratings (mobile)
|
Scenario: Add/view ratings
|
||||||
When I enter the app
|
Given I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
And I press "Test forum name" in the app
|
And I press "Test forum name" in the app
|
||||||
|
@ -333,16 +289,20 @@ Feature: Test basic usage of forum activity in app
|
||||||
Then I should see "Data stored in the device because it couldn't be sent. It will be sent automatically later."
|
Then I should see "Data stored in the device because it couldn't be sent. It will be sent automatically later."
|
||||||
And I should see "Average of ratings: -"
|
And I should see "Average of ratings: -"
|
||||||
And I should see "Average of ratings: 1"
|
And I should see "Average of ratings: 1"
|
||||||
And I switch offline mode to "false"
|
|
||||||
|
When I switch offline mode to "false"
|
||||||
And I press the back button in the app
|
And I press the back button in the app
|
||||||
Then I should see "This Forum has offline data to be synchronised."
|
Then I should see "This Forum has offline data to be synchronised."
|
||||||
And I press "Display options" near "Test forum name" in the app
|
|
||||||
|
When I press "Display options" near "Test forum name" in the app
|
||||||
And I press "Synchronise now" in the app
|
And I press "Synchronise now" in the app
|
||||||
And I should not see "This Forum has offline data to be synchronised."
|
Then I should not see "This Forum has offline data to be synchronised."
|
||||||
And I press "Auto-test" in the app
|
|
||||||
|
When I press "Auto-test" in the app
|
||||||
Then I should see "Average of ratings: 1"
|
Then I should see "Average of ratings: 1"
|
||||||
And I should see "Average of ratings: 0"
|
And I should see "Average of ratings: 0"
|
||||||
And I should not see "Average of ratings: -"
|
But I should not see "Average of ratings: -"
|
||||||
|
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
@ -350,54 +310,10 @@ Feature: Test basic usage of forum activity in app
|
||||||
And I press "Auto-test" in the app
|
And I press "Auto-test" in the app
|
||||||
Then I should see "Average of ratings: 1"
|
Then I should see "Average of ratings: 1"
|
||||||
And I should see "Average of ratings: 0"
|
And I should see "Average of ratings: 0"
|
||||||
And I should not see "Average of ratings: -"
|
But I should not see "Average of ratings: -"
|
||||||
|
|
||||||
@app @3.8.0 @tablet @OK
|
@app @3.8.0
|
||||||
Scenario: Add/view ratings (tablet)
|
Scenario: Student replies a post offline
|
||||||
When I enter the app
|
|
||||||
And I change viewport size to "1280x1080"
|
|
||||||
And I log in as "student1"
|
|
||||||
And I press "Course 1" near "Course overview" in the app
|
|
||||||
And I press "Test forum name" in the app
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Subject" to "Auto-test" in the app
|
|
||||||
And I set the field "Message" to "Auto-test message" in the app
|
|
||||||
And I press "Post to forum" in the app
|
|
||||||
And I press "Reply" in the app
|
|
||||||
And I set the field "Write your reply..." to "test2" in the app
|
|
||||||
And I press "Post to forum" in the app
|
|
||||||
When I enter the app
|
|
||||||
And I change viewport size to "1280x1080"
|
|
||||||
And I log in as "teacher1"
|
|
||||||
And I press "Course 1" near "Course overview" in the app
|
|
||||||
And I press "Test forum name" in the app
|
|
||||||
And I press "None" near "Auto-test message" in the app
|
|
||||||
And I press "1" near "Cancel" in the app
|
|
||||||
And I switch offline mode to "true"
|
|
||||||
And I press "None" near "test2" in the app
|
|
||||||
And I press "0" near "Cancel" in the app
|
|
||||||
Then I should see "Data stored in the device because it couldn't be sent. It will be sent automatically later."
|
|
||||||
And I should see "Average of ratings: -"
|
|
||||||
And I should see "Average of ratings: 1"
|
|
||||||
And I switch offline mode to "false"
|
|
||||||
Then I should see "This Forum has offline data to be synchronised."
|
|
||||||
And I press "Display options" near "Test forum name" in the app
|
|
||||||
And I press "Synchronise now" in the app
|
|
||||||
And I should not see "This Forum has offline data to be synchronised."
|
|
||||||
Then I should see "Average of ratings: 1"
|
|
||||||
And I should see "Average of ratings: 0"
|
|
||||||
And I should not see "Average of ratings: -"
|
|
||||||
When I enter the app
|
|
||||||
And I change viewport size to "1280x1080"
|
|
||||||
And I log in as "student1"
|
|
||||||
And I press "Course 1" near "Course overview" in the app
|
|
||||||
And I press "Test forum name" in the app
|
|
||||||
Then I should see "Average of ratings: 1"
|
|
||||||
And I should see "Average of ratings: 0"
|
|
||||||
And I should not see "Average of ratings: -"
|
|
||||||
|
|
||||||
@app @3.8.0 @mobile @OK
|
|
||||||
Scenario: Student replies a post offline mobile
|
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
@ -419,47 +335,16 @@ Feature: Test basic usage of forum activity in app
|
||||||
Then I should see "DiscussionMessage"
|
Then I should see "DiscussionMessage"
|
||||||
And I should see "ReplyMessage"
|
And I should see "ReplyMessage"
|
||||||
And I should see "Not sent"
|
And I should see "Not sent"
|
||||||
And I press the back button in the app
|
|
||||||
|
When I press the back button in the app
|
||||||
And I switch offline mode to "false"
|
And I switch offline mode to "false"
|
||||||
And I press "DiscussionSubject" in the app
|
And I press "DiscussionSubject" in the app
|
||||||
Then I should see "DiscussionMessage"
|
Then I should see "DiscussionMessage"
|
||||||
And I should see "ReplyMessage"
|
And I should see "ReplyMessage"
|
||||||
And I should not see "Not sent"
|
But I should not see "Not sent"
|
||||||
|
|
||||||
@app @3.8.0 @tablet @OK
|
@app @3.8.0
|
||||||
Scenario: Student replies a post offline tablet
|
Scenario: Student creates a new discussion offline and sync forum
|
||||||
When I enter the app
|
|
||||||
And I change viewport size to "1280x1080"
|
|
||||||
And I log in as "student1"
|
|
||||||
And I press "Course 1" near "Course overview" in the app
|
|
||||||
And I press "Test forum name" in the app
|
|
||||||
And I press "Add a new discussion topic" in the app
|
|
||||||
And I set the field "Subject" to "DiscussionSubject" in the app
|
|
||||||
And I set the field "Message" to "DiscussionMessage" in the app
|
|
||||||
And I press "Post to forum" in the app
|
|
||||||
And I press the back button in the app
|
|
||||||
And I press "Display options" in the app
|
|
||||||
And I press "Show download options" in the app
|
|
||||||
And I press "cloud download" near "Test forum name" in the app
|
|
||||||
And I press "Test forum name" in the app
|
|
||||||
And I press "DiscussionSubject" near "Sort by last post creation date in descending order" in the app
|
|
||||||
And I switch offline mode to "true"
|
|
||||||
And I press "Reply" in the app
|
|
||||||
And I set the field "Write your reply" to "ReplyMessage" in the app
|
|
||||||
And I press "Post to forum" in the app
|
|
||||||
Then I should see "DiscussionMessage"
|
|
||||||
And I should see "ReplyMessage"
|
|
||||||
And I should see "Not sent"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I switch offline mode to "false"
|
|
||||||
And I press "Test forum name" in the app
|
|
||||||
And I press "DiscussionSubject" near "Sort by last post creation date in descending order" in the app
|
|
||||||
Then I should see "DiscussionMessage"
|
|
||||||
And I should see "ReplyMessage"
|
|
||||||
And I should not see "Not sent"
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
|
||||||
Scenario: Student creates a new discussion offline and sync forum
|
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
@ -472,7 +357,8 @@ Feature: Test basic usage of forum activity in app
|
||||||
Then I should see "DiscussionSubject"
|
Then I should see "DiscussionSubject"
|
||||||
And I should see "Not sent"
|
And I should see "Not sent"
|
||||||
And I should see "This Forum has offline data to be synchronised."
|
And I should see "This Forum has offline data to be synchronised."
|
||||||
And I switch offline mode to "false"
|
|
||||||
|
When I switch offline mode to "false"
|
||||||
And I press the back button in the app
|
And I press the back button in the app
|
||||||
And I press "Test forum name" in the app
|
And I press "Test forum name" in the app
|
||||||
And I press "Display options" near "Test forum name" in the app
|
And I press "Display options" near "Test forum name" in the app
|
||||||
|
@ -480,11 +366,11 @@ Feature: Test basic usage of forum activity in app
|
||||||
And I press "DiscussionSubject" near "Sort by last post creation date in descending order" in the app
|
And I press "DiscussionSubject" near "Sort by last post creation date in descending order" in the app
|
||||||
Then I should see "DiscussionSubject"
|
Then I should see "DiscussionSubject"
|
||||||
And I should see "DiscussionMessage"
|
And I should see "DiscussionMessage"
|
||||||
And I should not see "Not sent"
|
But I should not see "Not sent"
|
||||||
And I should not see "This Forum has offline data to be synchronised."
|
And I should not see "This Forum has offline data to be synchronised."
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
@app @3.8.0
|
||||||
Scenario: Student creates a new discussion offline and auto-sync forum
|
Scenario: Student creates a new discussion offline and auto-sync forum
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
@ -497,17 +383,20 @@ Feature: Test basic usage of forum activity in app
|
||||||
Then I should see "DiscussionSubject"
|
Then I should see "DiscussionSubject"
|
||||||
And I should see "Not sent"
|
And I should see "Not sent"
|
||||||
And I should see "This Forum has offline data to be synchronised."
|
And I should see "This Forum has offline data to be synchronised."
|
||||||
And I switch offline mode to "false"
|
|
||||||
And I wait "600" seconds
|
When I switch offline mode to "false"
|
||||||
And I should not see "Not sent"
|
And I run cron tasks in the app
|
||||||
And I press "DiscussionSubject" near "Sort by last post creation date in descending order" in the app
|
And I wait loading to finish in the app
|
||||||
|
Then I should not see "Not sent"
|
||||||
|
|
||||||
|
When I press "DiscussionSubject" near "Sort by last post creation date in descending order" in the app
|
||||||
Then I should see "DiscussionSubject"
|
Then I should see "DiscussionSubject"
|
||||||
And I should see "DiscussionMessage"
|
And I should see "DiscussionMessage"
|
||||||
And I should not see "Not sent"
|
But I should not see "Not sent"
|
||||||
And I should not see "This Forum has offline data to be synchronised."
|
And I should not see "This Forum has offline data to be synchronised."
|
||||||
|
|
||||||
@app @3.8.0 @mobile @OK
|
@app @3.8.0
|
||||||
Scenario: Prefetch mobile
|
Scenario: Prefetch
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
@ -517,7 +406,8 @@ Feature: Test basic usage of forum activity in app
|
||||||
And I set the field "Message" to "DiscussionMessage" in the app
|
And I set the field "Message" to "DiscussionMessage" in the app
|
||||||
And I press "Post to forum" in the app
|
And I press "Post to forum" in the app
|
||||||
Then I should see "DiscussionSubject"
|
Then I should see "DiscussionSubject"
|
||||||
And I press the back button in the app
|
|
||||||
|
When I press the back button in the app
|
||||||
And I press "Display options" in the app
|
And I press "Display options" in the app
|
||||||
And I press "Show download options" in the app
|
And I press "Show download options" in the app
|
||||||
And I press "cloud download" near "Test forum name" in the app
|
And I press "cloud download" near "Test forum name" in the app
|
||||||
|
@ -528,51 +418,16 @@ Feature: Test basic usage of forum activity in app
|
||||||
And I press "Post to forum" in the app
|
And I press "Post to forum" in the app
|
||||||
Then I should see "DiscussionSubject"
|
Then I should see "DiscussionSubject"
|
||||||
And I should see "DiscussionSubject 2"
|
And I should see "DiscussionSubject 2"
|
||||||
And I press the back button in the app
|
|
||||||
|
When I press the back button in the app
|
||||||
And I switch offline mode to "true"
|
And I switch offline mode to "true"
|
||||||
And I press "Test forum name" in the app
|
And I press "Test forum name" in the app
|
||||||
And I press "DiscussionSubject 2" in the app
|
And I press "DiscussionSubject 2" in the app
|
||||||
Then I should see "There was a problem connecting to the site. Please check your connection and try again."
|
Then I should see "There was a problem connecting to the site. Please check your connection and try again."
|
||||||
And I press "OK" in the app
|
|
||||||
And I press the back button in the app
|
|
||||||
And I press "DiscussionSubject" in the app
|
|
||||||
Then I should see "DiscussionSubject"
|
|
||||||
And I should see "DiscussionMessage"
|
|
||||||
And I should not see "There was a problem connecting to the site. Please check your connection and try again."
|
|
||||||
|
|
||||||
@app @3.8.0 @tablet @OK
|
When I press "OK" in the app
|
||||||
Scenario: Prefetch tablet
|
|
||||||
When I enter the app
|
|
||||||
And I change viewport size to "1280x1080"
|
|
||||||
And I log in as "student1"
|
|
||||||
And I press "Course 1" near "Course overview" in the app
|
|
||||||
And I press "Test forum name" in the app
|
|
||||||
And I press "Add a new discussion topic" in the app
|
|
||||||
And I set the field "Subject" to "DiscussionSubject" in the app
|
|
||||||
And I set the field "Message" to "DiscussionMessage" in the app
|
|
||||||
And I press "Post to forum" in the app
|
|
||||||
Then I should see "DiscussionSubject"
|
|
||||||
And I press the back button in the app
|
And I press the back button in the app
|
||||||
And I press "Display options" in the app
|
|
||||||
And I press "Show download options" in the app
|
|
||||||
And I press "cloud download" near "Test forum name" in the app
|
|
||||||
And I press "Test forum name" in the app
|
|
||||||
And I press "Add a new discussion topic" in the app
|
|
||||||
And I set the field "Subject" to "DiscussionSubject 2" in the app
|
|
||||||
And I set the field "Message" to "DiscussionMessage 2" in the app
|
|
||||||
And I press "Post to forum" in the app
|
|
||||||
Then I should see "DiscussionSubject"
|
|
||||||
And I should see "DiscussionSubject 2"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I switch offline mode to "true"
|
|
||||||
And I press "refresh" near "Test forum name" in the app
|
|
||||||
Then I should see "There was a problem connecting to the site. Please check your connection and try again."
|
|
||||||
And I press "OK" in the app
|
|
||||||
And I press "Test forum name" in the app
|
|
||||||
And I press "DiscussionSubject" in the app
|
And I press "DiscussionSubject" in the app
|
||||||
Then I should see "DiscussionSubject"
|
Then I should see "DiscussionSubject"
|
||||||
And I should see "DiscussionMessage"
|
And I should see "DiscussionMessage"
|
||||||
And I press the back button in the app
|
But I should not see "There was a problem connecting to the site. Please check your connection and try again."
|
||||||
And I switch offline mode to "false"
|
|
||||||
And I press "refresh" near "Test forum name" in the app
|
|
||||||
Then I should not see "There was a problem connecting to the site. Please check your connection and try again."
|
|
||||||
|
|
|
@ -10,449 +10,333 @@ Feature: Test basic usage of glossary in app
|
||||||
| teacher1 | Teacher | teacher | teacher1@example.com |
|
| teacher1 | Teacher | teacher | teacher1@example.com |
|
||||||
| teacher2 | Teacher2 | teacher2 | teacher2@example.com |
|
| teacher2 | Teacher2 | teacher2 | teacher2@example.com |
|
||||||
| student1 | Student | student | student1@example.com |
|
| student1 | Student | student | student1@example.com |
|
||||||
|
|
||||||
And the following "courses" exist:
|
And the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
| Course 1 | C1 | 0 |
|
| Course 1 | C1 | 0 |
|
||||||
|
|
||||||
And the following "course enrolments" exist:
|
And the following "course enrolments" exist:
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| teacher2 | C1 | editingteacher |
|
| teacher2 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
|
|
||||||
And the following "activities" exist:
|
And the following "activities" exist:
|
||||||
| activity | name | intro | course | idnumber | mainglossary | allowcomments | assessed | scale |
|
| activity | name | intro | course | idnumber | mainglossary | allowcomments | assessed | scale |
|
||||||
| glossary | Test glossary | glossary description | C1 | gloss1 | 1 | 1 | 1 | 1 |
|
| glossary | Test glossary | glossary description | C1 | gloss1 | 1 | 1 | 1 | 1 |
|
||||||
|
|
||||||
And the following "activities" exist:
|
And the following "activities" exist:
|
||||||
| activity | name | intro | course | idnumber | groupmode |
|
| activity | name | intro | course | idnumber | groupmode |
|
||||||
| forum | Test forum name | Test forum | C1 | forum | 0 |
|
| forum | Test forum name | Test forum | C1 | forum | 0 |
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
@app @3.8.0
|
||||||
Scenario: View a glossary and its terms
|
Scenario: View a glossary and its terms
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
And I should see "Course 1"
|
And I press "Test glossary" in the app
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
And I press "close" in the app
|
||||||
Then the header should be "Course 1" in the app
|
And I set the field "Concept" to "potato" in the app
|
||||||
And I press "Test glossary" in the app
|
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
||||||
And I press "close" in the app
|
And I press "Save" in the app
|
||||||
And I set the field "Concept" to "potato" in the app
|
And I press "close" in the app
|
||||||
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
And I set the field "Concept" to "car" in the app
|
||||||
And I press "Save" in the app
|
And I set the field "Definition" to "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods." in the app
|
||||||
And I press "close" in the app
|
And I press "Save" in the app
|
||||||
And I set the field "Concept" to "car" in the app
|
And I press "close" in the app
|
||||||
And I set the field "Definition" to "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods." in the app
|
And I set the field "Concept" to "mountain" in the app
|
||||||
And I press "Save" in the app
|
And I set the field "Definition" to "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak." in the app
|
||||||
And I press "close" in the app
|
And I press "Save" in the app
|
||||||
And I set the field "Concept" to "mountain" in the app
|
Then the header should be "Test glossary" in the app
|
||||||
And I set the field "Definition" to "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak." in the app
|
And I should see "car"
|
||||||
And I press "Save" in the app
|
And I should see "mountain"
|
||||||
Then the header should be "Test glossary" in the app
|
And I should see "potato"
|
||||||
And I should see "car"
|
|
||||||
And I should see "mountain"
|
|
||||||
And I should see "potato"
|
|
||||||
And I press "car" in the app
|
|
||||||
Then I should see "car"
|
|
||||||
And I should see "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods."
|
|
||||||
|
|
||||||
@app @3.8.0 @mobile @OK
|
When I press "car" in the app
|
||||||
Scenario: Change filters (include search) (mobile)
|
Then I should see "car"
|
||||||
When I enter the app
|
And I should see "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods."
|
||||||
And I log in as "student1"
|
|
||||||
Then the header should be "Acceptance test site" in the app
|
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
Then the header should be "Course 1" in the app
|
|
||||||
And I press "Test glossary" in the app
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Concept" to "potato" in the app
|
|
||||||
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
|
||||||
And I press "Save" in the app
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Concept" to "car" in the app
|
|
||||||
And I set the field "Definition" to "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods." in the app
|
|
||||||
And I press "Save" in the app
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Concept" to "mountain" in the app
|
|
||||||
And I set the field "Definition" to "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak." in the app
|
|
||||||
And I press "Save" in the app
|
|
||||||
Then the header should be "Test glossary" in the app
|
|
||||||
And I should see "car"
|
|
||||||
And I should see "mountain"
|
|
||||||
And I should see "potato"
|
|
||||||
And I press "Search" in the app
|
|
||||||
And I set the field "Search query" to "something" in the app
|
|
||||||
And I press "search" near "No entries were found." in the app
|
|
||||||
Then I should see "No entries were found."
|
|
||||||
And I set the field "Search query" to "potato" in the app
|
|
||||||
And I press "search" near "No entries were found." in the app
|
|
||||||
And I set the field "Search query" to " " in the app
|
|
||||||
And I press "Display options" in the app
|
|
||||||
And I press "Refresh" in the app
|
|
||||||
And I press "potato" in the app
|
|
||||||
Then I should see "potato"
|
|
||||||
And I should see "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae."
|
|
||||||
|
|
||||||
@app @3.8.0 @tablet @OK
|
@app @3.8.0
|
||||||
Scenario: Change filters (include search) (tablet)
|
Scenario: Change filters (include search)
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I change viewport size to "1280x1080"
|
And I log in as "student1"
|
||||||
And I log in as "student1"
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I press "Test glossary" in the app
|
||||||
And I should see "Course 1"
|
And I press "close" in the app
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
And I set the field "Concept" to "potato" in the app
|
||||||
Then the header should be "Course 1" in the app
|
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
||||||
And I press "Test glossary" in the app
|
And I press "Save" in the app
|
||||||
And I press "close" in the app
|
And I press "close" in the app
|
||||||
And I set the field "Concept" to "potato" in the app
|
And I set the field "Concept" to "car" in the app
|
||||||
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
And I set the field "Definition" to "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods." in the app
|
||||||
And I press "Save" in the app
|
And I press "Save" in the app
|
||||||
And I press "close" in the app
|
And I press "close" in the app
|
||||||
And I set the field "Concept" to "car" in the app
|
And I set the field "Concept" to "mountain" in the app
|
||||||
And I set the field "Definition" to "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods." in the app
|
And I set the field "Definition" to "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak." in the app
|
||||||
And I press "Save" in the app
|
And I press "Save" in the app
|
||||||
And I press "close" in the app
|
Then the header should be "Test glossary" in the app
|
||||||
And I set the field "Concept" to "mountain" in the app
|
And I should see "car"
|
||||||
And I set the field "Definition" to "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak." in the app
|
And I should see "mountain"
|
||||||
And I press "Save" in the app
|
And I should see "potato"
|
||||||
Then the header should be "Test glossary" in the app
|
|
||||||
And I should see "car"
|
|
||||||
And I should see "mountain"
|
|
||||||
And I should see "potato"
|
|
||||||
And I press "Search" in the app
|
|
||||||
And I set the field "Search query" to "something" in the app
|
|
||||||
And I press "search" near "No entries were found." in the app
|
|
||||||
Then I should see "No entries were found."
|
|
||||||
And I set the field "Search query" to "potato" in the app
|
|
||||||
And I press "search" near "No entries were found." in the app
|
|
||||||
Then I should see "potato"
|
|
||||||
And I should see "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae."
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
When I press "Search" in the app
|
||||||
|
And I set the field "Search query" to "something" in the app
|
||||||
|
And I press "search" near "No entries were found." in the app
|
||||||
|
Then I should see "No entries were found."
|
||||||
|
|
||||||
|
When I set the field "Search query" to "potato" in the app
|
||||||
|
And I press "search" near "No entries were found." in the app
|
||||||
|
And I set the field "Search query" to " " in the app
|
||||||
|
And I press "Display options" in the app
|
||||||
|
And I press "Refresh" in the app
|
||||||
|
And I press "potato" in the app
|
||||||
|
Then I should see "potato"
|
||||||
|
And I should see "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae."
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
Scenario: Navigate to glossary terms by link (auto-linking)
|
Scenario: Navigate to glossary terms by link (auto-linking)
|
||||||
And the "glossary" filter is "on"
|
When the "glossary" filter is "on"
|
||||||
When I enter the app
|
And I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
And I should see "Course 1"
|
And I press "Test glossary" in the app
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
And I press "close" in the app
|
||||||
Then the header should be "Course 1" in the app
|
And I set the field "Concept" to "potato" in the app
|
||||||
And I press "Test glossary" in the app
|
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
||||||
And I press "close" in the app
|
And I press "This entry should be automatically linked" in the app
|
||||||
And I set the field "Concept" to "potato" in the app
|
And I press "Save" in the app
|
||||||
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
And I press "close" in the app
|
||||||
And I press "This entry should be automatically linked" in the app
|
And I set the field "Concept" to "car" in the app
|
||||||
And I press "Save" in the app
|
And I set the field "Definition" to "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods." in the app
|
||||||
And I press "close" in the app
|
And I press "This entry should be automatically linked" in the app
|
||||||
And I set the field "Concept" to "car" in the app
|
And I press "Save" in the app
|
||||||
And I set the field "Definition" to "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods." in the app
|
And I press "close" in the app
|
||||||
And I press "This entry should be automatically linked" in the app
|
And I set the field "Concept" to "mountain" in the app
|
||||||
And I press "Save" in the app
|
And I set the field "Definition" to "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak." in the app
|
||||||
And I press "close" in the app
|
And I press "This entry should be automatically linked" in the app
|
||||||
And I set the field "Concept" to "mountain" in the app
|
And I press "Save" in the app
|
||||||
And I set the field "Definition" to "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak." in the app
|
Then the header should be "Test glossary" in the app
|
||||||
And I press "This entry should be automatically linked" in the app
|
And I should see "car"
|
||||||
And I press "Save" in the app
|
And I should see "mountain"
|
||||||
Then the header should be "Test glossary" in the app
|
And I should see "potato"
|
||||||
And I should see "car"
|
|
||||||
And I should see "mountain"
|
|
||||||
And I should see "potato"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I press "Test forum name" in the app
|
|
||||||
And I press "add" in the app
|
|
||||||
And I set the field "Subject" to "Testing auto-link glossary"
|
|
||||||
And I set the field "Message" to "Glossary terms auto-linked: potato car mountain" in the app
|
|
||||||
And I press "Post to forum" in the app
|
|
||||||
And I press "Testing auto-link glossary" near "Last post a few seconds ago" in the app
|
|
||||||
And I press "car" in the app
|
|
||||||
Then the header should be "car" in the app
|
|
||||||
And I should see "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods."
|
|
||||||
And I press the back button in the app
|
|
||||||
And I press "mountain" in the app
|
|
||||||
Then the header should be "mountain" in the app
|
|
||||||
And I should see "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak."
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
When I press the back button in the app
|
||||||
|
And I press "Test forum name" in the app
|
||||||
|
And I press "add" in the app
|
||||||
|
And I set the field "Subject" to "Testing auto-link glossary"
|
||||||
|
And I set the field "Message" to "Glossary terms auto-linked: potato car mountain" in the app
|
||||||
|
And I press "Post to forum" in the app
|
||||||
|
And I press "Testing auto-link glossary" near "Last post a few seconds ago" in the app
|
||||||
|
And I press "car" in the app
|
||||||
|
Then the header should be "car" in the app
|
||||||
|
And I should see "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods."
|
||||||
|
|
||||||
|
When I press the back button in the app
|
||||||
|
And I press "mountain" in the app
|
||||||
|
Then the header should be "mountain" in the app
|
||||||
|
And I should see "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak."
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
Scenario: See comments
|
Scenario: See comments
|
||||||
When I enter the app
|
# Create entries as a student
|
||||||
And I log in as "student1"
|
When I enter the app
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I log in as "student1"
|
||||||
And I should see "Course 1"
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
And I press "Test glossary" in the app
|
||||||
Then the header should be "Course 1" in the app
|
And I press "close" in the app
|
||||||
And I press "Test glossary" in the app
|
And I set the field "Concept" to "potato" in the app
|
||||||
And I press "close" in the app
|
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
||||||
And I set the field "Concept" to "potato" in the app
|
And I press "Save" in the app
|
||||||
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
And I press "close" in the app
|
||||||
And I press "Save" in the app
|
And I set the field "Concept" to "car" in the app
|
||||||
And I press "close" in the app
|
And I set the field "Definition" to "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods." in the app
|
||||||
And I set the field "Concept" to "car" in the app
|
And I press "Save" in the app
|
||||||
And I set the field "Definition" to "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods." in the app
|
And I press "close" in the app
|
||||||
And I press "Save" in the app
|
And I set the field "Concept" to "mountain" in the app
|
||||||
And I press "close" in the app
|
And I set the field "Definition" to "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak." in the app
|
||||||
And I set the field "Concept" to "mountain" in the app
|
And I press "Save" in the app
|
||||||
And I set the field "Definition" to "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak." in the app
|
Then the header should be "Test glossary" in the app
|
||||||
And I press "Save" in the app
|
And I should see "car"
|
||||||
Then the header should be "Test glossary" in the app
|
And I should see "mountain"
|
||||||
And I should see "car"
|
And I should see "potato"
|
||||||
And I should see "mountain"
|
|
||||||
And I should see "potato"
|
|
||||||
And I press "mountain" in the app
|
|
||||||
Then I should see "Comments (0)"
|
|
||||||
When I enter the app
|
|
||||||
And I log in as "teacher1"
|
|
||||||
Then the header should be "Acceptance test site" in the app
|
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
Then the header should be "Course 1" in the app
|
|
||||||
And I press "Test glossary" in the app
|
|
||||||
And I press "mountain" in the app
|
|
||||||
Then I should see "Comments (0)"
|
|
||||||
And I press "Comments" in the app
|
|
||||||
And I should see "No comments"
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Add a comment..." to "teacherComment" in the app
|
|
||||||
And I press "Save comment" in the app
|
|
||||||
Then I should see "teacherComment"
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Add a comment..." to "teacherComment2" in the app
|
|
||||||
And I press "Save comment" in the app
|
|
||||||
Then I should see "teacherComment"
|
|
||||||
And I should see "teacherComment2"
|
|
||||||
When I enter the app
|
|
||||||
And I log in as "student1"
|
|
||||||
Then the header should be "Acceptance test site" in the app
|
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
Then the header should be "Course 1" in the app
|
|
||||||
And I press "Test glossary" in the app
|
|
||||||
And I press "mountain" in the app
|
|
||||||
Then I should see "Comments (2)"
|
|
||||||
And I press "Comments" in the app
|
|
||||||
And I should see "teacherComment"
|
|
||||||
And I should see "teacherComment2"
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
When I press "mountain" in the app
|
||||||
|
Then I should see "Comments (0)"
|
||||||
|
|
||||||
|
# Write comments as a teacher
|
||||||
|
When I enter the app
|
||||||
|
And I log in as "teacher1"
|
||||||
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
|
And I press "Test glossary" in the app
|
||||||
|
And I press "mountain" in the app
|
||||||
|
Then I should see "Comments (0)"
|
||||||
|
|
||||||
|
When I press "Comments" in the app
|
||||||
|
And I should see "No comments"
|
||||||
|
|
||||||
|
When I press "close" in the app
|
||||||
|
And I set the field "Add a comment..." to "teacher first comment" in the app
|
||||||
|
And I press "Save comment" in the app
|
||||||
|
Then I should see "teacher first comment"
|
||||||
|
|
||||||
|
When I press "close" in the app
|
||||||
|
And I set the field "Add a comment..." to "teacher second comment" in the app
|
||||||
|
And I press "Save comment" in the app
|
||||||
|
Then I should see "teacher first comment"
|
||||||
|
And I should see "teacher second comment"
|
||||||
|
|
||||||
|
# View comments as a student
|
||||||
|
When I enter the app
|
||||||
|
And I log in as "student1"
|
||||||
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
|
And I press "Test glossary" in the app
|
||||||
|
And I press "mountain" in the app
|
||||||
|
Then I should see "Comments (2)"
|
||||||
|
|
||||||
|
When I press "Comments" in the app
|
||||||
|
And I should see "teacher first comment"
|
||||||
|
And I should see "teacher second comment"
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
Scenario: Prefetch
|
Scenario: Prefetch
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
And I should see "Course 1"
|
And I press "Test glossary" in the app
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
And I press "close" in the app
|
||||||
Then the header should be "Course 1" in the app
|
And I set the field "Concept" to "potato" in the app
|
||||||
And I press "Test glossary" in the app
|
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
||||||
And I press "close" in the app
|
And I press "Save" in the app
|
||||||
And I set the field "Concept" to "potato" in the app
|
And I press "close" in the app
|
||||||
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
And I set the field "Concept" to "car" in the app
|
||||||
And I press "Save" in the app
|
And I set the field "Definition" to "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods." in the app
|
||||||
And I press "close" in the app
|
And I press "Save" in the app
|
||||||
And I set the field "Concept" to "car" in the app
|
And I press "close" in the app
|
||||||
And I set the field "Definition" to "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods." in the app
|
And I set the field "Concept" to "mountain" in the app
|
||||||
And I press "Save" in the app
|
And I set the field "Definition" to "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak." in the app
|
||||||
And I press "close" in the app
|
And I press "Save" in the app
|
||||||
And I set the field "Concept" to "mountain" in the app
|
Then the header should be "Test glossary" in the app
|
||||||
And I set the field "Definition" to "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak." in the app
|
And I should see "car"
|
||||||
And I press "Save" in the app
|
And I should see "mountain"
|
||||||
Then the header should be "Test glossary" in the app
|
And I should see "potato"
|
||||||
And I should see "car"
|
|
||||||
And I should see "mountain"
|
|
||||||
And I should see "potato"
|
|
||||||
And I press "Display options" in the app
|
|
||||||
And I press "Download" in the app
|
|
||||||
And I press the back button in the app
|
|
||||||
And I press the back button in the app
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
And I switch offline mode to "true"
|
|
||||||
And I press "Test glossary" in the app
|
|
||||||
Then the header should be "Test glossary" in the app
|
|
||||||
And I should see "car"
|
|
||||||
And I should see "mountain"
|
|
||||||
And I should see "potato"
|
|
||||||
And I press "mountain" in the app
|
|
||||||
Then I should see "mountain"
|
|
||||||
And I should see "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak."
|
|
||||||
And I should not see "Comments cannot be retrieved"
|
|
||||||
And I should see "Comments (0)"
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
When I press "Display options" in the app
|
||||||
|
And I press "Download" in the app
|
||||||
|
And I press the back button in the app
|
||||||
|
And I press the back button in the app
|
||||||
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
|
And I switch offline mode to "true"
|
||||||
|
And I press "Test glossary" in the app
|
||||||
|
Then the header should be "Test glossary" in the app
|
||||||
|
And I should see "car"
|
||||||
|
And I should see "mountain"
|
||||||
|
And I should see "potato"
|
||||||
|
|
||||||
|
When I press "mountain" in the app
|
||||||
|
Then I should see "mountain"
|
||||||
|
And I should see "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak."
|
||||||
|
And I should not see "Comments cannot be retrieved"
|
||||||
|
And I should see "Comments (0)"
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
Scenario: Sync
|
Scenario: Sync
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
And I should see "Course 1"
|
And I press "Test glossary" in the app
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
And I switch offline mode to "true"
|
||||||
Then the header should be "Course 1" in the app
|
And I press "close" in the app
|
||||||
And I press "Test glossary" in the app
|
And I set the field "Concept" to "potato" in the app
|
||||||
And I switch offline mode to "true"
|
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
||||||
And I press "close" in the app
|
And I press "Save" in the app
|
||||||
And I set the field "Concept" to "potato" in the app
|
And I press "close" in the app
|
||||||
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
And I set the field "Concept" to "car" in the app
|
||||||
And I press "Save" in the app
|
And I set the field "Definition" to "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods." in the app
|
||||||
And I press "close" in the app
|
And I press "Save" in the app
|
||||||
And I set the field "Concept" to "car" in the app
|
And I press "close" in the app
|
||||||
And I set the field "Definition" to "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods." in the app
|
And I set the field "Concept" to "mountain" in the app
|
||||||
And I press "Save" in the app
|
And I set the field "Definition" to "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak." in the app
|
||||||
And I press "close" in the app
|
And I press "Save" in the app
|
||||||
And I set the field "Concept" to "mountain" in the app
|
Then the header should be "Test glossary" in the app
|
||||||
And I set the field "Definition" to "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak." in the app
|
And I should see "car"
|
||||||
And I press "Save" in the app
|
And I should see "mountain"
|
||||||
Then the header should be "Test glossary" in the app
|
And I should see "potato"
|
||||||
And I should see "car"
|
And I should see "Entries to be synced"
|
||||||
And I should see "mountain"
|
And I should see "This Glossary has offline data to be synchronised."
|
||||||
And I should see "potato"
|
|
||||||
And I should see "Entries to be synced"
|
|
||||||
And I should see "This Glossary has offline data to be synchronised."
|
|
||||||
And I switch offline mode to "false"
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Concept" to "testSync" in the app
|
|
||||||
And I set the field "Definition" to "testSync" in the app
|
|
||||||
And I press "Save" in the app
|
|
||||||
And I press "Display options" in the app
|
|
||||||
And I press "Synchronise now" in the app
|
|
||||||
Then the header should be "Test glossary" in the app
|
|
||||||
And I should see "car"
|
|
||||||
And I should see "mountain"
|
|
||||||
And I should see "potato"
|
|
||||||
And I should see "testSync"
|
|
||||||
And I should not see "Entries to be synced"
|
|
||||||
And I should not see "This Glossary has offline data to be synchronised."
|
|
||||||
|
|
||||||
@app @3.8.0 @mobile @OK
|
When I switch offline mode to "false"
|
||||||
Scenario: Add/view ratings (mobile)
|
And I press "close" in the app
|
||||||
When I enter the app
|
And I set the field "Concept" to "testSync" in the app
|
||||||
And I log in as "student1"
|
And I set the field "Definition" to "testSync" in the app
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I press "Save" in the app
|
||||||
And I should see "Course 1"
|
And I press "Display options" in the app
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
And I press "Synchronise now" in the app
|
||||||
Then the header should be "Course 1" in the app
|
Then the header should be "Test glossary" in the app
|
||||||
And I press "Test glossary" in the app
|
And I should see "car"
|
||||||
And I press "close" in the app
|
And I should see "mountain"
|
||||||
And I set the field "Concept" to "potato" in the app
|
And I should see "potato"
|
||||||
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
And I should see "testSync"
|
||||||
And I press "Save" in the app
|
But I should not see "Entries to be synced"
|
||||||
And I press "close" in the app
|
And I should not see "This Glossary has offline data to be synchronised."
|
||||||
And I set the field "Concept" to "car" in the app
|
|
||||||
And I set the field "Definition" to "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods." in the app
|
|
||||||
And I press "Save" in the app
|
|
||||||
And I press "close" in the app
|
|
||||||
And I set the field "Concept" to "mountain" in the app
|
|
||||||
And I set the field "Definition" to "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak." in the app
|
|
||||||
And I press "Save" in the app
|
|
||||||
Then the header should be "Test glossary" in the app
|
|
||||||
And I should see "car"
|
|
||||||
And I should see "mountain"
|
|
||||||
And I should see "potato"
|
|
||||||
When I enter the app
|
|
||||||
And I log in as "teacher1"
|
|
||||||
Then the header should be "Acceptance test site" in the app
|
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
Then the header should be "Course 1" in the app
|
|
||||||
And I press "Test glossary" in the app
|
|
||||||
And I press "mountain" in the app
|
|
||||||
Then I should see "Average of ratings: -"
|
|
||||||
And I press "None" in the app
|
|
||||||
And I press "1" in the app
|
|
||||||
Then I should see "Average of ratings: 1"
|
|
||||||
When I enter the app
|
|
||||||
And I log in as "teacher2"
|
|
||||||
Then the header should be "Acceptance test site" in the app
|
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
Then the header should be "Course 1" in the app
|
|
||||||
And I press "Test glossary" in the app
|
|
||||||
And I press "mountain" in the app
|
|
||||||
And I switch offline mode to "true"
|
|
||||||
And I press "None" in the app
|
|
||||||
And I press "0" in the app
|
|
||||||
Then I should see "Data stored in the device because it couldn't be sent. It will be sent automatically later."
|
|
||||||
And I should see "Average of ratings: 1"
|
|
||||||
And I switch offline mode to "false"
|
|
||||||
And I press the back button in the app
|
|
||||||
Then I should see "This Glossary has offline data to be synchronised."
|
|
||||||
And I press "Display options" in the app
|
|
||||||
And I press "Synchronise now" in the app
|
|
||||||
And I press "mountain" in the app
|
|
||||||
Then I should see "Average of ratings: 0.5"
|
|
||||||
When I enter the app
|
|
||||||
And I log in as "student1"
|
|
||||||
Then the header should be "Acceptance test site" in the app
|
|
||||||
And I should see "Course 1"
|
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
Then the header should be "Course 1" in the app
|
|
||||||
And I press "Test glossary" in the app
|
|
||||||
And I press "mountain" in the app
|
|
||||||
Then the header should be "mountain" in the app
|
|
||||||
And I should not see "Average of ratings: 0.5"
|
|
||||||
|
|
||||||
@app @3.8.0 @tablet @OK
|
@app @3.8.0
|
||||||
Scenario: Add/view ratings (tablet)
|
Scenario: Add/view ratings
|
||||||
When I enter the app
|
# Create entries as a student
|
||||||
And I change viewport size to "1280x1080"
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
And I should see "Course 1"
|
And I press "Test glossary" in the app
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
And I press "close" in the app
|
||||||
Then the header should be "Course 1" in the app
|
And I set the field "Concept" to "potato" in the app
|
||||||
And I press "Test glossary" in the app
|
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
||||||
And I press "close" in the app
|
And I press "Save" in the app
|
||||||
And I set the field "Concept" to "potato" in the app
|
And I press "close" in the app
|
||||||
And I set the field "Definition" to "The potato is a root vegetable native to the Americas, a starchy tuber of the plant Solanum tuberosum, and the plant itself, a perennial in the family Solanaceae." in the app
|
And I set the field "Concept" to "car" in the app
|
||||||
And I press "Save" in the app
|
And I set the field "Definition" to "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods." in the app
|
||||||
And I press "close" in the app
|
And I press "Save" in the app
|
||||||
And I set the field "Concept" to "car" in the app
|
And I press "close" in the app
|
||||||
And I set the field "Definition" to "A car (or automobile) is a wheeled motor vehicle used for transportation. Most definitions of cars say that they run primarily on roads, seat one to eight people, have four tires, and mainly transport people rather than goods." in the app
|
And I set the field "Concept" to "mountain" in the app
|
||||||
And I press "Save" in the app
|
And I set the field "Definition" to "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak." in the app
|
||||||
And I press "close" in the app
|
And I press "Save" in the app
|
||||||
And I set the field "Concept" to "mountain" in the app
|
Then the header should be "Test glossary" in the app
|
||||||
And I set the field "Definition" to "A mountain is a large landform that rises above the surrounding land in a limited area, usually in the form of a peak." in the app
|
And I should see "car"
|
||||||
And I press "Save" in the app
|
And I should see "mountain"
|
||||||
Then the header should be "Test glossary" in the app
|
And I should see "potato"
|
||||||
And I should see "car"
|
|
||||||
And I should see "mountain"
|
# Rate entries as teacher1
|
||||||
And I should see "potato"
|
When I enter the app
|
||||||
When I enter the app
|
And I log in as "teacher1"
|
||||||
And I change viewport size to "1280x1080"
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
And I log in as "teacher1"
|
And I press "Test glossary" in the app
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I press "mountain" in the app
|
||||||
And I should see "Course 1"
|
Then I should see "Average of ratings: -"
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
|
||||||
Then the header should be "Course 1" in the app
|
When I press "None" in the app
|
||||||
And I press "Test glossary" in the app
|
And I press "1" in the app
|
||||||
And I press "mountain" in the app
|
Then I should see "Average of ratings: 1"
|
||||||
Then I should see "Average of ratings: -"
|
|
||||||
And I press "None" in the app
|
# Rate entries as teacher2
|
||||||
And I press "1" in the app
|
When I enter the app
|
||||||
Then I should see "Average of ratings: 1"
|
And I log in as "teacher2"
|
||||||
When I enter the app
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
And I change viewport size to "1280x1080"
|
And I press "Test glossary" in the app
|
||||||
And I log in as "teacher2"
|
And I press "mountain" in the app
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I switch offline mode to "true"
|
||||||
And I should see "Course 1"
|
And I press "None" in the app
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
And I press "0" in the app
|
||||||
Then the header should be "Course 1" in the app
|
Then I should see "Data stored in the device because it couldn't be sent. It will be sent automatically later."
|
||||||
And I press "Test glossary" in the app
|
And I should see "Average of ratings: 1"
|
||||||
And I press "mountain" in the app
|
|
||||||
And I switch offline mode to "true"
|
When I switch offline mode to "false"
|
||||||
And I press "None" in the app
|
And I press the back button in the app
|
||||||
And I press "0" in the app
|
Then I should see "This Glossary has offline data to be synchronised."
|
||||||
Then I should see "Data stored in the device because it couldn't be sent. It will be sent automatically later."
|
|
||||||
And I should see "Average of ratings: 1"
|
When I press "Display options" in the app
|
||||||
And I switch offline mode to "false"
|
And I press "Synchronise now" in the app
|
||||||
Then I should see "This Glossary has offline data to be synchronised."
|
And I press "mountain" in the app
|
||||||
And I press "Display options" in the app
|
Then I should see "Average of ratings: 0.5"
|
||||||
And I press "Synchronise now" in the app
|
|
||||||
Then I should see "Average of ratings: 0.5"
|
# View ratings as a student
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I change viewport size to "1280x1080"
|
And I log in as "student1"
|
||||||
And I log in as "student1"
|
And I press "Course 1" near "Recently accessed courses" in the app
|
||||||
Then the header should be "Acceptance test site" in the app
|
And I press "Test glossary" in the app
|
||||||
And I should see "Course 1"
|
And I press "mountain" in the app
|
||||||
And I press "Course 1" near "Recently accessed courses" in the app
|
Then the header should be "mountain" in the app
|
||||||
Then the header should be "Course 1" in the app
|
But I should not see "Average of ratings: 0.5"
|
||||||
And I press "Test glossary" in the app
|
|
||||||
And I press "mountain" in the app
|
|
||||||
Then I should not see "Average of ratings: 0.5"
|
|
||||||
|
|
|
@ -17,20 +17,20 @@ Feature: Test basic usage of login in app
|
||||||
| student2 | C1 | student |
|
| student2 | C1 | student |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
@app @3.8.0
|
||||||
Scenario: Add a non existing site
|
Scenario: Add a non existing site
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "menu" in the app
|
And I press "menu" in the app
|
||||||
And I press "Change site" in the app
|
And I press "Change site" in the app
|
||||||
And I press "add" in the app
|
And I press "add" in the app
|
||||||
And I set the field "Site address" to "Wrong Site Address" in the app
|
And I set the field "https://campus.example.edu" to "Wrong Site Address" in the app
|
||||||
And I press "Connect!" in the app
|
And I press enter in the app
|
||||||
Then I should see "Error"
|
Then I should see "Cannot connect"
|
||||||
And I should see "Double check you've entered the address correctly and try again."
|
And I should see "Please check the address is correct."
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
@app @3.8.0
|
||||||
Scenario: Delete a site
|
Scenario: Delete a site
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "menu" in the app
|
And I press "menu" in the app
|
||||||
|
@ -39,13 +39,12 @@ Feature: Test basic usage of login in app
|
||||||
And I press "Delete" in the app
|
And I press "Delete" in the app
|
||||||
And I press "trash" in the app
|
And I press "trash" in the app
|
||||||
And I press "Delete" in the app
|
And I press "Delete" in the app
|
||||||
Then I should not see "Acceptance test site"
|
Then I should see "Connect to Moodle"
|
||||||
And I should see "Connect to Moodle"
|
But I should not see "Acceptance test site"
|
||||||
|
|
||||||
@app @3.8.0 @mobile @OK
|
@app @3.8.0
|
||||||
Scenario: Require minium version of the app for a site and site name in displayed when adding a new site (mobile)
|
Scenario: Require minium version of the app for a site and site name in displayed when adding a new site
|
||||||
When I enter the app
|
When I enter the app
|
||||||
Then I should see "Acceptance test site"
|
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
And I press "menu" in the app
|
And I press "menu" in the app
|
||||||
And I press "Website" in the app
|
And I press "Website" in the app
|
||||||
|
@ -58,7 +57,7 @@ Feature: Test basic usage of login in app
|
||||||
And I set the field "Minimum app version required" to "3.8.1"
|
And I set the field "Minimum app version required" to "3.8.1"
|
||||||
And I press "Save changes"
|
And I press "Save changes"
|
||||||
And I close the browser tab opened by the app
|
And I close the browser tab opened by the app
|
||||||
When I enter the app
|
And I enter the app
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
And I press "menu" in the app
|
And I press "menu" in the app
|
||||||
And I press "Website" in the app
|
And I press "Website" in the app
|
||||||
|
@ -68,41 +67,8 @@ Feature: Test basic usage of login in app
|
||||||
And I press "Side panel"
|
And I press "Side panel"
|
||||||
And I follow "Site administration"
|
And I follow "Site administration"
|
||||||
And I follow "Mobile authentication"
|
And I follow "Mobile authentication"
|
||||||
And I set the field "Minimum app version required" to "3.8.2"
|
And I set the field "Minimum app version required" to "11.0.0"
|
||||||
And I press "Save changes"
|
And I press "Save changes"
|
||||||
And I close the browser tab opened by the app
|
And I close the browser tab opened by the app
|
||||||
When I enter the app
|
And I enter the app
|
||||||
Then I should see "App update required"
|
Then I should see "App update required"
|
||||||
|
|
||||||
@app @3.8.0 @tablet @OK
|
|
||||||
Scenario: Require minium version of the app for a site and site name in displayed when adding a new site (tablet)
|
|
||||||
When I enter the app
|
|
||||||
And I change viewport size to "1280x1080"
|
|
||||||
Then I should see "Acceptance test site"
|
|
||||||
And I log in as "teacher1"
|
|
||||||
And I press "menu" in the app
|
|
||||||
And I press "Website" in the app
|
|
||||||
And I switch to the browser tab opened by the app
|
|
||||||
And I follow "Log in"
|
|
||||||
And I log in as "admin"
|
|
||||||
And I follow "Site administration"
|
|
||||||
And I follow "Mobile authentication"
|
|
||||||
And I set the field "Minimum app version required" to "3.8.1"
|
|
||||||
And I press "Save changes"
|
|
||||||
And I close the browser tab opened by the app
|
|
||||||
When I enter the app
|
|
||||||
And I change viewport size to "1280x1080"
|
|
||||||
And I log in as "teacher1"
|
|
||||||
And I press "menu" in the app
|
|
||||||
And I press "Website" in the app
|
|
||||||
And I switch to the browser tab opened by the app
|
|
||||||
And I follow "Log in"
|
|
||||||
And I log in as "admin"
|
|
||||||
And I follow "Site administration"
|
|
||||||
And I follow "Mobile authentication"
|
|
||||||
And I set the field "Minimum app version required" to "3.8.2"
|
|
||||||
And I press "Save changes"
|
|
||||||
And I close the browser tab opened by the app
|
|
||||||
When I enter the app
|
|
||||||
And I change viewport size to "1280x1080"
|
|
||||||
Then I should see "App update required"
|
|
File diff suppressed because it is too large
Load Diff
|
@ -30,7 +30,6 @@ Feature: Attempt a quiz in app
|
||||||
| question | page |
|
| question | page |
|
||||||
| TF1 | 1 |
|
| TF1 | 1 |
|
||||||
| TF2 | 2 |
|
| TF2 | 2 |
|
||||||
|
|
||||||
And the following "activities" exist:
|
And the following "activities" exist:
|
||||||
| activity | name | intro | course | idnumber |
|
| activity | name | intro | course | idnumber |
|
||||||
| quiz | Quiz 2 | Quiz 2 description | C1 | quiz2 |
|
| quiz | Quiz 2 | Quiz 2 description | C1 | quiz2 |
|
||||||
|
@ -48,7 +47,7 @@ Feature: Attempt a quiz in app
|
||||||
| Test questions | match | TF9 | Text of the seventh question |
|
| Test questions | match | TF9 | Text of the seventh question |
|
||||||
And quiz "Quiz 2" contains the following questions:
|
And quiz "Quiz 2" contains the following questions:
|
||||||
| question | page |
|
| question | page |
|
||||||
| TF3 | 1 |
|
| TF3 | 1 |
|
||||||
| TF4 | 2 |
|
| TF4 | 2 |
|
||||||
| TF5 | 3 |
|
| TF5 | 3 |
|
||||||
| TF6 | 4 |
|
| TF6 | 4 |
|
||||||
|
@ -56,40 +55,48 @@ Feature: Attempt a quiz in app
|
||||||
| TF8 | 6 |
|
| TF8 | 6 |
|
||||||
| TF9 | 7 |
|
| TF9 | 7 |
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
@app @3.8.0 @OK
|
Scenario: View a quiz entry page (attempts, status, etc.)
|
||||||
Scenario: View a quiz entry page (attempts, status, etc.)
|
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
And I press "Quiz 1" in the app
|
And I press "Quiz 1" in the app
|
||||||
And I press "Attempt quiz now" in the app
|
And I press "Attempt quiz now" in the app
|
||||||
Then I should see "Text of the first question"
|
Then I should see "Text of the first question"
|
||||||
And I should not see "Text of the second question"
|
But I should not see "Text of the second question"
|
||||||
And I press "Next" near "Question 1" in the app
|
|
||||||
And I should see "Text of the second question"
|
When I press "Next" near "Question 1" in the app
|
||||||
And I should not see "Text of the first question"
|
Then I should see "Text of the second question"
|
||||||
And I press "Previous" near "Question 2" in the app
|
But I should not see "Text of the first question"
|
||||||
And I should not see "Text of the second question"
|
|
||||||
And I should see "Text of the first question"
|
When I press "Previous" near "Question 2" in the app
|
||||||
|
Then I should see "Text of the first question"
|
||||||
|
But I should not see "Text of the second question"
|
||||||
|
|
||||||
|
When I press "Next" near "Quiz 1" in the app
|
||||||
|
Then I should see "Text of the second question"
|
||||||
|
But I should not see "Text of the first question"
|
||||||
|
|
||||||
|
When I press "Previous" near "Quiz 1" in the app
|
||||||
|
Then I should see "Text of the first question"
|
||||||
|
But I should not see "Text of the second question"
|
||||||
|
|
||||||
|
When I press "Next" near "Question 1" in the app
|
||||||
And I press "Next" near "Quiz 1" in the app
|
And I press "Next" near "Quiz 1" in the app
|
||||||
And I should see "Text of the second question"
|
Then I should see "Summary of attempt"
|
||||||
And I should not see "Text of the first question"
|
|
||||||
And I press "Previous" near "Quiz 1" in the app
|
When I press "Return to attempt" in the app
|
||||||
And I should not see "Text of the second question"
|
Then I should see "Text of the second question"
|
||||||
And I should see "Text of the first question"
|
But I should not see "Text of the first question"
|
||||||
And I press "Next" near "Question 1" in the app
|
|
||||||
And I press "Next" near "Quiz 1" in the app
|
When I press "Next" in the app
|
||||||
And I should see "Summary of attempt"
|
|
||||||
And I press "Return to attempt" in the app
|
|
||||||
And I should see "Text of the second question"
|
|
||||||
And I should not see "Text of the first question"
|
|
||||||
And I press "Next" in the app
|
|
||||||
And I press "Submit all and finish" in the app
|
And I press "Submit all and finish" in the app
|
||||||
Then I should see "Once you submit"
|
Then I should see "Once you submit"
|
||||||
And I press "Cancel" near "Once you submit" in the app
|
|
||||||
And I should see "Summary of attempt"
|
When I press "Cancel" near "Once you submit" in the app
|
||||||
And I press "Submit all and finish" in the app
|
Then I should see "Summary of attempt"
|
||||||
|
|
||||||
|
When I press "Submit all and finish" in the app
|
||||||
And I press "OK" near "Once you submit" in the app
|
And I press "OK" near "Once you submit" in the app
|
||||||
Then I should see "Review of attempt 1"
|
Then I should see "Review of attempt 1"
|
||||||
And I should see "Started on"
|
And I should see "Started on"
|
||||||
|
@ -101,8 +108,8 @@ Feature: Attempt a quiz in app
|
||||||
And I should see "Question 1"
|
And I should see "Question 1"
|
||||||
And I should see "Question 2"
|
And I should see "Question 2"
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
@app @3.8.0
|
||||||
Scenario: Attempt a quiz (all question types)
|
Scenario: Attempt a quiz (all question types)
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
@ -134,8 +141,8 @@ Feature: Attempt a quiz in app
|
||||||
And I should see "Finished"
|
And I should see "Finished"
|
||||||
And I should see "Not yet graded"
|
And I should see "Not yet graded"
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
@app @3.8.0
|
||||||
Scenario: Submit a quiz and review a quiz attempt
|
Scenario: Submit a quiz and review a quiz attempt
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
@ -148,6 +155,7 @@ Feature: Attempt a quiz in app
|
||||||
And I press "Submit all and finish" in the app
|
And I press "Submit all and finish" in the app
|
||||||
And I press "OK" in the app
|
And I press "OK" in the app
|
||||||
Then I should see "Review of attempt 1"
|
Then I should see "Review of attempt 1"
|
||||||
|
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "teacher1"
|
And I log in as "teacher1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
@ -160,4 +168,3 @@ Feature: Attempt a quiz in app
|
||||||
And I follow "Review attempt"
|
And I follow "Review attempt"
|
||||||
Then I should see "Finished"
|
Then I should see "Finished"
|
||||||
And I should see "1.00/2.00"
|
And I should see "1.00/2.00"
|
||||||
And I close the browser tab opened by the app
|
|
|
@ -17,579 +17,382 @@ Feature: Test basic usage of survey activity in app
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
And the following "activities" exist:
|
And the following "activities" exist:
|
||||||
| activity | name | intro | course | idnumber | groupmode |
|
| activity | name | intro | course | idnumber | groupmode |
|
||||||
| survey | Test survey name | Test survey | C1 | survey | 0 |
|
| survey | Test survey name | Test survey | C1 | survey | 0 |
|
||||||
|
|
||||||
@app @3.8.0 @mobile @OK
|
@app @3.8.0
|
||||||
Scenario: Student answers a survey ATTLS and see results mobile
|
Scenario: Student answers a survey ATTLS and see results
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
And I press "Test survey name" in the app
|
And I press "Test survey name" in the app
|
||||||
And I press "Choose" near "1. In evaluating what someone says, I focus on the quality of their argument, not on the person who's presenting it." in the app
|
And I press "Choose" near "1. In evaluating what someone says, I focus on the quality of their argument, not on the person who's presenting it." in the app
|
||||||
And I press "Strongly agree" in the app
|
And I press "Strongly agree" in the app
|
||||||
And I press "Choose" near "2. I like playing devil's advocate - arguing the opposite of what someone is saying." in the app
|
And I press "Choose" near "2. I like playing devil's advocate - arguing the opposite of what someone is saying." in the app
|
||||||
And I press "Strongly disagree" in the app
|
And I press "Strongly disagree" in the app
|
||||||
And I press "Choose" near "3. I like to understand where other people are 'coming from', what experiences have led them to feel the way they do." in the app
|
And I press "Choose" near "3. I like to understand where other people are 'coming from', what experiences have led them to feel the way they do." in the app
|
||||||
And I press "Somewhat agree" in the app
|
And I press "Somewhat agree" in the app
|
||||||
And I press "Choose" near "4. The most important part of my education has been learning to understand people who are very different to me." in the app
|
And I press "Choose" near "4. The most important part of my education has been learning to understand people who are very different to me." in the app
|
||||||
And I press "Somewhat disagree" in the app
|
And I press "Somewhat disagree" in the app
|
||||||
And I press "Choose" near "5. I feel that the best way for me to achieve my own identity is to interact with a variety of other people." in the app
|
And I press "Choose" near "5. I feel that the best way for me to achieve my own identity is to interact with a variety of other people." in the app
|
||||||
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
||||||
And I press "Choose" near "6. I enjoy hearing the opinions of people who come from backgrounds different to mine - it helps me to understand how the same things can be seen in such different ways." in the app
|
And I press "Choose" near "6. I enjoy hearing the opinions of people who come from backgrounds different to mine - it helps me to understand how the same things can be seen in such different ways." in the app
|
||||||
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
||||||
And I press "Choose" near "7. I find that I can strengthen my own position through arguing with someone who disagrees with me." in the app
|
And I press "Choose" near "7. I find that I can strengthen my own position through arguing with someone who disagrees with me." in the app
|
||||||
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
||||||
And I press "Choose" near "8. I am always interested in knowing why people say and believe the things they do." in the app
|
And I press "Choose" near "8. I am always interested in knowing why people say and believe the things they do." in the app
|
||||||
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
||||||
And I press "Choose" near "9. I often find myself arguing with the authors of books that I read, trying to logically figure out why they're wrong." in the app
|
And I press "Choose" near "9. I often find myself arguing with the authors of books that I read, trying to logically figure out why they're wrong." in the app
|
||||||
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
||||||
And I press "Choose" near "10. It's important for me to remain as objective as possible when I analyze something." in the app
|
And I press "Choose" near "10. It's important for me to remain as objective as possible when I analyze something." in the app
|
||||||
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
||||||
And I press "Choose" near "11. I try to think with people instead of against them." in the app
|
And I press "Choose" near "11. I try to think with people instead of against them." in the app
|
||||||
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
||||||
And I press "Choose" near "12. I have certain criteria I use in evaluating arguments." in the app
|
And I press "Choose" near "12. I have certain criteria I use in evaluating arguments." in the app
|
||||||
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
||||||
And I press "Choose" near "13. I'm more likely to try to understand someone else's opinion than to try to evaluate it." in the app
|
And I press "Choose" near "13. I'm more likely to try to understand someone else's opinion than to try to evaluate it." in the app
|
||||||
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
||||||
And I press "Choose" near "14. I try to point out weaknesses in other people's thinking to help them clarify their arguments." in the app
|
And I press "Choose" near "14. I try to point out weaknesses in other people's thinking to help them clarify their arguments." in the app
|
||||||
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
||||||
And I press "Choose" near "15. I tend to put myself in other people's shoes when discussing controversial issues, to see why they think the way they do." in the app
|
And I press "Choose" near "15. I tend to put myself in other people's shoes when discussing controversial issues, to see why they think the way they do." in the app
|
||||||
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
||||||
And I press "Choose" near "16. One could call my way of analysing things 'putting them on trial' because I am careful to consider all the evidence." in the app
|
And I press "Choose" near "16. One could call my way of analysing things 'putting them on trial' because I am careful to consider all the evidence." in the app
|
||||||
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
||||||
And I press "Choose" near "17. I value the use of logic and reason over the incorporation of my own concerns when solving problems." in the app
|
And I press "Choose" near "17. I value the use of logic and reason over the incorporation of my own concerns when solving problems." in the app
|
||||||
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
||||||
And I press "Choose" near "18. I can obtain insight into opinions that differ from mine through empathy." in the app
|
And I press "Choose" near "18. I can obtain insight into opinions that differ from mine through empathy." in the app
|
||||||
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
||||||
And I press "Choose" near "19. When I encounter people whose opinions seem alien to me, I make a deliberate effort to 'extend' myself into that person, to try to see how they could have those opinions." in the app
|
And I press "Choose" near "19. When I encounter people whose opinions seem alien to me, I make a deliberate effort to 'extend' myself into that person, to try to see how they could have those opinions." in the app
|
||||||
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
||||||
And I press "Choose" near "20. I spend time figuring out what's 'wrong' with things. For example, I'll look for something in a literary interpretation that isn't argued well enough." in the app
|
And I press "Choose" near "20. I spend time figuring out what's 'wrong' with things. For example, I'll look for something in a literary interpretation that isn't argued well enough." in the app
|
||||||
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
And I press "Somewhat agree" near "Neither agree nor disagree" in the app
|
||||||
And I press "Submit" in the app
|
And I press "Submit" in the app
|
||||||
And I press "OK" in the app
|
And I press "OK" in the app
|
||||||
And I press "open" in the app
|
And I press "open" in the app
|
||||||
And I switch to the browser tab opened by the app
|
And I switch to the browser tab opened by the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
Then I should see "You've completed this survey. The graph below shows a summary of your results compared to the class averages."
|
Then I should see "You've completed this survey. The graph below shows a summary of your results compared to the class averages."
|
||||||
And I should see "1 people have completed this survey so far"
|
And I should see "1 people have completed this survey so far"
|
||||||
|
|
||||||
@app @3.8.0 @tablet @OK
|
@app @3.8.0
|
||||||
Scenario: Student answers a survey ATTLS and see results tablet
|
|
||||||
When I enter the app
|
|
||||||
And I change viewport size to "1280x1080"
|
|
||||||
And I log in as "student1"
|
|
||||||
And I press "Course 1" near "Course overview" in the app
|
|
||||||
And I press "Test survey name" in the app
|
|
||||||
And I press "1. In evaluating what someone says, I focus on the quality of their argument, not on the person who's presenting it." in the app
|
|
||||||
And I press "2. I like playing devil's advocate - arguing the opposite of what someone is saying." in the app
|
|
||||||
And I press "3. I like to understand where other people are 'coming from', what experiences have led them to feel the way they do." in the app
|
|
||||||
And I press "4. The most important part of my education has been learning to understand people who are very different to me." in the app
|
|
||||||
And I press "5. I feel that the best way for me to achieve my own identity is to interact with a variety of other people." in the app
|
|
||||||
And I press "6. I enjoy hearing the opinions of people who come from backgrounds different to mine - it helps me to understand how the same things can be seen in such different ways." in the app
|
|
||||||
And I press "7. I find that I can strengthen my own position through arguing with someone who disagrees with me." in the app
|
|
||||||
And I press "8. I am always interested in knowing why people say and believe the things they do." in the app
|
|
||||||
And I press "9. I often find myself arguing with the authors of books that I read, trying to logically figure out why they're wrong." in the app
|
|
||||||
And I press "10. It's important for me to remain as objective as possible when I analyze something." in the app
|
|
||||||
And I press "11. I try to think with people instead of against them." in the app
|
|
||||||
And I press "12. I have certain criteria I use in evaluating arguments." in the app
|
|
||||||
And I press "13. I'm more likely to try to understand someone else's opinion than to try to evaluate it." in the app
|
|
||||||
And I press "14. I try to point out weaknesses in other people's thinking to help them clarify their arguments." in the app
|
|
||||||
And I press "15. I tend to put myself in other people's shoes when discussing controversial issues, to see why they think the way they do." in the app
|
|
||||||
And I press "16. One could call my way of analysing things 'putting them on trial' because I am careful to consider all the evidence." in the app
|
|
||||||
And I press "17. I value the use of logic and reason over the incorporation of my own concerns when solving problems." in the app
|
|
||||||
And I press "18. I can obtain insight into opinions that differ from mine through empathy." in the app
|
|
||||||
And I press "19. When I encounter people whose opinions seem alien to me, I make a deliberate effort to 'extend' myself into that person, to try to see how they could have those opinions." in the app
|
|
||||||
And I press "20. I spend time figuring out what's 'wrong' with things. For example, I'll look for something in a literary interpretation that isn't argued well enough." in the app
|
|
||||||
And I press "Submit" in the app
|
|
||||||
And I press "OK" in the app
|
|
||||||
And I press "open" in the app
|
|
||||||
And I switch to the browser tab opened by the app
|
|
||||||
And I log in as "student1"
|
|
||||||
Then I should see "You've completed this survey. The graph below shows a summary of your results compared to the class averages."
|
|
||||||
And I should see "1 people have completed this survey so far"
|
|
||||||
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
|
||||||
Scenario: Student answers a survey of critical incidents and see results
|
Scenario: Student answers a survey of critical incidents and see results
|
||||||
Given the following "activities" exist:
|
Given the following "activities" exist:
|
||||||
| activity | name | intro | template |course | idnumber | groupmode |
|
| activity | name | intro | template |course | idnumber | groupmode |
|
||||||
| survey | Test survey critical incidents | Test survey1 | 5 | C1 | survey1 | 0 |
|
| survey | Test survey critical incidents | Test survey1 | 5 | C1 | survey1 | 0 |
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
And I press "Test survey critical incidents" in the app
|
And I press "Test survey critical incidents" in the app
|
||||||
And I press "Submit" in the app
|
And I press "Submit" in the app
|
||||||
And I press "OK" in the app
|
And I press "OK" in the app
|
||||||
Then I should see "Results"
|
Then I should see "Results"
|
||||||
And I press "Results" in the app
|
|
||||||
And I switch to the browser tab opened by the app
|
|
||||||
And I log in as "student1"
|
|
||||||
Then I should see "Test survey critical incidents"
|
|
||||||
|
|
||||||
@app @3.8.0 @mobile @OK
|
When I press "Results" in the app
|
||||||
Scenario: Student answers a survey of Colles (actual) and see results mobile
|
And I switch to the browser tab opened by the app
|
||||||
Given the following "activities" exist:
|
And I log in as "student1"
|
||||||
| activity | name | intro | template |course | idnumber | groupmode |
|
Then I should see "Test survey critical incidents"
|
||||||
| survey | Test survey Colles (actual) | Test survey1 | 1 | C1 | survey1 | 0 |
|
|
||||||
When I enter the app
|
|
||||||
And I log in as "student1"
|
|
||||||
And I press "Course 1" near "Course overview" in the app
|
|
||||||
And I press "Test survey Colles (actual)" in the app
|
|
||||||
And I press "Choose" near "1. my learning focuses on issues that interest me." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "2. what I learn is important for my professional practice." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "3. I learn how to improve my professional practice." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "4. what I learn connects well with my professional practice." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "5. I think critically about how I learn." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "6. I think critically about my own ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "7. I think critically about other students' ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "8. I think critically about ideas in the readings." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "9. I explain my ideas to other students." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "10. I ask other students to explain their ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "11. other students ask me to explain my ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "12. other students respond to my ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "13. the tutor stimulates my thinking." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "14. the tutor encourages me to participate." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "15. the tutor models good discourse." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "16. the tutor models critical self-reflection." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "17. other students encourage my participation." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "18. other students praise my contribution." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "19. other students value my contribution." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "20. other students empathise with my struggle to learn." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "21. I make good sense of other students' messages." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "22. other students make good sense of my messages." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "23. I make good sense of the tutor's messages." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "24. the tutor makes good sense of my messages." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "25. How long did this survey take you to complete?" in the app
|
|
||||||
And I press "under 1 min" in the app
|
|
||||||
And I press "Submit" in the app
|
|
||||||
And I press "OK" in the app
|
|
||||||
Then I should see "You have completed this survey"
|
|
||||||
And I should see "Results"
|
|
||||||
And I press "Results" in the app
|
|
||||||
And I switch to the browser tab opened by the app
|
|
||||||
And I log in as "student1"
|
|
||||||
Then I should see "You've completed this survey. The graph below shows a summary of your results compared to the class averages."
|
|
||||||
And I should see "1 people have completed this survey so far"
|
|
||||||
|
|
||||||
@app @3.8.0 @tablet @OK
|
@app @3.8.0
|
||||||
Scenario: Student answers a survey of Colles (actual) and see results tablet
|
Scenario: Student answers a survey of Colles (actual) and see results
|
||||||
Given the following "activities" exist:
|
Given the following "activities" exist:
|
||||||
| activity | name | intro | template |course | idnumber | groupmode |
|
| activity | name | intro | template |course | idnumber | groupmode |
|
||||||
| survey | Test survey Colles (actual) | Test survey1 | 1 | C1 | survey1 | 0 |
|
| survey | Test survey Colles (actual) | Test survey1 | 1 | C1 | survey1 | 0 |
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I change viewport size to "1280x1080"
|
And I log in as "student1"
|
||||||
And I log in as "student1"
|
And I press "Course 1" near "Course overview" in the app
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Test survey Colles (actual)" in the app
|
||||||
And I press "Test survey Colles (actual)" in the app
|
And I press "Choose" near "1. my learning focuses on issues that interest me." in the app
|
||||||
And I press "1. my learning focuses on issues that interest me." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "2. what I learn is important for my professional practice." in the app
|
And I press "Choose" near "2. what I learn is important for my professional practice." in the app
|
||||||
And I press "3. I learn how to improve my professional practice." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "4. what I learn connects well with my professional practice." in the app
|
And I press "Choose" near "3. I learn how to improve my professional practice." in the app
|
||||||
And I press "5. I think critically about how I learn." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "6. I think critically about my own ideas." in the app
|
And I press "Choose" near "4. what I learn connects well with my professional practice." in the app
|
||||||
And I press "7. I think critically about other students' ideas." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "8. I think critically about ideas in the readings." in the app
|
And I press "Choose" near "5. I think critically about how I learn." in the app
|
||||||
And I press "9. I explain my ideas to other students." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "10. I ask other students to explain their ideas." in the app
|
And I press "Choose" near "6. I think critically about my own ideas." in the app
|
||||||
And I press "11. other students ask me to explain my ideas." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "12. other students respond to my ideas." in the app
|
And I press "Choose" near "7. I think critically about other students' ideas." in the app
|
||||||
And I press "13. the tutor stimulates my thinking." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "14. the tutor encourages me to participate." in the app
|
And I press "Choose" near "8. I think critically about ideas in the readings." in the app
|
||||||
And I press "15. the tutor models good discourse." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "16. the tutor models critical self-reflection." in the app
|
And I press "Choose" near "9. I explain my ideas to other students." in the app
|
||||||
And I press "17. other students encourage my participation." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "18. other students praise my contribution." in the app
|
And I press "Choose" near "10. I ask other students to explain their ideas." in the app
|
||||||
And I press "19. other students value my contribution." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "20. other students empathise with my struggle to learn." in the app
|
And I press "Choose" near "11. other students ask me to explain my ideas." in the app
|
||||||
And I press "21. I make good sense of other students' messages." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "22. other students make good sense of my messages." in the app
|
And I press "Choose" near "12. other students respond to my ideas." in the app
|
||||||
And I press "23. I make good sense of the tutor's messages." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "24. the tutor makes good sense of my messages." in the app
|
And I press "Choose" near "13. the tutor stimulates my thinking." in the app
|
||||||
And I press "25. How long did this survey take you to complete?" in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "under 1 min" in the app
|
And I press "Choose" near "14. the tutor encourages me to participate." in the app
|
||||||
And I press "Submit" in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "OK" in the app
|
And I press "Choose" near "15. the tutor models good discourse." in the app
|
||||||
Then I should see "You have completed this survey"
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I should see "Results"
|
And I press "Choose" near "16. the tutor models critical self-reflection." in the app
|
||||||
And I press "Results" in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I switch to the browser tab opened by the app
|
And I press "Choose" near "17. other students encourage my participation." in the app
|
||||||
And I log in as "student1"
|
And I press "Sometimes" near "Often" in the app
|
||||||
Then I should see "You've completed this survey. The graph below shows a summary of your results compared to the class averages."
|
And I press "Choose" near "18. other students praise my contribution." in the app
|
||||||
And I should see "1 people have completed this survey so far"
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "19. other students value my contribution." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "20. other students empathise with my struggle to learn." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "21. I make good sense of other students' messages." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "22. other students make good sense of my messages." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "23. I make good sense of the tutor's messages." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "24. the tutor makes good sense of my messages." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "25. How long did this survey take you to complete?" in the app
|
||||||
|
And I press "under 1 min" in the app
|
||||||
|
And I press "Submit" in the app
|
||||||
|
And I press "OK" in the app
|
||||||
|
Then I should see "You have completed this survey"
|
||||||
|
|
||||||
@app @3.8.0 @mobile @OK
|
When I press "Results" in the app
|
||||||
Scenario: Student answers a survey of Colles (preferred) and see results mobile
|
And I switch to the browser tab opened by the app
|
||||||
Given the following "activities" exist:
|
And I log in as "student1"
|
||||||
| activity | name | intro | template |course | idnumber | groupmode |
|
Then I should see "You've completed this survey. The graph below shows a summary of your results compared to the class averages."
|
||||||
| survey | Test survey Colles (preferred) | Test survey1 | 2 | C1 | survey1 | 0 |
|
And I should see "1 people have completed this survey so far"
|
||||||
When I enter the app
|
|
||||||
And I log in as "student1"
|
|
||||||
And I press "Course 1" near "Course overview" in the app
|
|
||||||
And I press "Test survey Colles (preferred)" in the app
|
|
||||||
And I press "Choose" near "1. my learning focuses on issues that interest me." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "2. what I learn is important for my professional practice." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "3. I learn how to improve my professional practice." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "4. what I learn connects well with my professional practice." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "5. I think critically about how I learn." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "6. I think critically about my own ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "7. I think critically about other students' ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "8. I think critically about ideas in the readings." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "9. I explain my ideas to other students." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "10. I ask other students to explain their ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "11. other students ask me to explain my ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "12. other students respond to my ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "13. the tutor stimulates my thinking." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "14. the tutor encourages me to participate." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "15. the tutor models good discourse." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "16. the tutor models critical self-reflection." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "17. other students encourage my participation." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "18. other students praise my contribution." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "19. other students value my contribution." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "20. other students empathise with my struggle to learn." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "21. I make good sense of other students' messages." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "22. other students make good sense of my messages." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "23. I make good sense of the tutor's messages." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "24. the tutor makes good sense of my messages." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "25. How long did this survey take you to complete?" in the app
|
|
||||||
And I press "under 1 min" in the app
|
|
||||||
And I press "Submit" in the app
|
|
||||||
And I press "OK" in the app
|
|
||||||
Then I should see "You have completed this survey"
|
|
||||||
And I should see "Results"
|
|
||||||
And I press "Results" in the app
|
|
||||||
And I switch to the browser tab opened by the app
|
|
||||||
And I log in as "student1"
|
|
||||||
Then I should see "You've completed this survey. The graph below shows a summary of your results compared to the class averages."
|
|
||||||
And I should see "1 people have completed this survey so far"
|
|
||||||
|
|
||||||
@app @3.8.0 @tablet @OK
|
@app @3.8.0
|
||||||
Scenario: Student answers a survey of Colles (preferred) and see results tablet
|
Scenario: Student answers a survey of Colles (preferred) and see results
|
||||||
Given the following "activities" exist:
|
Given the following "activities" exist:
|
||||||
| activity | name | intro | template |course | idnumber | groupmode |
|
| activity | name | intro | template | course | idnumber | groupmode |
|
||||||
| survey | Test survey Colles (preferred) | Test survey1 | 2 | C1 | survey1 | 0 |
|
| survey | Test survey Colles (preferred) | Test survey1 | 2 | C1 | survey1 | 0 |
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I change viewport size to "1280x1080"
|
And I log in as "student1"
|
||||||
And I log in as "student1"
|
And I press "Course 1" near "Course overview" in the app
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Test survey Colles (preferred)" in the app
|
||||||
And I press "Test survey Colles (preferred)" in the app
|
And I press "Choose" near "1. my learning focuses on issues that interest me." in the app
|
||||||
And I press "1. my learning focuses on issues that interest me." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "2. what I learn is important for my professional practice." in the app
|
And I press "Choose" near "2. what I learn is important for my professional practice." in the app
|
||||||
And I press "3. I learn how to improve my professional practice." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "4. what I learn connects well with my professional practice." in the app
|
And I press "Choose" near "3. I learn how to improve my professional practice." in the app
|
||||||
And I press "5. I think critically about how I learn." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "6. I think critically about my own ideas." in the app
|
And I press "Choose" near "4. what I learn connects well with my professional practice." in the app
|
||||||
And I press "7. I think critically about other students' ideas." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "8. I think critically about ideas in the readings." in the app
|
And I press "Choose" near "5. I think critically about how I learn." in the app
|
||||||
And I press "9. I explain my ideas to other students." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "10. I ask other students to explain their ideas." in the app
|
And I press "Choose" near "6. I think critically about my own ideas." in the app
|
||||||
And I press "11. other students ask me to explain my ideas." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "12. other students respond to my ideas." in the app
|
And I press "Choose" near "7. I think critically about other students' ideas." in the app
|
||||||
And I press "13. the tutor stimulates my thinking." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "14. the tutor encourages me to participate." in the app
|
And I press "Choose" near "8. I think critically about ideas in the readings." in the app
|
||||||
And I press "15. the tutor models good discourse." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "16. the tutor models critical self-reflection." in the app
|
And I press "Choose" near "9. I explain my ideas to other students." in the app
|
||||||
And I press "17. other students encourage my participation." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "18. other students praise my contribution." in the app
|
And I press "Choose" near "10. I ask other students to explain their ideas." in the app
|
||||||
And I press "19. other students value my contribution." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "20. other students empathise with my struggle to learn." in the app
|
And I press "Choose" near "11. other students ask me to explain my ideas." in the app
|
||||||
And I press "21. I make good sense of other students' messages." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "22. other students make good sense of my messages." in the app
|
And I press "Choose" near "12. other students respond to my ideas." in the app
|
||||||
And I press "23. I make good sense of the tutor's messages." in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "24. the tutor makes good sense of my messages." in the app
|
And I press "Choose" near "13. the tutor stimulates my thinking." in the app
|
||||||
And I press "25. How long did this survey take you to complete?" in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "under 1 min" in the app
|
And I press "Choose" near "14. the tutor encourages me to participate." in the app
|
||||||
And I press "Submit" in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I press "OK" in the app
|
And I press "Choose" near "15. the tutor models good discourse." in the app
|
||||||
Then I should see "You have completed this survey"
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I should see "Results"
|
And I press "Choose" near "16. the tutor models critical self-reflection." in the app
|
||||||
And I press "Results" in the app
|
And I press "Sometimes" near "Often" in the app
|
||||||
And I switch to the browser tab opened by the app
|
And I press "Choose" near "17. other students encourage my participation." in the app
|
||||||
And I log in as "student1"
|
And I press "Sometimes" near "Often" in the app
|
||||||
Then I should see "You've completed this survey. The graph below shows a summary of your results compared to the class averages."
|
And I press "Choose" near "18. other students praise my contribution." in the app
|
||||||
And I should see "1 people have completed this survey so far"
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "19. other students value my contribution." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "20. other students empathise with my struggle to learn." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "21. I make good sense of other students' messages." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "22. other students make good sense of my messages." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "23. I make good sense of the tutor's messages." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "24. the tutor makes good sense of my messages." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "25. How long did this survey take you to complete?" in the app
|
||||||
|
And I press "under 1 min" in the app
|
||||||
|
And I press "Submit" in the app
|
||||||
|
And I press "OK" in the app
|
||||||
|
Then I should see "You have completed this survey"
|
||||||
|
|
||||||
|
When I press "Results" in the app
|
||||||
|
And I switch to the browser tab opened by the app
|
||||||
|
And I log in as "student1"
|
||||||
|
Then I should see "You've completed this survey. The graph below shows a summary of your results compared to the class averages."
|
||||||
|
And I should see "1 people have completed this survey so far"
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
|
Scenario: Student answers a survey of Colles (preferred and actual) and see results
|
||||||
|
Given the following "activities" exist:
|
||||||
|
| activity | name | intro | template | course | idnumber | groupmode |
|
||||||
|
| survey | Test survey Colles (preferred and actual) | Test survey1 | 3 | C1 | survey1 | 0 |
|
||||||
|
When I enter the app
|
||||||
|
And I log in as "student1"
|
||||||
|
And I press "Course 1" near "Course overview" in the app
|
||||||
|
And I press "Test survey Colles (preferred and actual)" in the app
|
||||||
|
And I press "Choose" near "1. I prefer that my learning focuses on issues that interest me." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "2. I found that my learning focuses on issues that interest me." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "3. I prefer that what I learn is important for my professional practice." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "4. I found that what I learn is important for my professional practice." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "5. I prefer that I learn how to improve my professional practice." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "6. I found that I learn how to improve my professional practice." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "7. I prefer that what I learn connects well with my professional practice." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "8. I found that what I learn connects well with my professional practice." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "9. I prefer that I think critically about how I learn." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "10. I found that I think critically about how I learn." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "11. I prefer that I think critically about my own ideas." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "12. I found that I think critically about my own ideas." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "13. I prefer that I think critically about other students' ideas." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "14. I found that I think critically about other students' ideas." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "15. I prefer that I think critically about ideas in the readings." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "16. I found that I think critically about ideas in the readings." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "17. I prefer that I explain my ideas to other students." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "18. I found that I explain my ideas to other students." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "19. I prefer that I ask other students to explain their ideas." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "20. I found that I ask other students to explain their ideas." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "21. I prefer that other students ask me to explain my ideas." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "22. I found that other students ask me to explain my ideas." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "23. I prefer that other students respond to my ideas." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "24. I found that other students respond to my ideas." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "25. I prefer that the tutor stimulates my thinking." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "26. I found that the tutor stimulates my thinking." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "27. I prefer that the tutor encourages me to participate." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "28. I found that the tutor encourages me to participate." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "29. I prefer that the tutor models good discourse." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "30. I found that the tutor models good discourse." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "31. I prefer that the tutor models critical self-reflection." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "32. I found that the tutor models critical self-reflection." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "33. I prefer that other students encourage my participation." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "34. I found that other students encourage my participation." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "35. I prefer that other students praise my contribution." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "36. I found that other students praise my contribution." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "37. I prefer that other students value my contribution." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "38. I found that other students value my contribution." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "39. I prefer that other students empathise with my struggle to learn." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "40. I found that other students empathise with my struggle to learn." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "41. I prefer that I make good sense of other students' messages." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "42. I found that I make good sense of other students' messages." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "43. I prefer that other students make good sense of my messages." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "44. I found that other students make good sense of my messages." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "45. I prefer that I make good sense of the tutor's messages." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "46. I found that I make good sense of the tutor's messages." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "47. I prefer that the tutor makes good sense of my messages." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "48. I found that the tutor makes good sense of my messages." in the app
|
||||||
|
And I press "Sometimes" near "Often" in the app
|
||||||
|
And I press "Choose" near "49. How long did this survey take you to complete?" in the app
|
||||||
|
And I press "1-2 min" in the app
|
||||||
|
And I press "Submit" in the app
|
||||||
|
And I press "OK" in the app
|
||||||
|
Then I should see "You have completed this survey"
|
||||||
|
|
||||||
@app @3.8.0 @mobile @OK
|
When I press "Results" in the app
|
||||||
Scenario: Student answers a survey of Colles (preferred and actual) and see results mobile
|
And I switch to the browser tab opened by the app
|
||||||
Given the following "activities" exist:
|
And I log in as "student1"
|
||||||
| activity | name | intro | template |course | idnumber | groupmode |
|
Then I should see "You've completed this survey. The graph below shows a summary of your results compared to the class averages."
|
||||||
| survey | Test survey Colles (preferred and actual) | Test survey1 | 3 | C1 | survey1 | 0 |
|
And I should see "1 people have completed this survey so far"
|
||||||
When I enter the app
|
|
||||||
And I log in as "student1"
|
|
||||||
And I press "Course 1" near "Course overview" in the app
|
|
||||||
And I press "Test survey Colles (preferred and actual)" in the app
|
|
||||||
And I press "Choose" near "1. I prefer that my learning focuses on issues that interest me." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "2. I found that my learning focuses on issues that interest me." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "3. I prefer that what I learn is important for my professional practice." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "4. I found that what I learn is important for my professional practice." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "5. I prefer that I learn how to improve my professional practice." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "6. I found that I learn how to improve my professional practice." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "7. I prefer that what I learn connects well with my professional practice." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "8. I found that what I learn connects well with my professional practice." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "9. I prefer that I think critically about how I learn." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "10. I found that I think critically about how I learn." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "11. I prefer that I think critically about my own ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "12. I found that I think critically about my own ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "13. I prefer that I think critically about other students' ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "14. I found that I think critically about other students' ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "15. I prefer that I think critically about ideas in the readings." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "16. I found that I think critically about ideas in the readings." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "17. I prefer that I explain my ideas to other students." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "18. I found that I explain my ideas to other students." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "19. I prefer that I ask other students to explain their ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "20. I found that I ask other students to explain their ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "21. I prefer that other students ask me to explain my ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "22. I found that other students ask me to explain my ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "23. I prefer that other students respond to my ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "24. I found that other students respond to my ideas." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "25. I prefer that the tutor stimulates my thinking." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "26. I found that the tutor stimulates my thinking." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "27. I prefer that the tutor encourages me to participate." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "28. I found that the tutor encourages me to participate." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "29. I prefer that the tutor models good discourse." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "30. I found that the tutor models good discourse." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "31. I prefer that the tutor models critical self-reflection." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "32. I found that the tutor models critical self-reflection." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "33. I prefer that other students encourage my participation." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "34. I found that other students encourage my participation." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "35. I prefer that other students praise my contribution." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "36. I found that other students praise my contribution." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "37. I prefer that other students value my contribution." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "38. I found that other students value my contribution." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "39. I prefer that other students empathise with my struggle to learn." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "40. I found that other students empathise with my struggle to learn." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "41. I prefer that I make good sense of other students' messages." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "42. I found that I make good sense of other students' messages." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "43. I prefer that other students make good sense of my messages." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "44. I found that other students make good sense of my messages." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "45. I prefer that I make good sense of the tutor's messages." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "46. I found that I make good sense of the tutor's messages." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "47. I prefer that the tutor makes good sense of my messages." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "48. I found that the tutor makes good sense of my messages." in the app
|
|
||||||
And I press "Sometimes" near "Often" in the app
|
|
||||||
And I press "Choose" near "49. How long did this survey take you to complete?" in the app
|
|
||||||
And I press "1-2 min" in the app
|
|
||||||
And I press "Submit" in the app
|
|
||||||
And I press "OK" in the app
|
|
||||||
Then I should see "You have completed this survey"
|
|
||||||
And I should see "Results"
|
|
||||||
And I press "Results" in the app
|
|
||||||
And I switch to the browser tab opened by the app
|
|
||||||
And I log in as "student1"
|
|
||||||
Then I should see "You've completed this survey. The graph below shows a summary of your results compared to the class averages."
|
|
||||||
And I should see "1 people have completed this survey so far"
|
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
@app @3.8.0 @tablet @OK
|
|
||||||
Scenario: Student answers a survey of Colles (preferred and actual) and see results tablet
|
|
||||||
Given the following "activities" exist:
|
|
||||||
| activity | name | intro | template |course | idnumber | groupmode |
|
|
||||||
| survey | Test survey Colles (preferred and actual) | Test survey1 | 3 | C1 | survey1 | 0 |
|
|
||||||
When I enter the app
|
|
||||||
And I change viewport size to "1280x1080"
|
|
||||||
And I log in as "student1"
|
|
||||||
And I press "Course 1" near "Course overview" in the app
|
|
||||||
And I press "Test survey Colles (preferred and actual)" in the app
|
|
||||||
And I press "1. I prefer that my learning focuses on issues that interest me." in the app
|
|
||||||
And I press "2. I found that my learning focuses on issues that interest me." in the app
|
|
||||||
And I press "3. I prefer that what I learn is important for my professional practice." in the app
|
|
||||||
And I press "4. I found that what I learn is important for my professional practice." in the app
|
|
||||||
And I press "5. I prefer that I learn how to improve my professional practice." in the app
|
|
||||||
And I press "6. I found that I learn how to improve my professional practice." in the app
|
|
||||||
And I press "7. I prefer that what I learn connects well with my professional practice." in the app
|
|
||||||
And I press "8. I found that what I learn connects well with my professional practice." in the app
|
|
||||||
And I press "9. I prefer that I think critically about how I learn." in the app
|
|
||||||
And I press "10. I found that I think critically about how I learn." in the app
|
|
||||||
And I press "11. I prefer that I think critically about my own ideas." in the app
|
|
||||||
And I press "12. I found that I think critically about my own ideas." in the app
|
|
||||||
And I press "13. I prefer that I think critically about other students' ideas." in the app
|
|
||||||
And I press "14. I found that I think critically about other students' ideas." in the app
|
|
||||||
And I press "15. I prefer that I think critically about ideas in the readings." in the app
|
|
||||||
And I press "16. I found that I think critically about ideas in the readings." in the app
|
|
||||||
And I press "17. I prefer that I explain my ideas to other students." in the app
|
|
||||||
And I press "18. I found that I explain my ideas to other students." in the app
|
|
||||||
And I press "19. I prefer that I ask other students to explain their ideas." in the app
|
|
||||||
And I press "20. I found that I ask other students to explain their ideas." in the app
|
|
||||||
And I press "21. I prefer that other students ask me to explain my ideas." in the app
|
|
||||||
And I press "22. I found that other students ask me to explain my ideas." in the app
|
|
||||||
And I press "23. I prefer that other students respond to my ideas." in the app
|
|
||||||
And I press "24. I found that other students respond to my ideas." in the app
|
|
||||||
And I press "25. I prefer that the tutor stimulates my thinking." in the app
|
|
||||||
And I press "26. I found that the tutor stimulates my thinking." in the app
|
|
||||||
And I press "27. I prefer that the tutor encourages me to participate." in the app
|
|
||||||
And I press "28. I found that the tutor encourages me to participate." in the app
|
|
||||||
And I press "29. I prefer that the tutor models good discourse." in the app
|
|
||||||
And I press "30. I found that the tutor models good discourse." in the app
|
|
||||||
And I press "31. I prefer that the tutor models critical self-reflection." in the app
|
|
||||||
And I press "32. I found that the tutor models critical self-reflection." in the app
|
|
||||||
And I press "33. I prefer that other students encourage my participation." in the app
|
|
||||||
And I press "34. I found that other students encourage my participation." in the app
|
|
||||||
And I press "35. I prefer that other students praise my contribution." in the app
|
|
||||||
And I press "36. I found that other students praise my contribution." in the app
|
|
||||||
And I press "37. I prefer that other students value my contribution." in the app
|
|
||||||
And I press "38. I found that other students value my contribution." in the app
|
|
||||||
And I press "39. I prefer that other students empathise with my struggle to learn." in the app
|
|
||||||
And I press "40. I found that other students empathise with my struggle to learn." in the app
|
|
||||||
And I press "41. I prefer that I make good sense of other students' messages." in the app
|
|
||||||
And I press "42. I found that I make good sense of other students' messages." in the app
|
|
||||||
And I press "43. I prefer that other students make good sense of my messages." in the app
|
|
||||||
And I press "44. I found that other students make good sense of my messages." in the app
|
|
||||||
And I press "45. I prefer that I make good sense of the tutor's messages." in the app
|
|
||||||
And I press "46. I found that I make good sense of the tutor's messages." in the app
|
|
||||||
And I press "47. I prefer that the tutor makes good sense of my messages." in the app
|
|
||||||
And I press "48. I found that the tutor makes good sense of my messages." in the app
|
|
||||||
And I press "49. How long did this survey take you to complete?" in the app
|
|
||||||
And I press "1-2 min" in the app
|
|
||||||
And I press "Submit" in the app
|
|
||||||
And I press "OK" in the app
|
|
||||||
Then I should see "You have completed this survey"
|
|
||||||
And I should see "Results"
|
|
||||||
And I press "Results" in the app
|
|
||||||
And I switch to the browser tab opened by the app
|
|
||||||
And I log in as "student1"
|
|
||||||
Then I should see "You've completed this survey. The graph below shows a summary of your results compared to the class averages."
|
|
||||||
And I should see "1 people have completed this survey so far"
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
|
||||||
Scenario: Student answers a survey offline and sync survey
|
Scenario: Student answers a survey offline and sync survey
|
||||||
Given the following "activities" exist:
|
Given the following "activities" exist:
|
||||||
| activity | name | intro | template |course | idnumber | groupmode |
|
| activity | name | intro | template | course | idnumber | groupmode |
|
||||||
| survey | Test survey critical incidents | Test survey1 | 5 | C1 | survey1 | 0 |
|
| survey | Test survey critical incidents | Test survey1 | 5 | C1 | survey1 | 0 |
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
And I press "Test survey critical incidents" in the app
|
And I press "Test survey critical incidents" in the app
|
||||||
And I switch offline mode to "true"
|
And I switch offline mode to "true"
|
||||||
And I press "Submit" in the app
|
And I press "Submit" in the app
|
||||||
And I press "OK" in the app
|
And I press "OK" in the app
|
||||||
Then I should see "This Survey has offline data to be synchronised."
|
Then I should see "This Survey has offline data to be synchronised."
|
||||||
And I switch offline mode to "false"
|
|
||||||
And I press the back button in the app
|
|
||||||
And I press "Test survey critical incidents" in the app
|
|
||||||
And I press "Display options" in the app
|
|
||||||
And I press "Refresh" in the app
|
|
||||||
Then I should see "Results"
|
|
||||||
And I should not see "This Survey has offline data to be synchronised."
|
|
||||||
And I should see "You have completed this survey."
|
|
||||||
|
|
||||||
@app @3.8.0 @OK
|
When I switch offline mode to "false"
|
||||||
|
And I press the back button in the app
|
||||||
|
And I press "Test survey critical incidents" in the app
|
||||||
|
And I press "Display options" in the app
|
||||||
|
And I press "Refresh" in the app
|
||||||
|
Then I should see "Results"
|
||||||
|
And I should see "You have completed this survey."
|
||||||
|
But I should not see "This Survey has offline data to be synchronised."
|
||||||
|
|
||||||
|
@app @3.8.0
|
||||||
Scenario: Prefetch and auto-sync
|
Scenario: Prefetch and auto-sync
|
||||||
Given the following "activities" exist:
|
Given the following "activities" exist:
|
||||||
| activity | name | intro | template |course | idnumber | groupmode |
|
| activity | name | intro | template | course | idnumber | groupmode |
|
||||||
| survey | Test survey critical incidents | Test survey1 | 5 | C1 | survey1 | 0 |
|
| survey | Test survey critical incidents | Test survey1 | 5 | C1 | survey1 | 0 |
|
||||||
When I enter the app
|
When I enter the app
|
||||||
And I log in as "student1"
|
And I log in as "student1"
|
||||||
And I press "Course 1" near "Course overview" in the app
|
And I press "Course 1" near "Course overview" in the app
|
||||||
And I press "Display options" in the app
|
And I press "Display options" in the app
|
||||||
And I press "Show download options" in the app
|
And I press "Show download options" in the app
|
||||||
And I press "cloud download" near "Test survey critical incidents" in the app
|
And I press "cloud download" near "Test survey critical incidents" in the app
|
||||||
And I switch offline mode to "true"
|
And I switch offline mode to "true"
|
||||||
And I press "Test survey name" in the app
|
And I press "Test survey name" in the app
|
||||||
Then I should see "There was a problem connecting to the site. Please check your connection and try again."
|
Then I should see "There was a problem connecting to the site. Please check your connection and try again."
|
||||||
And I press "OK" in the app
|
|
||||||
And I press the back button in the app
|
When I press "OK" in the app
|
||||||
And I press "Test survey critical incidents" in the app
|
And I press the back button in the app
|
||||||
And I press "Submit" in the app
|
And I press "Test survey critical incidents" in the app
|
||||||
And I press "OK" in the app
|
And I press "Submit" in the app
|
||||||
Then I should see "This Survey has offline data to be synchronised."
|
And I press "OK" in the app
|
||||||
And I switch offline mode to "false"
|
Then I should see "This Survey has offline data to be synchronised."
|
||||||
And I wait "600" seconds
|
|
||||||
Then I should not see "This Survey has offline data to be synchronised."
|
When I switch offline mode to "false"
|
||||||
And I should see "You have completed this survey."
|
And I run cron tasks in the app
|
||||||
|
Then I should not see "This Survey has offline data to be synchronised."
|
||||||
|
And I should see "You have completed this survey."
|
||||||
|
|
|
@ -0,0 +1,100 @@
|
||||||
|
<?php
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Behat step definitions.
|
||||||
|
*
|
||||||
|
* @package local_apps
|
||||||
|
* @copyright 2010 Moodle Pty Ltd (http://moodle.com)
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
|
||||||
|
use Behat\Mink\Exception\ExpectationException;
|
||||||
|
|
||||||
|
// NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php.
|
||||||
|
|
||||||
|
require_once(__DIR__ . '/../../../../lib/behat/behat_base.php');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Behat step definitions.
|
||||||
|
*
|
||||||
|
* @package local_apps
|
||||||
|
* @copyright 2010 Moodle Pty Ltd (http://moodle.com)
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
class behat_local_moodlemobileapp extends behat_base {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Force cron tasks instead of waiting for the next scheduled execution.
|
||||||
|
*
|
||||||
|
* @When /^I run cron tasks in the app$/
|
||||||
|
*/
|
||||||
|
public function i_run_cron_tasks_in_the_app() {
|
||||||
|
$session = $this->getSession();
|
||||||
|
|
||||||
|
// Force cron tasks execution and wait until they are completed.
|
||||||
|
$operationid = random_string();
|
||||||
|
|
||||||
|
$session->evaluateScript(
|
||||||
|
"cronProvider.forceSyncExecution().then(() => { window['behat_{$operationid}_completed'] = true; });"
|
||||||
|
);
|
||||||
|
$this->spin(
|
||||||
|
function() use ($session, $operationid) {
|
||||||
|
return $session->evaluateScript("window['behat_{$operationid}_completed'] || false");
|
||||||
|
},
|
||||||
|
false,
|
||||||
|
60,
|
||||||
|
new ExpectationException('Forced cron tasks in the app took too long to complete', $session)
|
||||||
|
);
|
||||||
|
|
||||||
|
// Trigger Angular digest cycle multiple times in case some changes have
|
||||||
|
// side-effects that result in further pending operations.
|
||||||
|
for ($ticks = 5; $ticks > 0; $ticks--) {
|
||||||
|
$session->evaluateScript('appRef.tick();');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Wait until loading has finished.
|
||||||
|
*
|
||||||
|
* @When /^I wait loading to finish in the app$/
|
||||||
|
*/
|
||||||
|
public function i_wait_loading_to_finish_in_the_app() {
|
||||||
|
$session = $this->getSession();
|
||||||
|
|
||||||
|
$this->spin(
|
||||||
|
function() use ($session) {
|
||||||
|
$session->evaluateScript('appRef.tick();');
|
||||||
|
|
||||||
|
$nodes = $this->find_all('css', 'core-loading ion-spinner');
|
||||||
|
|
||||||
|
foreach ($nodes as $node) {
|
||||||
|
if (!$node->isVisible()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
false,
|
||||||
|
60,
|
||||||
|
new ExpectationException('"Loading took too long to complete', $session)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue