MOBILE-4061 behat: Remove legacy Moodle App v3.9.4 tests
parent
eb0303d301
commit
dd9669a955
|
@ -1,183 +0,0 @@
|
|||
@mod @mod_data @app @app_upto3.9.4 @javascript
|
||||
Feature: Users can manage entries in database activities
|
||||
In order to populate databases
|
||||
As a user
|
||||
I need to add and manage entries to databases
|
||||
|
||||
Background:
|
||||
Given the following "users" exist:
|
||||
| username | firstname | lastname | email |
|
||||
| student1 | Student | 1 | student1@example.com |
|
||||
| student2 | Student | 2 | student2@example.com |
|
||||
| teacher1 | Teacher | 1 | teacher1@example.com |
|
||||
And the following "courses" exist:
|
||||
| fullname | shortname | category |
|
||||
| Course 1 | C1 | 0 |
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
| student2 | C1 | student |
|
||||
And the following "activities" exist:
|
||||
| activity | name | intro | course | idnumber |
|
||||
| data | Web links | Useful links | C1 | data1 |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I add a "Text input" field to "Web links" database and I fill the form with:
|
||||
| Field name | URL |
|
||||
| Field description | URL link |
|
||||
And I add a "Text input" field to "Web links" database and I fill the form with:
|
||||
| Field name | Description |
|
||||
| Field description | Link description |
|
||||
And I log out
|
||||
|
||||
Scenario: Create entry
|
||||
Given I enter the course "Course 1" as "student1" in the app
|
||||
And I press "Web links" near "General" in the app
|
||||
And I should see "No entries in database"
|
||||
When I press "Add entries" in the app
|
||||
And I set the field "URL" to "https://moodle.org/" in the app
|
||||
And I set the field "Description" to "Moodle community site" in the app
|
||||
And I press "Save" near "Web links" in the app
|
||||
Then I should see "https://moodle.org/"
|
||||
And I should see "Moodle community site"
|
||||
|
||||
Scenario: Browse entry
|
||||
Given I enter the course "Course 1" as "student1" in the app
|
||||
And I press "Web links" near "General" in the app
|
||||
And I press "Add entries" in the app
|
||||
And I set the field "URL" to "https://moodle.org/" in the app
|
||||
And I set the field "Description" to "Moodle community site" in the app
|
||||
And I press "Save" near "Web links" in the app
|
||||
When I enter the course "Course 1" as "student2" in the app
|
||||
And I press "Web links" near "General" in the app
|
||||
And I press "Add entries" in the app
|
||||
And I set the field "URL" to "https://moodlecloud.com/" in the app
|
||||
And I set the field "Description" to "Moodle Cloud" in the app
|
||||
And I press "Save" near "Web links" in the app
|
||||
And I press "More" near "Moodle community site" in the app
|
||||
Then I should see "Moodle community site"
|
||||
And I should not see "Next"
|
||||
And I should see "Previous"
|
||||
And I press "Previous" in the app
|
||||
And I should see "Moodle Cloud"
|
||||
And I should see "Next"
|
||||
And I should not see "Previous"
|
||||
And I press "Next" in the app
|
||||
And I should see "Moodle community site"
|
||||
And I should not see "Moodle Cloud"
|
||||
And I press "back" near "Web links" in the app
|
||||
And I should see "Moodle community site"
|
||||
And I should see "Moodle Cloud"
|
||||
|
||||
Scenario: Students can not edit or delete other user's entries from list and single view in the app
|
||||
Given I enter the course "Course 1" as "student1" in the app
|
||||
And I press "Web links" near "General" in the app
|
||||
And I press "Add entries" in the app
|
||||
And I set the field "URL" to "https://moodle.org/" in the app
|
||||
And I set the field "Description" to "Moodle community site" in the app
|
||||
And I press "Save" near "Web links" in the app
|
||||
When I enter the course "Course 1" as "student2" in the app
|
||||
And I press "Web links" near "General" in the app
|
||||
Then "Edit" "link" should not exist
|
||||
And "Delete" "link" should not exist
|
||||
And I press "More" in the app
|
||||
And "Edit" "link" should not exist
|
||||
And "Delete" "link" should not exist
|
||||
|
||||
Scenario: Delete entry (student) & Update entry (student)
|
||||
Given I enter the course "Course 1" as "student1" in the app
|
||||
And I press "Web links" near "General" in the app
|
||||
And I press "Add entries" in the app
|
||||
And I set the field "URL" to "https://moodle.org/" in the app
|
||||
And I set the field "Description" to "Moodle community site" in the app
|
||||
And I press "Save" near "Web links" in the app
|
||||
When I press "Edit" in the app
|
||||
And I set the field "URL" to "https://moodlecloud.com/" in the app
|
||||
And I set the field "Description" to "Moodle Cloud" in the app
|
||||
And I press "Save" near "Web links" in the app
|
||||
Then I should not see "https://moodle.org/"
|
||||
And I should not see "Moodle community site"
|
||||
And I should see "https://moodlecloud.com/"
|
||||
And I should see "Moodle Cloud"
|
||||
And I press "Delete" in the app
|
||||
And I should see "Are you sure you want to delete this entry?"
|
||||
And I press "Cancel" in the app
|
||||
And I should see "Moodle Cloud"
|
||||
And I press "Delete" in the app
|
||||
And I should see "Are you sure you want to delete this entry?"
|
||||
And I press "Delete" in the app
|
||||
And I should not see "Moodle Cloud"
|
||||
And I press "Add entries" in the app
|
||||
And I set the field "URL" to "https://moodle.org/" in the app
|
||||
And I set the field "Description" to "Moodle community site" in the app
|
||||
And I press "Save" near "Web links" in the app
|
||||
And I press "More" in the app
|
||||
And I press "Edit" in the app
|
||||
And I set the field "URL" to "https://moodlecloud.com/" in the app
|
||||
And I set the field "Description" to "Moodle Cloud" in the app
|
||||
And I press "Save" near "Web links" in the app
|
||||
And I should not see "https://moodle.org/"
|
||||
And I should not see "Moodle community site"
|
||||
And I should see "https://moodlecloud.com/"
|
||||
And I should see "Moodle Cloud"
|
||||
And I press "Delete" in the app
|
||||
And I should see "Are you sure you want to delete this entry?"
|
||||
And I press "Cancel" in the app
|
||||
And I should see "Moodle Cloud"
|
||||
And I press "Delete" in the app
|
||||
And I should see "Are you sure you want to delete this entry?"
|
||||
And I press "Delete" in the app
|
||||
And I should not see "Moodle Cloud"
|
||||
And I should see "No entries in database"
|
||||
|
||||
Scenario: Delete entry (teacher) & Update entry (teacher)
|
||||
Given I enter the course "Course 1" as "student1" in the app
|
||||
And I press "Web links" near "General" in the app
|
||||
And I press "Add entries" in the app
|
||||
And I set the field "URL" to "https://moodle.org/" in the app
|
||||
And I set the field "Description" to "Moodle community site" in the app
|
||||
And I press "Save" near "Web links" in the app
|
||||
And I press "Add entries" in the app
|
||||
And I set the field "URL" to "https://telegram.org/" in the app
|
||||
And I set the field "Description" to "Telegram" in the app
|
||||
And I press "Save" near "Web links" in the app
|
||||
When I enter the course "Course 1" as "teacher1" in the app
|
||||
And I press "Web links" near "General" in the app
|
||||
Then I should see "https://moodle.org/"
|
||||
And I should see "Moodle community site"
|
||||
And I press "Edit" near "Moodle community site" in the app
|
||||
And I set the field "URL" to "https://moodlecloud.com/" in the app
|
||||
And I set the field "Description" to "Moodle Cloud" in the app
|
||||
And I press "Save" near "Web links" in the app
|
||||
And I should not see "https://moodle.org/"
|
||||
And I should not see "Moodle community site"
|
||||
And I should see "https://moodlecloud.com/"
|
||||
And I should see "Moodle Cloud"
|
||||
And I press "Delete" near "Moodle Cloud" in the app
|
||||
And I should see "Are you sure you want to delete this entry?"
|
||||
And I press "Cancel" in the app
|
||||
And I should see "Moodle Cloud"
|
||||
And I press "Delete" near "Moodle Cloud" in the app
|
||||
And I should see "Are you sure you want to delete this entry?"
|
||||
And I press "Delete" in the app
|
||||
And I should not see "Moodle Cloud"
|
||||
And I press "More" in the app
|
||||
And I should see "https://telegram.org/"
|
||||
And I should see "Telegram"
|
||||
And I press "Edit" in the app
|
||||
And I set the field "URL" to "https://moodlecloud.com/" in the app
|
||||
And I set the field "Description" to "Moodle Cloud" in the app
|
||||
And I press "Save" near "Web links" in the app
|
||||
And I should not see "https://telegram.org/"
|
||||
And I should not see "Telegram"
|
||||
And I should see "https://moodlecloud.com/"
|
||||
And I should see "Moodle Cloud"
|
||||
And I press "Delete" in the app
|
||||
And I should see "Are you sure you want to delete this entry?"
|
||||
And I press "Cancel" in the app
|
||||
And I should see "Moodle Cloud"
|
||||
And I press "Delete" in the app
|
||||
And I should see "Are you sure you want to delete this entry?"
|
||||
And I press "Delete" in the app
|
||||
And I should not see "Moodle Cloud"
|
|
@ -1,130 +0,0 @@
|
|||
@mod @mod_data @app @app_upto3.9.4 @javascript
|
||||
Feature: Users can store entries in database activities when offline and sync when online
|
||||
In order to populate databases while offline
|
||||
As a user
|
||||
I need to add and manage entries to databases and sync then when online
|
||||
|
||||
Background:
|
||||
Given the following "users" exist:
|
||||
| username | firstname | lastname | email |
|
||||
| student1 | Student | 1 | student1@example.com |
|
||||
| student2 | Student | 2 | student2@example.com |
|
||||
| teacher1 | Teacher | 1 | teacher1@example.com |
|
||||
And the following "courses" exist:
|
||||
| fullname | shortname | category |
|
||||
| Course 1 | C1 | 0 |
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
| student2 | C1 | student |
|
||||
And the following "activities" exist:
|
||||
| activity | name | intro | course | idnumber |
|
||||
| data | Web links | Useful links | C1 | data1 |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I add a "Text input" field to "Web links" database and I fill the form with:
|
||||
| Field name | URL |
|
||||
| Field description | URL link |
|
||||
And I add a "Text input" field to "Web links" database and I fill the form with:
|
||||
| Field name | Description |
|
||||
| Field description | Link description |
|
||||
And I log out
|
||||
|
||||
@app_from3.7
|
||||
Scenario: Create entry (offline)
|
||||
Given I enter the course "Course 1" as "student1" in the app
|
||||
And I press "Web links" near "General" in the app
|
||||
And I switch offline mode to "true"
|
||||
And I should see "No entries in database"
|
||||
When I press "Add entries" in the app
|
||||
And I set the field "URL" to "https://moodle.org/" in the app
|
||||
And I set the field "Description" to "Moodle community site" in the app
|
||||
And I press "Save" near "Web links" in the app
|
||||
Then I should see "https://moodle.org/"
|
||||
And I should see "Moodle community site"
|
||||
And I should see "This Database has offline data to be synchronised"
|
||||
And I press "back" near "Web links" in the app
|
||||
And I switch offline mode to "false"
|
||||
And I press "Web links" near "General" in the app
|
||||
And I should see "https://moodle.org/"
|
||||
And I should see "Moodle community site"
|
||||
And I should not see "This Database has offline data to be synchronised"
|
||||
|
||||
@app_from3.7
|
||||
Scenario: Update entry (offline) & Delete entry (offline)
|
||||
Given I enter the course "Course 1" as "student1" in the app
|
||||
And I press "Web links" near "General" in the app
|
||||
And I should see "No entries in database"
|
||||
And I press "Add entries" in the app
|
||||
And I set the field "URL" to "https://moodle.org/" in the app
|
||||
And I set the field "Description" to "Moodle community site" in the app
|
||||
And I press "Save" near "Web links" in the app
|
||||
And I should see "https://moodle.org/"
|
||||
And I should see "Moodle community site"
|
||||
And I press "Display options" in the app
|
||||
And I press "Download" in the app
|
||||
And I wait until the page is ready
|
||||
And I switch offline mode to "true"
|
||||
When I press "Edit" in the app
|
||||
And I set the field "URL" to "https://moodlecloud.com/" in the app
|
||||
And I set the field "Description" to "Moodle Cloud" in the app
|
||||
And I press "Save" near "Web links" in the app
|
||||
Then I should not see "https://moodle.org/"
|
||||
And I should not see "Moodle community site"
|
||||
And I should see "https://moodlecloud.com/"
|
||||
And I should see "Moodle Cloud"
|
||||
And I should see "This Database has offline data to be synchronised"
|
||||
And I press "back" near "Web links" in the app
|
||||
And I switch offline mode to "false"
|
||||
And I press "Web links" near "General" in the app
|
||||
And I should not see "https://moodle.org/"
|
||||
And I should not see "Moodle community site"
|
||||
And I should see "https://moodlecloud.com/"
|
||||
And I should see "Moodle Cloud"
|
||||
And I should not see "This Database has offline data to be synchronised"
|
||||
And I press "Display options" in the app
|
||||
And I press "Refresh" in the app
|
||||
And I wait until the page is ready
|
||||
And I switch offline mode to "true"
|
||||
And I press "Delete" in the app
|
||||
And I should see "Are you sure you want to delete this entry?"
|
||||
And I press "Delete" in the app
|
||||
And I should see "https://moodlecloud.com/"
|
||||
And I should see "Moodle Cloud"
|
||||
And I should see "This Database has offline data to be synchronised"
|
||||
And I press "back" near "Web links" in the app
|
||||
And I switch offline mode to "false"
|
||||
And I press "Web links" near "General" in the app
|
||||
And I should not see "https://moodlecloud.com/"
|
||||
And I should not see "Moodle Cloud"
|
||||
And I should not see "This Database has offline data to be synchronised"
|
||||
|
||||
@app_from3.7
|
||||
Scenario: Students can undo deleting entries to a database in the app while offline
|
||||
Given I enter the course "Course 1" as "student1" in the app
|
||||
And I press "Web links" near "General" in the app
|
||||
And I should see "No entries in database"
|
||||
And I press "Add entries" in the app
|
||||
And I set the field "URL" to "https://moodle.org/" in the app
|
||||
And I set the field "Description" to "Moodle community site" in the app
|
||||
And I press "Save" near "Web links" in the app
|
||||
And I should see "https://moodle.org/"
|
||||
And I should see "Moodle community site"
|
||||
And I press "Display options" in the app
|
||||
And I press "Download" in the app
|
||||
And I wait until the page is ready
|
||||
When I switch offline mode to "true"
|
||||
And I press "Delete" in the app
|
||||
And I should see "Are you sure you want to delete this entry?"
|
||||
And I press "Delete" in the app
|
||||
And I should see "https://moodle.org/"
|
||||
And I should see "Moodle community site"
|
||||
And I should see "This Database has offline data to be synchronised"
|
||||
And I press "Restore" in the app
|
||||
And I press "back" near "Web links" in the app
|
||||
And I switch offline mode to "false"
|
||||
And I press "Web links" near "General" in the app
|
||||
Then I should see "https://moodle.org/"
|
||||
And I should see "Moodle community site"
|
||||
And I should not see "This Database has offline data to be synchronised"
|
|
@ -1,320 +0,0 @@
|
|||
@mod @mod_glossary @app @app_upto3.9.4 @javascript
|
||||
Feature: Test basic usage of glossary in app
|
||||
In order to participate in the glossaries while using the mobile app
|
||||
As a student
|
||||
I need basic glossary functionality to work
|
||||
|
||||
Background:
|
||||
Given the following "users" exist:
|
||||
| username | firstname | lastname | email |
|
||||
| teacher1 | Teacher | teacher | teacher1@example.com |
|
||||
| teacher2 | Teacher2 | teacher2 | teacher2@example.com |
|
||||
| student1 | Student | student | student1@example.com |
|
||||
And the following "courses" exist:
|
||||
| fullname | shortname | category |
|
||||
| Course 1 | C1 | 0 |
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
| teacher2 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And the following "activities" exist:
|
||||
| activity | name | intro | course | idnumber | mainglossary | allowcomments | assessed | scale |
|
||||
| glossary | Test glossary | glossary description | C1 | gloss1 | 1 | 1 | 1 | 1 |
|
||||
And the following "activities" exist:
|
||||
| activity | name | intro | course | idnumber | groupmode |
|
||||
| forum | Test forum name | Test forum | C1 | forum | 0 |
|
||||
|
||||
@app @3.8.0
|
||||
Scenario: View a glossary and its terms
|
||||
When I enter the course "Course 1" as "student1" 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"
|
||||
|
||||
When 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
|
||||
Scenario: Change filters (include search)
|
||||
When I enter the course "Course 1" as "student1" 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"
|
||||
|
||||
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)
|
||||
When the "glossary" filter is "on"
|
||||
And I enter the course "Course 1" as "student1" 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 "This entry should be automatically linked" 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 "This entry should be automatically linked" 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 "This entry should be automatically linked" 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 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
|
||||
Then I should see "car"
|
||||
|
||||
When 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
|
||||
# Create entries as a student
|
||||
When I enter the course "Course 1" as "student1" 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"
|
||||
|
||||
When I press "mountain" in the app
|
||||
Then I should see "Comments (0)"
|
||||
|
||||
# Write comments as a teacher
|
||||
When I enter the course "Course 1" as "teacher1" 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 course "Course 1" as "student1" 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
|
||||
When I enter the course "Course 1" as "student1" 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"
|
||||
|
||||
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 enter the course "Course 1" 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
|
||||
When I enter the course "Course 1" as "student1" in the app
|
||||
And I press "Test glossary" in the app
|
||||
And I switch offline mode to "true"
|
||||
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 should see "Entries to be synced"
|
||||
And I should see "This Glossary has offline data to be synchronised."
|
||||
|
||||
When 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"
|
||||
But 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
|
||||
Scenario: Add/view ratings
|
||||
# Create entries as a student
|
||||
When I enter the course "Course 1" as "student1" 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"
|
||||
|
||||
# Rate entries as teacher1
|
||||
When I enter the course "Course 1" as "teacher1" 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: -"
|
||||
|
||||
When I press "None" in the app
|
||||
And I press "1" in the app
|
||||
Then I should see "Average of ratings: 1"
|
||||
|
||||
# Rate entries as teacher2
|
||||
When I enter the course "Course 1" as "teacher2" 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"
|
||||
|
||||
When 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."
|
||||
|
||||
When 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"
|
||||
|
||||
# View ratings as a student
|
||||
When I enter the course "Course 1" as "student1" 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
|
||||
But I should not see "Average of ratings: 0.5"
|
|
@ -1,395 +0,0 @@
|
|||
@mod @mod_survey @app @app_upto3.9.4 @javascript
|
||||
Feature: Test basic usage of survey activity in app
|
||||
In order to participate in surveys while using the mobile app
|
||||
As a student
|
||||
I need basic survey functionality to work
|
||||
|
||||
Background:
|
||||
Given the following "courses" exist:
|
||||
| fullname | shortname |
|
||||
| Course 1 | C1 |
|
||||
And the following "users" exist:
|
||||
| username |
|
||||
| student1 |
|
||||
| teacher1 |
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role |
|
||||
| student1 | C1 | student |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And the following "activities" exist:
|
||||
| activity | name | intro | course | idnumber | groupmode |
|
||||
| survey | Test survey name | Test survey | C1 | survey | 0 |
|
||||
|
||||
@app @3.8.0
|
||||
Scenario: Answer a survey & View results (ATTLS)
|
||||
When I enter the course "Course 1" as "student1" 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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "Somewhat agree" near "Neither agree nor disagree" 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
|
||||
Scenario: Answer a survey & View results (Critical incidents)
|
||||
Given the following "activities" exist:
|
||||
| activity | name | intro | template |course | idnumber | groupmode |
|
||||
| survey | Test survey critical incidents | Test survey1 | 5 | C1 | survey1 | 0 |
|
||||
When I enter the course "Course 1" as "student1" in the app
|
||||
And I press "Test survey critical incidents" in the app
|
||||
And I set the field with xpath "//textarea[@aria-label='At what moment in class were you most engaged as a learner?']" to "1st answer"
|
||||
And I set the field with xpath "//textarea[@aria-label='At what moment in class were you most distanced as a learner?']" to "2nd answer"
|
||||
And I set the field with xpath "//textarea[@aria-label='What action from anyone in the forums did you find most affirming or helpful?']" to "3rd answer"
|
||||
And I set the field with xpath "//textarea[@aria-label='What action from anyone in the forums did you find most puzzling or confusing?']" to "4th answer"
|
||||
And I set the field with xpath "//textarea[@aria-label='What event surprised you most?']" to "5th answer"
|
||||
And I press "Submit" in the app
|
||||
And I press "OK" in the app
|
||||
Then I should see "Results"
|
||||
|
||||
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 "Test survey critical incidents"
|
||||
And I should see "1st answer"
|
||||
And I should see "2nd answer"
|
||||
And I should see "3rd answer"
|
||||
And I should see "4th answer"
|
||||
And I should see "5th answer"
|
||||
|
||||
@app @3.8.0
|
||||
Scenario: Answer a survey & View results (Colles actual)
|
||||
Given the following "activities" exist:
|
||||
| activity | name | intro | template |course | idnumber | groupmode |
|
||||
| survey | Test survey Colles (actual) | Test survey1 | 1 | C1 | survey1 | 0 |
|
||||
When I enter the course "Course 1" as "student1" 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"
|
||||
|
||||
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: Answer a survey & View results (Colles preferred)
|
||||
Given the following "activities" exist:
|
||||
| activity | name | intro | template | course | idnumber | groupmode |
|
||||
| survey | Test survey Colles (preferred) | Test survey1 | 2 | C1 | survey1 | 0 |
|
||||
When I enter the course "Course 1" as "student1" 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"
|
||||
|
||||
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: Answer a survey & View results (Colles preferred amd actual)
|
||||
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 course "Course 1" as "student1" 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"
|
||||
|
||||
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: Answer survey offline & Sync survey
|
||||
Given the following "activities" exist:
|
||||
| activity | name | intro | template | course | idnumber | groupmode |
|
||||
| survey | Test survey critical incidents | Test survey1 | 5 | C1 | survey1 | 0 |
|
||||
When I enter the course "Course 1" as "student1" in the app
|
||||
And I press "Test survey critical incidents" in the app
|
||||
And I switch offline mode to "true"
|
||||
And I press "Submit" in the app
|
||||
And I press "OK" in the app
|
||||
Then I should see "This Survey 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 "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 & Auto-sync survey
|
||||
Given the following "activities" exist:
|
||||
| activity | name | intro | template | course | idnumber | groupmode |
|
||||
| survey | Test survey critical incidents | Test survey1 | 5 | C1 | survey1 | 0 |
|
||||
When I enter the course "Course 1" as "student1" in the app
|
||||
And I press "Display options" in the app
|
||||
And I press "Course downloads" in the app
|
||||
And I press "cloud download" near "Test survey critical incidents" in the app
|
||||
And I press the back button in the app
|
||||
And I switch offline mode to "true"
|
||||
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."
|
||||
|
||||
When I press "OK" in the app
|
||||
And I press the back button in the app
|
||||
And I press "Test survey critical incidents" in the app
|
||||
And I press "Submit" in the app
|
||||
And I press "OK" in the app
|
||||
Then I should see "This Survey has offline data to be synchronised."
|
||||
|
||||
When I switch offline mode to "false"
|
||||
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."
|
|
@ -1,340 +0,0 @@
|
|||
@mod @mod_comments @app @app_upto3.9.4 @javascript
|
||||
Feature: Test basic usage of comments in app
|
||||
In order to participate in the comments while using the mobile app
|
||||
As a student
|
||||
I need basic comments functionality to work
|
||||
|
||||
Background:
|
||||
Given the following "users" exist:
|
||||
| username | firstname | lastname | email |
|
||||
| teacher1 | Teacher | teacher | teacher1@example.com |
|
||||
| student1 | Student | student | student1@example.com |
|
||||
And the following "courses" exist:
|
||||
| fullname | shortname | category |
|
||||
| Course 1 | C1 | 0 |
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And the following "activities" exist:
|
||||
| activity | name | intro | course | idnumber | mainglossary | allowcomments | assessed | scale |
|
||||
| glossary | Test glossary | glossary description | C1 | gloss1 | 1 | 1 | 1 | 1 |
|
||||
And the following "activities" exist:
|
||||
| activity | name | intro | course | idnumber | comments |
|
||||
| data | Data | Data info | C1 | data1 | 1 |
|
||||
|
||||
@app @3.8.0
|
||||
Scenario: Add comments & Delete comments (database)
|
||||
# Create database entry and comment as a teacher
|
||||
Given I enter the course "Course 1" as "teacher1" 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 course "Course 1" as "teacher1" 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"
|
||||
|
||||
When I press the back button in the app
|
||||
And I should see "Comments (1)"
|
||||
|
||||
# Create and delete comments as a student
|
||||
When I enter the course "Course 1" as "student1" 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 teacher"
|
||||
And I should see "comment test student"
|
||||
|
||||
When I press the back button in the app
|
||||
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 teacher"
|
||||
But I should not see "comment test student"
|
||||
|
||||
When I press the back button in the app
|
||||
Then I should see "Comments (1)"
|
||||
|
||||
@app @3.8.0
|
||||
Scenario: Add comments offline & Delete comments offline & Sync comments (database)
|
||||
Given I enter the course "Course 1" as "teacher1" 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 course "Course 1" as "teacher1" 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"
|
||||
|
||||
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: Add comments & delete comments (glossary)
|
||||
# Create glossary entry and comment as a teacher
|
||||
When I enter the course "Course 1" as "teacher1" 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 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"
|
||||
And I press the back button in the app
|
||||
And I should see "Comments (1)"
|
||||
|
||||
# Create and delete comments as a student
|
||||
When I enter the course "Course 1" as "student1" 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 teacher"
|
||||
And I should see "comment test student"
|
||||
|
||||
When I press the back button in the app
|
||||
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 teacher"
|
||||
But I should not see "comment test student"
|
||||
|
||||
When I press the back button in the app
|
||||
And I should see "Comments (1)"
|
||||
|
||||
@app @3.8.0
|
||||
Scenario: Add comments offline & Delete comments offline & Sync comments (glossary)
|
||||
When I enter the course "Course 1" as "teacher1" 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"
|
||||
|
||||
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: Add comments & Delete comments (blogs)
|
||||
# Create blog as a teacher
|
||||
Given I enter the course "Course 1" as "teacher1" 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 course "Course 1" as "student1" 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: Add comments offline & Delete comments offline & Sync comments (blogs)
|
||||
# Create blog as a teacher
|
||||
Given I enter the course "Course 1" as "teacher1" 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 course "Course 1" as "student1" 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)"
|
Loading…
Reference in New Issue