Skip to content

Commit c45fc63

Browse files
committed
MOBILE-3294: Update definitions to match testing document
1 parent e66e83c commit c45fc63

File tree

16 files changed

+76
-69
lines changed

16 files changed

+76
-69
lines changed

mod/assignment/tests/behat/app_basic_usage.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Feature: Test basic usage of assignment activity in app
2020
| assign | C1 | assign1 | assignment1 | Test assignment description1 | 1 | 1029844800 | manual |
2121

2222
@app @3.8.0
23-
Scenario: Create, edit and submit an assignment as a student, view it as a teacher
23+
Scenario: View assign description, due date & View list of student submissions (as teacher) & View own submission or student submission
2424
# Create, edit and submit as a student
2525
When I enter the app
2626
And I log in as "student1"
@@ -65,7 +65,7 @@ Feature: Test basic usage of assignment activity in app
6565
And I should see "Submission test edited"
6666

6767
@app @3.8.0
68-
Scenario: Add new attempt from previous submission
68+
Scenario: Edit/Add submission (online text) & Add new attempt from previous submission & Submit for grading
6969
# Submit first attempt as a student
7070
Given I enter the app
7171
And I log in as "student1"
@@ -121,7 +121,7 @@ Feature: Test basic usage of assignment activity in app
121121
And I should see "Submission test 2nd attempt"
122122

123123
@app @3.8.0
124-
Scenario: Add offline submission and synchronise it
124+
Scenario: Add submission offline (online text) & Submit for grading offline & Sync submissions
125125
When I enter the app
126126
And I log in as "student1"
127127
And I press "Course 1" near "Recently accessed courses" in the app

mod/chat/tests/behat/app_basic_usage.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Feature: Test basic usage of chat in app
2020
| chat | Test chat name | Test chat | C1 | chat | 0 |
2121

2222
@app @3.8.0
23-
Scenario: Send and read messages, send beeps and view connected users
23+
Scenario: Receive and send messages & See connected users, beep and talk to
2424
# Send messages as student1
2525
When I enter the app
2626
And I log in as "student1"
@@ -57,7 +57,7 @@ Feature: Test basic usage of chat in app
5757
Then I should see "Hi David, I am Pau."
5858

5959
@app @3.8.0
60-
Scenario: View past sessions shown for >=3.5
60+
Scenario: Past sessions shown for >=3.5
6161
# Send messages as student1
6262
Given I enter the app
6363
And I log in as "student1"

mod/choice/tests/behat/app_basic_usage.feature

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Feature: Test basic usage of choice activity in app
1818
| student1 | C1 | student |
1919

2020
@app @3.8.0
21-
Scenario: Student sends a single choice answer and views the results
21+
Scenario: Answer a choice (multi or single, update answer) & View results
2222
Given the following "activities" exist:
2323
| activity | name | intro | course | idnumber | option | allowmultiple | allowupdate | showresults |
2424
| choice | Test single choice name | Test single choice description | C1 | choice1 | Option 1, Option 2, Option 3 | 0 | 0 | 1 |
@@ -44,7 +44,7 @@ Feature: Test basic usage of choice activity in app
4444
And I should see "Option 3: 0"
4545

4646
@app @3.8.0
47-
Scenario: Student sends, changes and removes a multi choice answer
47+
Scenario: Answer a choice (multi or single, update answer) & View results & Delete choice
4848
Given the following "activities" exist:
4949
| activity | name | intro | course | idnumber | option | allowmultiple | allowupdate | showresults |
5050
| choice | Test multi choice name | Test multi choice description | C1 | choice2 | Option 1, Option 2, Option 3 | 1 | 1 | 1 |
@@ -75,7 +75,7 @@ Feature: Test basic usage of choice activity in app
7575
But I should not see "Remove my choice"
7676

7777
@app @3.8.0
78-
Scenario: Student edits answer offline and synchronises
78+
Scenario: Answer and change answer offline & Sync choice
7979
Given the following "activities" exist:
8080
| activity | name | intro | course | idnumber | option | allowmultiple | allowupdate | showresults |
8181
| choice | Test single choice name | Test single choice description | C1 | choice1 | Option 1, Option 2, Option 3 | 0 | 0 | 1 |
@@ -108,7 +108,7 @@ Feature: Test basic usage of choice activity in app
108108
But I should not see "This Choice has offline data to be synchronised."
109109

110110
@app @3.8.0
111-
Scenario: Student edits answer offline and the app synchronises automatically
111+
Scenario: Answer and change answer offline & Auto-sync choice
112112
Given the following "activities" exist:
113113
| activity | name | intro | course | idnumber | option | allowmultiple | allowupdate | showresults |
114114
| choice | Test single choice name | Test single choice description | C1 | choice1 | Option 1, Option 2, Option 3 | 0 | 0 | 1 |
@@ -136,7 +136,7 @@ Feature: Test basic usage of choice activity in app
136136
But I should not see "This Choice has offline data to be synchronised."
137137

138138
@app @3.8.0
139-
Scenario: Prefetch activity
139+
Scenario: Prefetch
140140
Given the following "activities" exist:
141141
| activity | name | intro | course | idnumber | option | allowmultiple | allowupdate | showresults |
142142
| choice | Test multi choice name | Test multi choice description | C1 | choice2 | Option 1, Option 2, Option 3 | 1 | 1 | 1 |

mod/comments/tests/behat/app_basic_usage.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Feature: Test basic usage of comments in app
2424
| data | Data | Data info | C1 | data1 | 1 |
2525

2626
@app @3.8.0
27-
Scenario: Create and delete comments (database)
27+
Scenario: Add comments & Delete comments (database)
2828
# Create database entry and comment as a teacher
2929
Given I enter the app
3030
And I log in as "teacher1"
@@ -84,7 +84,7 @@ Feature: Test basic usage of comments in app
8484
Then I should see "Comments (1)"
8585

8686
@app @3.8.0
87-
Scenario: Create and delete offline comments and synchronise (database)
87+
Scenario: Add comments offline & Delete comments offline & Sync comments (database)
8888
Given I enter the app
8989
And I log in as "teacher1"
9090
And I press "Course 1" near "Recently accessed courses" in the app
@@ -146,7 +146,7 @@ Feature: Test basic usage of comments in app
146146
And I should see "Comments (0)"
147147

148148
@app @3.8.0
149-
Scenario: Create and delete comments (glossary)
149+
Scenario: Add comments & delete comments (glossary)
150150
# Create glossary entry and comment as a teacher
151151
When I enter the app
152152
And I log in as "teacher1"
@@ -193,7 +193,7 @@ Feature: Test basic usage of comments in app
193193
And I should see "Comments (1)"
194194

195195
@app @3.8.0
196-
Scenario: Create and delete offline comments and synchronise (glossary)
196+
Scenario: Add comments offline & Delete comments offline & Sync comments (glossary)
197197
When I enter the app
198198
And I log in as "teacher1"
199199
And I press "Course 1" near "Recently accessed courses" in the app
@@ -243,7 +243,7 @@ Feature: Test basic usage of comments in app
243243
And I should see "Comments (0)"
244244

245245
@app @3.8.0
246-
Scenario: Create and delete comments (blogs)
246+
Scenario: Add comments & Delete comments (blogs)
247247
# Create blog as a teacher
248248
Given I enter the app
249249
And I log in as "teacher1"
@@ -293,7 +293,7 @@ Feature: Test basic usage of comments in app
293293
Then I should see "Comments (0)"
294294

295295
@app @3.8.0
296-
Scenario: Create and delete offline comments and synchronise (blogs)
296+
Scenario: Add comments offline & Delete comments offline & Sync comments (blogs)
297297
# Create blog as a teacher
298298
Given I enter the app
299299
And I log in as "teacher1"

mod/course/tests/behat/app_basic_usage.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Feature: Test basic usage of one course in app
7272
| workshop | Test workshop name | Test workshop | C1 | workshop | 0 | 3 |
7373

7474
@app @3.8.0
75-
Scenario: Student views course contents
75+
Scenario: View course contents
7676
When I enter the app
7777
And I log in as "student1"
7878
And I press "Course 1" near "Recently accessed courses" in the app
@@ -150,7 +150,7 @@ Feature: Test basic usage of one course in app
150150
Then the header should be "Test workshop name" in the app
151151

152152
@app @3.8.0
153-
Scenario: Student views section contents
153+
Scenario: View section contents
154154
When I enter the app
155155
And I log in as "student1"
156156
And I press "Course 1" near "Recently accessed courses" in the app

mod/course/tests/behat/app_course_completion.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Feature: Check course completion feature.
1515
| user | course | role |
1616
| student1 | C1 | student |
1717

18-
Scenario: Complete the activity manually by clicking at the completion checkbox.
18+
Scenario: Activity completion, marking the checkbox manually
1919
Given the following "activities" exist:
2020
| activity | name | course | idnumber | completion | completionview |
2121
| forum | First forum | C1 | forum1 | 1 | 0 |

mod/course/tests/behat/app_courselist.feature

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,39 +19,22 @@ Feature: Test course list shown on app start tab
1919
| student2 | C1 | student |
2020
| student2 | C2 | student |
2121

22-
Scenario: Student is registered on one course
22+
Scenario: View courses (shortnames not displayed)
2323
When I enter the app
2424
And I log in as "student1"
2525
Then I should see "Course 1"
26-
And I should not see "Course 2"
26+
But I should not see "Course 2"
27+
But I should not see "C1"
28+
But I should not see "C2"
2729

28-
Scenario: Student is registered on two courses (shortnames not displayed)
2930
When I enter the app
3031
And I log in as "student2"
3132
Then I should see "Course 1"
3233
And I should see "Course 2"
33-
And I should not see "C1"
34-
And I should not see "C2"
35-
36-
Scenario: Student is registered on two courses (shortnames displayed)
37-
Given the following config values are set as admin:
38-
| courselistshortnames | 1 |
39-
When I enter the app
40-
And I log in as "student2"
41-
Then I should see "Course 1"
42-
And I should see "Course 2"
43-
And I should see "C1"
44-
And I should see "C2"
45-
46-
Scenario: Student uses course list to enter course, then leaves it again
47-
When I enter the app
48-
And I log in as "student2"
49-
And I press "Course 2" near "Course overview" in the app
50-
Then the header should be "Course 2" in the app
51-
And I press the back button in the app
52-
Then the header should be "Acceptance test site" in the app
34+
But I should not see "C1"
35+
But I should not see "C2"
5336

54-
Scenario: Student uses filter feature to reduce course list
37+
Scenario: Filter courses
5538
Given the following config values are set as admin:
5639
| courselistshortnames | 1 |
5740
And the following "courses" exist:

mod/courses/tests/behat/app_basic_usage.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Feature: Test basic usage of courses in app
3535
| assign | C1 | assign1 | assignment | Test assignment description | 1 |
3636

3737
@app @3.8.0
38-
Scenario: Dashboard tab displayed in >= 3.3 sites
38+
Scenario: "Dashboard" tab displayed in >= 3.3 sites
3939
When I enter the app
4040
And I log in as "student1"
4141
Then I should see "Dashboard"

mod/data/tests/behat/app_data_entries.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Feature: Users can manage entries in database activities
3131
| Field description | Link description |
3232
And I log out
3333

34-
Scenario: Students can add entries to a database in the app
34+
Scenario: Create entry
3535
Given I enter the app
3636
And I log in as "student1"
3737
And I press "Course 1" near "Course overview" in the app
@@ -44,7 +44,7 @@ Feature: Users can manage entries in database activities
4444
Then I should see "https://moodle.org/"
4545
And I should see "Moodle community site"
4646

47-
Scenario: Students can navigate along single entries in the app
47+
Scenario: Browse entry
4848
Given I enter the app
4949
And I log in as "student1"
5050
And I press "Course 1" near "Course overview" in the app
@@ -95,7 +95,7 @@ Feature: Users can manage entries in database activities
9595
And "Edit" "link" should not exist
9696
And "Delete" "link" should not exist
9797

98-
Scenario: Students can edit and delete their own entries from list and single view in the app
98+
Scenario: Delete entry (student) & Update entry (student)
9999
Given I enter the app
100100
And I log in as "student1"
101101
And I press "Course 1" near "Course overview" in the app
@@ -143,7 +143,7 @@ Feature: Users can manage entries in database activities
143143
And I should not see "Moodle Cloud"
144144
And I should see "No entries in database"
145145

146-
Scenario: Teachers can edit and delete students' entries from list view in the app
146+
Scenario: Delete entry (teacher) & Update entry (teacher)
147147
Given I enter the app
148148
And I log in as "student1"
149149
And I press "Course 1" near "Course overview" in the app

mod/data/tests/behat/app_data_sync.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Feature: Users can store entries in database activities when offline and sync wh
3232
And I log out
3333

3434
@app_from3.7
35-
Scenario: Students can add entries to a database in the app while offline
35+
Scenario: Create entry (offline)
3636
Given I enter the app
3737
And I log in as "student1"
3838
And I press "Course 1" near "Course overview" in the app
@@ -54,7 +54,7 @@ Feature: Users can store entries in database activities when offline and sync wh
5454
And I should not see "This Database has offline data to be synchronised"
5555

5656
@app_from3.7
57-
Scenario: Students can edit and delete entries to a database in the app while offline
57+
Scenario: Update entry (offline) & Delete entry (offline)
5858
Given I enter the app
5959
And I log in as "student1"
6060
And I press "Course 1" near "Course overview" in the app

0 commit comments

Comments
 (0)