MOBILE-4061 behat: Add bulk set fields command
parent
350d7cd305
commit
183919a622
|
@ -624,6 +624,21 @@ class behat_app extends behat_app_helper {
|
|||
$this->wait_for_pending_js();
|
||||
}
|
||||
|
||||
/**
|
||||
* Fills a form with field/value data.
|
||||
*
|
||||
* @Given /^I set the following fields to these values in the app:$/
|
||||
* @param TableNode $data
|
||||
*/
|
||||
public function i_set_the_following_fields_to_these_values_in_the_app(TableNode $data) {
|
||||
$datahash = $data->getRowsHash();
|
||||
|
||||
// The action depends on the field type.
|
||||
foreach ($datahash as $locator => $value) {
|
||||
$this->i_set_the_field_in_the_app($locator, $value);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks that the current header stripe in the app contains the expected text.
|
||||
*
|
||||
|
|
|
@ -35,8 +35,9 @@ Feature: Users can manage entries in database activities
|
|||
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
|
||||
And I should find "No entries in database" in the app
|
||||
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 set the following fields to these values in the app:
|
||||
| URL | https://moodle.org/ |
|
||||
| Description | Moodle community site |
|
||||
And I press "Save" near "Web links" in the app
|
||||
Then I should find "https://moodle.org/" in the app
|
||||
And I should find "Moodle community site" in the app
|
||||
|
@ -44,13 +45,15 @@ Feature: Users can manage entries in database activities
|
|||
Scenario: Browse entry
|
||||
Given I entered the data activity "Web links" on course "Course 1" as "student1" 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 set the following fields to these values in the app:
|
||||
| URL | https://moodle.org/ |
|
||||
| Description | Moodle community site |
|
||||
And I press "Save" near "Web links" in the app
|
||||
And I entered the data activity "Web links" on course "Course 1" as "student2" 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 set the following fields to these values in the app:
|
||||
| URL | https://moodlecloud.com/ |
|
||||
| Description | Moodle Cloud |
|
||||
And I press "Save" near "Web links" in the app
|
||||
And I press "More" near "Moodle community site" in the app
|
||||
Then I should find "Moodle community site" in the app
|
||||
|
@ -70,8 +73,9 @@ Feature: Users can manage entries in database activities
|
|||
Scenario: Students can not edit or delete other user's entries from list and single view in the app
|
||||
Given I entered the data activity "Web links" on course "Course 1" as "student1" 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 set the following fields to these values in the app:
|
||||
| URL | https://moodle.org/ |
|
||||
| Description | Moodle community site |
|
||||
And I press "Save" near "Web links" in the app
|
||||
And I entered the course "Course 1" as "student2" in the app
|
||||
When I press "Web links" near "General" in the app
|
||||
|
@ -84,12 +88,14 @@ Feature: Users can manage entries in database activities
|
|||
Scenario: Delete entry (student) & Update entry (student)
|
||||
Given I entered the data activity "Web links" on course "Course 1" as "student1" 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 set the following fields to these values in the app:
|
||||
| URL | https://moodle.org/ |
|
||||
| Description | Moodle community site |
|
||||
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 set the following fields to these values in the app:
|
||||
| URL | https://moodlecloud.com/ |
|
||||
| Description | Moodle Cloud |
|
||||
And I press "Save" near "Web links" in the app
|
||||
Then I should not find "https://moodle.org/" in the app
|
||||
And I should not find "Moodle community site" in the app
|
||||
|
@ -104,13 +110,15 @@ Feature: Users can manage entries in database activities
|
|||
And I press "Delete" in the app
|
||||
And I should not find "Moodle Cloud" 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 set the following fields to these values in the app:
|
||||
| URL | https://moodle.org/ |
|
||||
| Description | Moodle community site |
|
||||
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 set the following fields to these values in the app:
|
||||
| URL | https://moodlecloud.com/ |
|
||||
| Description | Moodle Cloud |
|
||||
And I press "Save" near "Web links" in the app
|
||||
And I should not find "https://moodle.org/" in the app
|
||||
And I should not find "Moodle community site" in the app
|
||||
|
@ -129,20 +137,23 @@ Feature: Users can manage entries in database activities
|
|||
Scenario: Delete entry (teacher) & Update entry (teacher)
|
||||
Given I entered the data activity "Web links" on course "Course 1" as "student1" 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 set the following fields to these values in the app:
|
||||
| URL | https://moodle.org/ |
|
||||
| Description | Moodle community site |
|
||||
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 set the following fields to these values in the app:
|
||||
| URL | https://telegram.org/ |
|
||||
| Description | Telegram |
|
||||
And I press "Save" near "Web links" in the app
|
||||
And I entered the course "Course 1" as "teacher1" in the app
|
||||
When I press "Web links" near "General" in the app
|
||||
Then I should find "https://moodle.org/" in the app
|
||||
And I should find "Moodle community site" in the app
|
||||
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 set the following fields to these values in the app:
|
||||
| URL | https://moodlecloud.com/ |
|
||||
| Description | Moodle Cloud |
|
||||
And I press "Save" near "Web links" in the app
|
||||
And I should not find "https://moodle.org/" in the app
|
||||
And I should not find "Moodle community site" in the app
|
||||
|
@ -160,8 +171,9 @@ Feature: Users can manage entries in database activities
|
|||
And I should find "https://telegram.org/" in the app
|
||||
And I should find "Telegram" 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 set the following fields to these values in the app:
|
||||
| URL | https://moodlecloud.com/ |
|
||||
| Description | Moodle Cloud |
|
||||
And I press "Save" near "Web links" in the app
|
||||
And I should not find "https://telegram.org/" in the app
|
||||
And I should not find "Telegram" in the app
|
||||
|
|
|
@ -36,8 +36,9 @@ Feature: Users can store entries in database activities when offline and sync wh
|
|||
And I switch offline mode to "true"
|
||||
And I should find "No entries in database" in the app
|
||||
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 set the following fields to these values in the app:
|
||||
| URL | https://moodle.org/ |
|
||||
| Description | Moodle community site |
|
||||
And I press "Save" near "Web links" in the app
|
||||
Then I should find "https://moodle.org/" in the app
|
||||
And I should find "Moodle community site" in the app
|
||||
|
@ -53,8 +54,9 @@ Feature: Users can store entries in database activities when offline and sync wh
|
|||
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
|
||||
And I should find "No entries in database" 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 set the following fields to these values in the app:
|
||||
| URL | https://moodle.org/ |
|
||||
| Description | Moodle community site |
|
||||
And I press "Save" near "Web links" in the app
|
||||
And I should find "https://moodle.org/" in the app
|
||||
And I should find "Moodle community site" in the app
|
||||
|
@ -63,8 +65,9 @@ Feature: Users can store entries in database activities when offline and sync wh
|
|||
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 set the following fields to these values in the app:
|
||||
| URL | https://moodlecloud.com/ |
|
||||
| Description | Moodle Cloud |
|
||||
And I press "Save" near "Web links" in the app
|
||||
Then I should not find "https://moodle.org/" in the app
|
||||
And I should not find "Moodle community site" in the app
|
||||
|
@ -100,8 +103,9 @@ Feature: Users can store entries in database activities when offline and sync wh
|
|||
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
|
||||
And I should find "No entries in database" 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 set the following fields to these values in the app:
|
||||
| URL | https://moodle.org/ |
|
||||
| Description | Moodle community site |
|
||||
And I press "Save" near "Web links" in the app
|
||||
And I should find "https://moodle.org/" in the app
|
||||
And I should find "Moodle community site" in the app
|
||||
|
|
|
@ -27,8 +27,9 @@ Feature: Test basic usage of forum activity in app
|
|||
Scenario: Create new discussion
|
||||
Given I entered the forum activity "Test forum name" on course "Course 1" as "student1" in the app
|
||||
When I press "Add discussion topic" in the app
|
||||
And I set the field "Subject" to "My happy subject" in the app
|
||||
And I set the field "Message" to "An awesome message" in the app
|
||||
And I set the following fields to these values in the app:
|
||||
| Subject | My happy subject |
|
||||
| Message | An awesome message |
|
||||
And I press "Post to forum" in the app
|
||||
Then I should find "My happy subject" in the app
|
||||
|
||||
|
@ -38,8 +39,9 @@ Feature: Test basic usage of forum activity in app
|
|||
Scenario: Reply a post
|
||||
Given I entered the forum activity "Test forum name" on course "Course 1" as "student1" in the app
|
||||
When I press "Add 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 set the following fields to these values in the app:
|
||||
| Subject | DiscussionSubject |
|
||||
| Message | DiscussionMessage |
|
||||
And I press "Post to forum" in the app
|
||||
And I press "DiscussionSubject" in the app
|
||||
Then I should find "Reply" in the app
|
||||
|
@ -53,12 +55,14 @@ Feature: Test basic usage of forum activity in app
|
|||
Scenario: Star and pin discussions (student)
|
||||
Given I entered the forum activity "Test forum name" on course "Course 1" as "student1" in the app
|
||||
When I press "Add discussion topic" in the app
|
||||
And I set the field "Subject" to "starred subject" in the app
|
||||
And I set the field "Message" to "starred message" in the app
|
||||
And I set the following fields to these values in the app:
|
||||
| Subject | starred subject |
|
||||
| Message | starred message |
|
||||
And I press "Post to forum" in the app
|
||||
And I press "Add discussion topic" in the app
|
||||
And I set the field "Subject" to "normal subject" in the app
|
||||
And I set the field "Message" to "normal message" in the app
|
||||
And I set the following fields to these values in the app:
|
||||
| Subject | normal subject |
|
||||
| Message | normal message |
|
||||
And I press "Post to forum" in the app
|
||||
And I press "starred subject" in the app
|
||||
Then I should find "starred message" in the app
|
||||
|
@ -86,16 +90,19 @@ Feature: Test basic usage of forum activity in app
|
|||
Scenario: Star and pin discussions (teacher)
|
||||
Given I entered the forum activity "Test forum name" on course "Course 1" as "teacher1" in the app
|
||||
When I press "Add discussion topic" 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 set the following fields to these values in the app:
|
||||
| Subject | Auto-test star |
|
||||
| Message | Auto-test star message |
|
||||
And I press "Post to forum" in the app
|
||||
And I press "Add discussion topic" in the app
|
||||
And I set the field "Subject" to "Auto-test pin" in the app
|
||||
And I set the field "Message" to "Auto-test pin message" in the app
|
||||
And I set the following fields to these values in the app:
|
||||
| Subject | Auto-test pin |
|
||||
| Message | Auto-test pin message |
|
||||
And I press "Post to forum" in the app
|
||||
And I press "Add discussion topic" in the app
|
||||
And I set the field "Subject" to "Auto-test plain" in the app
|
||||
And I set the field "Message" to "Auto-test plain message" in the app
|
||||
And I set the following fields to these values in the app:
|
||||
| Subject | Auto-test plain |
|
||||
| Message | Auto-test plain message |
|
||||
And I press "Post to forum" in the app
|
||||
And I press "Display options" near "Auto-test star" in the app
|
||||
And I press "Star this discussion" in the app
|
||||
|
@ -115,8 +122,9 @@ Feature: Test basic usage of forum activity in app
|
|||
Scenario: Edit a not sent reply offline
|
||||
Given I entered the forum activity "Test forum name" on course "Course 1" as "student1" in the app
|
||||
When I press "Add discussion topic" 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 set the following fields to these values in the app:
|
||||
| Subject | Auto-test |
|
||||
| Message | Auto-test message |
|
||||
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 should find "Reply" in the app
|
||||
|
@ -148,8 +156,9 @@ Feature: Test basic usage of forum activity in app
|
|||
Given I entered the forum activity "Test forum name" on course "Course 1" as "student1" in the app
|
||||
When I switch offline mode to "true"
|
||||
And I press "Add discussion topic" 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 set the following fields to these values in the app:
|
||||
| Subject | Auto-test |
|
||||
| Message | Auto-test message |
|
||||
And I press "Post to forum" in the app
|
||||
And I press "Auto-test" in the app
|
||||
And I set the field "Message" to "Auto-test message edited" in the app
|
||||
|
@ -169,8 +178,9 @@ Feature: Test basic usage of forum activity in app
|
|||
Scenario: Edit a forum post (only online)
|
||||
Given I entered the forum activity "Test forum name" on course "Course 1" as "student1" in the app
|
||||
When I press "Add discussion topic" 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 set the following fields to these values in the app:
|
||||
| Subject | Auto-test |
|
||||
| Message | Auto-test message |
|
||||
And I press "Post to forum" in the app
|
||||
Then I should find "Auto-test" in the app
|
||||
|
||||
|
@ -194,8 +204,9 @@ Feature: Test basic usage of forum activity in app
|
|||
Scenario: Delete a forum post (only online)
|
||||
Given I entered the forum activity "Test forum name" on course "Course 1" as "student1" in the app
|
||||
When I press "Add discussion topic" 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 set the following fields to these values in the app:
|
||||
| Subject | Auto-test |
|
||||
| Message | Auto-test message |
|
||||
And I press "Post to forum" in the app
|
||||
Then I should find "Auto-test" in the app
|
||||
|
||||
|
@ -230,8 +241,9 @@ Feature: Test basic usage of forum activity in app
|
|||
Scenario: Add/view ratings
|
||||
Given I entered the forum activity "Test forum name" on course "Course 1" as "student1" in the app
|
||||
When I press "Add discussion topic" 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 set the following fields to these values in the app:
|
||||
| Subject | Auto-test |
|
||||
| Message | Auto-test message |
|
||||
And I press "Post to forum" in the app
|
||||
And I press "Auto-test" in the app
|
||||
Then I should find "Reply" in the app
|
||||
|
@ -276,8 +288,9 @@ Feature: Test basic usage of forum activity in app
|
|||
Scenario: Reply a post offline
|
||||
Given I entered the forum activity "Test forum name" on course "Course 1" as "student1" in the app
|
||||
When I press "Add 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 set the following fields to these values in the app:
|
||||
| Subject | DiscussionSubject |
|
||||
| Message | DiscussionMessage |
|
||||
And I press "Post to forum" in the app
|
||||
And I press the back button in the app
|
||||
And I press "Course downloads" in the app
|
||||
|
@ -306,8 +319,9 @@ Feature: Test basic usage of forum activity in app
|
|||
Given I entered the forum activity "Test forum name" on course "Course 1" as "student1" in the app
|
||||
When I switch offline mode to "true"
|
||||
And I press "Add 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 set the following fields to these values in the app:
|
||||
| Subject | DiscussionSubject |
|
||||
| Message | DiscussionMessage |
|
||||
And I press "Post to forum" in the app
|
||||
Then I should find "DiscussionSubject" in the app
|
||||
And I should find "Not sent" in the app
|
||||
|
@ -328,8 +342,9 @@ Feature: Test basic usage of forum activity in app
|
|||
Given I entered the forum activity "Test forum name" on course "Course 1" as "student1" in the app
|
||||
When I switch offline mode to "true"
|
||||
And I press "Add 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 set the following fields to these values in the app:
|
||||
| Subject | DiscussionSubject |
|
||||
| Message | DiscussionMessage |
|
||||
And I press "Post to forum" in the app
|
||||
Then I should find "DiscussionSubject" in the app
|
||||
And I should find "Not sent" in the app
|
||||
|
@ -349,8 +364,9 @@ Feature: Test basic usage of forum activity in app
|
|||
Scenario: Prefetch
|
||||
Given I entered the forum activity "Test forum name" on course "Course 1" as "student1" in the app
|
||||
When I press "Add discussion topic" in the app
|
||||
And I set the field "Subject" to "DiscussionSubject 1" in the app
|
||||
And I set the field "Message" to "DiscussionMessage 1" in the app
|
||||
And I set the following fields to these values in the app:
|
||||
| Subject | DiscussionSubject 1 |
|
||||
| Message | DiscussionMessage 1 |
|
||||
And I press "Post to forum" in the app
|
||||
Then I should find "DiscussionSubject 1" in the app
|
||||
|
||||
|
@ -362,8 +378,9 @@ Feature: Test basic usage of forum activity in app
|
|||
|
||||
When I press "Test forum name" in the app
|
||||
And I press "Add 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 set the following fields to these values in the app:
|
||||
| Subject | DiscussionSubject 2 |
|
||||
| Message | DiscussionMessage 2 |
|
||||
And I press "Post to forum" in the app
|
||||
Then I should find "DiscussionSubject 1" in the app
|
||||
And I should find "DiscussionSubject 2" in the app
|
||||
|
|
|
@ -104,20 +104,23 @@ Feature: Test forum navigation
|
|||
When I press the back button in the app
|
||||
And I press "Add discussion topic" in the app
|
||||
And I switch offline mode to "true"
|
||||
And I set the field "Subject" to "Offline discussion 1" in the app
|
||||
And I set the field "Message" to "Offline discussion 1 message" in the app
|
||||
And I set the following fields to these values in the app:
|
||||
| Subject | Offline discussion 1 |
|
||||
| Message | Offline discussion 1 message |
|
||||
And I press "Post to forum" in the app
|
||||
And I press "Add discussion topic" in the app
|
||||
And I set the field "Subject" to "Offline discussion 2" in the app
|
||||
And I set the field "Message" to "Offline discussion 2 message" in the app
|
||||
And I set the following fields to these values in the app:
|
||||
| Subject | Offline discussion 2 |
|
||||
| Message | Offline discussion 2 message |
|
||||
And I press "Post to forum" in the app
|
||||
Then I should find "Not sent" in the app
|
||||
And I should find "Offline discussion 1" in the app
|
||||
And I should find "Offline discussion 2" in the app
|
||||
|
||||
When I press "Offline discussion 2" in the app
|
||||
And I set the field "Subject" to "Offline discussion 3" in the app
|
||||
And I set the field "Message" to "Offline discussion 3 message" in the app
|
||||
And I set the following fields to these values in the app:
|
||||
| Subject | Offline discussion 3 |
|
||||
| Message | Offline discussion 3 message |
|
||||
And I press "Post to forum" in the app
|
||||
Then I should find "Not sent" in the app
|
||||
And I should find "Offline discussion 1" in the app
|
||||
|
@ -197,20 +200,23 @@ Feature: Test forum navigation
|
|||
# Offline
|
||||
When I press "Add discussion topic" in the app
|
||||
And I switch offline mode to "true"
|
||||
And I set the field "Subject" to "Offline discussion 1" in the app
|
||||
And I set the field "Message" to "Offline discussion 1 message" in the app
|
||||
And I set the following fields to these values in the app:
|
||||
| Subject | Offline discussion 1 |
|
||||
| Message | Offline discussion 1 message |
|
||||
And I press "Post to forum" in the app
|
||||
And I press "Add discussion topic" in the app
|
||||
And I set the field "Subject" to "Offline discussion 2" in the app
|
||||
And I set the field "Message" to "Offline discussion 2 message" in the app
|
||||
And I set the following fields to these values in the app:
|
||||
| Subject | Offline discussion 2 |
|
||||
| Message | Offline discussion 2 message |
|
||||
And I press "Post to forum" in the app
|
||||
Then I should find "Not sent" in the app
|
||||
And I should find "Offline discussion 1" in the app
|
||||
And I should find "Offline discussion 2" in the app
|
||||
|
||||
When I press "Offline discussion 2" in the app
|
||||
And I set the field "Subject" to "Offline discussion 3" in the app
|
||||
And I set the field "Message" to "Offline discussion 3 message" in the app
|
||||
And I set the following fields to these values in the app:
|
||||
| Subject | Offline discussion 3 |
|
||||
| Message | Offline discussion 3 message |
|
||||
And I press "Post to forum" in the app
|
||||
Then I should find "Not sent" in the app
|
||||
And I should find "Offline discussion 1" in the app
|
||||
|
|
|
@ -28,16 +28,19 @@ Feature: Test basic usage of glossary in app
|
|||
Scenario: View a glossary and its terms
|
||||
Given I entered the glossary activity "Test glossary" on course "Course 1" as "student1" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | potato |
|
||||
| Definition | 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. |
|
||||
And I press "Save" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | car |
|
||||
| Definition | 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 "Save" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | mountain |
|
||||
| Definition | 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 press "Save" in the app
|
||||
Then the header should be "Test glossary" in the app
|
||||
And I should find "car" in the app
|
||||
|
@ -51,16 +54,19 @@ Feature: Test basic usage of glossary in app
|
|||
Scenario: Change filters (include search)
|
||||
Given I entered the glossary activity "Test glossary" on course "Course 1" as "student1" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | potato |
|
||||
| Definition | 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. |
|
||||
And I press "Save" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | car |
|
||||
| Definition | 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 "Save" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | mountain |
|
||||
| Definition | 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 press "Save" in the app
|
||||
Then the header should be "Test glossary" in the app
|
||||
And I should find "car" in the app
|
||||
|
@ -85,18 +91,21 @@ Feature: Test basic usage of glossary in app
|
|||
Given the "glossary" filter is "on"
|
||||
And I entered the glossary activity "Test glossary" on course "Course 1" as "student1" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | potato |
|
||||
| Definition | 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. |
|
||||
And I press "This entry should be automatically linked" in the app
|
||||
And I press "Save" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | car |
|
||||
| Definition | 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 "This entry should be automatically linked" in the app
|
||||
And I press "Save" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | mountain |
|
||||
| Definition | 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 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
|
||||
|
@ -126,16 +135,19 @@ Feature: Test basic usage of glossary in app
|
|||
# Create entries as a student
|
||||
Given I entered the glossary activity "Test glossary" on course "Course 1" as "student1" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | potato |
|
||||
| Definition | 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. |
|
||||
And I press "Save" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | car |
|
||||
| Definition | 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 "Save" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | mountain |
|
||||
| Definition | 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 press "Save" in the app
|
||||
Then the header should be "Test glossary" in the app
|
||||
And I should find "car" in the app
|
||||
|
@ -174,16 +186,19 @@ Feature: Test basic usage of glossary in app
|
|||
Scenario: Prefetch
|
||||
Given I entered the glossary activity "Test glossary" on course "Course 1" as "student1" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | potato |
|
||||
| Definition | 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. |
|
||||
And I press "Save" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | car |
|
||||
| Definition | 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 "Save" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | mountain |
|
||||
| Definition | 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 press "Save" in the app
|
||||
Then the header should be "Test glossary" in the app
|
||||
And I should find "car" in the app
|
||||
|
@ -212,16 +227,19 @@ Feature: Test basic usage of glossary in app
|
|||
Given I entered the glossary activity "Test glossary" on course "Course 1" as "student1" in the app
|
||||
And I press "Add a new entry" in the app
|
||||
And I switch offline mode to "true"
|
||||
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 set the following fields to these values in the app:
|
||||
| Concept | potato |
|
||||
| Definition | 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. |
|
||||
And I press "Save" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | car |
|
||||
| Definition | 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 "Save" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | mountain |
|
||||
| Definition | 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 press "Save" in the app
|
||||
Then the header should be "Test glossary" in the app
|
||||
And I should find "car" in the app
|
||||
|
@ -232,8 +250,9 @@ Feature: Test basic usage of glossary in app
|
|||
|
||||
When I switch offline mode to "false"
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | testSync |
|
||||
| Definition | testSync |
|
||||
And I press "Save" in the app
|
||||
And I press "Information" in the app
|
||||
And I press "Synchronise now" in the app
|
||||
|
@ -249,16 +268,19 @@ Feature: Test basic usage of glossary in app
|
|||
# Create entries as a student
|
||||
Given I entered the glossary activity "Test glossary" on course "Course 1" as "student1" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | potato |
|
||||
| Definition | 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. |
|
||||
And I press "Save" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | car |
|
||||
| Definition | 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 "Save" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | mountain |
|
||||
| Definition | 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 press "Save" in the app
|
||||
Then the header should be "Test glossary" in the app
|
||||
And I should find "car" in the app
|
||||
|
|
|
@ -170,12 +170,14 @@ Feature: Test glossary navigation
|
|||
And I press "Clear search" in the app
|
||||
And I press "Add a new entry" in the app
|
||||
And I switch offline mode to "true"
|
||||
And I set the field "Concept" to "Tomato" in the app
|
||||
And I set the field "Definition" to "Tomato is a fruit" in the app
|
||||
And I set the following fields to these values in the app:
|
||||
| Concept | Tomato |
|
||||
| Definition | Tomato is a fruit |
|
||||
And I press "Save" in the app
|
||||
And I press "Add a new entry" in the app
|
||||
And I set the field "Concept" to "Cashew" in the app
|
||||
And I set the field "Definition" to "Cashew is a fruit" in the app
|
||||
And I set the following fields to these values in the app:
|
||||
| Concept | Cashew |
|
||||
| Definition | Cashew is a fruit |
|
||||
And I press "Save" in the app
|
||||
Then I should find "Entries to be synced" in the app
|
||||
And I should find "Tomato" in the app
|
||||
|
@ -265,11 +267,13 @@ Feature: Test glossary navigation
|
|||
When I press "Clear search" in the app
|
||||
And I press "Add a new entry" in the app
|
||||
And I switch offline mode to "true"
|
||||
And I set the field "Concept" to "Tomato" in the app
|
||||
And I set the field "Definition" to "Tomato is a fruit" in the app
|
||||
And I set the following fields to these values in the app:
|
||||
| Concept | Tomato |
|
||||
| Definition | Tomato is a fruit |
|
||||
And I press "Save" in the app
|
||||
And I set the field "Concept" to "Cashew" in the app
|
||||
And I set the field "Definition" to "Cashew is a fruit" in the app
|
||||
And I set the following fields to these values in the app:
|
||||
| Concept | Cashew |
|
||||
| Definition | Cashew is a fruit |
|
||||
And I press "Save" in the app
|
||||
Then I should find "Entries to be synced" in the app
|
||||
And I should find "Tomato" in the app
|
||||
|
|
|
@ -76,11 +76,12 @@ Feature: Test basic usage of survey activity in app
|
|||
| activity | name | intro | template |course | idnumber | groupmode |
|
||||
| survey | Test survey critical incidents | Test survey1 | 5 | C1 | survey1 | 0 |
|
||||
Given I entered the survey activity "Test survey critical incidents" on course "Course 1" as "student1" in the app
|
||||
And I set the field "At what moment in class were you most engaged as a learner?" to "1st answer" in the app
|
||||
And I set the field "At what moment in class were you most distanced as a learner?" to "2nd answer" in the app
|
||||
And I set the field "What action from anyone in the forums did you find most affirming or helpful?" to "3rd answer" in the app
|
||||
And I set the field "What action from anyone in the forums did you find most puzzling or confusing?" to "4th answer" in the app
|
||||
And I set the field "What event surprised you most?" to "5th answer" in the app
|
||||
And I set the following fields to these values in the app:
|
||||
| At what moment in class were you most engaged as a learner? | 1st answer |
|
||||
| At what moment in class were you most distanced as a learner? | 2nd answer |
|
||||
| What action from anyone in the forums did you find most affirming or helpful? | 3rd answer |
|
||||
| What action from anyone in the forums did you find most puzzling or confusing? | 4th answer |
|
||||
| What event surprised you most? | 5th answer |
|
||||
And I press "Submit" in the app
|
||||
And I press "OK" in the app
|
||||
Then I should see "Results"
|
||||
|
|
|
@ -133,8 +133,9 @@ Feature: Test basic usage of comments in app
|
|||
# Create glossary entry and comment as a teacher
|
||||
Given I entered the glossary activity "Test glossary" on course "Course 1" as "teacher1" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | potato |
|
||||
| Definition | 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. |
|
||||
And I press "Save" in the app
|
||||
And I press "potato" in the app
|
||||
And I press "Comments (0)" in the app
|
||||
|
@ -171,8 +172,9 @@ Feature: Test basic usage of comments in app
|
|||
Scenario: Add comments offline & Delete comments offline & Sync comments (glossary)
|
||||
Given I entered the glossary activity "Test glossary" on course "Course 1" as "teacher1" in the app
|
||||
And I press "Add a new entry" 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 set the following fields to these values in the app:
|
||||
| Concept | potato |
|
||||
| Definition | 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. |
|
||||
And I press "Save" in the app
|
||||
And I press "potato" in the app
|
||||
And I press "Comments (0)" in the app
|
||||
|
|
|
@ -32,8 +32,9 @@ Feature: Test basic usage of login in app
|
|||
And I press "Connect to your site" in the app
|
||||
Then I should find "Acceptance test site" in the app
|
||||
|
||||
When I set the field "Username" to "student1" in the app
|
||||
And I set the field "Password" to "student1" in the app
|
||||
When I set the following fields to these values in the app:
|
||||
| Username | student1 |
|
||||
| Password | student1 |
|
||||
And I press "Log in" near "Forgotten your username or password?" in the app
|
||||
Then I should find "Acceptance test site" in the app
|
||||
But I should not find "Log in" in the app
|
||||
|
|
Loading…
Reference in New Issue