Skip to content

Commit 7b37a90

Browse files
MOBILE-4077 ReportBuilder: Create tests
1 parent cb2d17a commit 7b37a90

File tree

1 file changed

+145
-0
lines changed

1 file changed

+145
-0
lines changed
Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
@app @javascript @core_reportbuilder
2+
Feature: Report builder
3+
4+
Background:
5+
Given the following "core_reportbuilder > Reports" exist:
6+
| name | source | default |
7+
| My report 01 | core_user\reportbuilder\datasource\users | 1 |
8+
| My report 02 | core_user\reportbuilder\datasource\users | 2 |
9+
| My report 03 | core_user\reportbuilder\datasource\users | 3 |
10+
| My report 04 | core_user\reportbuilder\datasource\users | 4 |
11+
| My report 05 | core_user\reportbuilder\datasource\users | 5 |
12+
| My report 06 | core_user\reportbuilder\datasource\users | 6 |
13+
| My report 07 | core_user\reportbuilder\datasource\users | 7 |
14+
| My report 08 | core_user\reportbuilder\datasource\users | 8 |
15+
| My report 09 | core_user\reportbuilder\datasource\users | 9 |
16+
| My report 10 | core_user\reportbuilder\datasource\users | 10 |
17+
| My report 11 | core_user\reportbuilder\datasource\users | 11 |
18+
| My report 12 | core_user\reportbuilder\datasource\users | 12 |
19+
| My report 13 | core_user\reportbuilder\datasource\users | 13 |
20+
| My report 14 | core_user\reportbuilder\datasource\users | 14 |
21+
| My report 15 | core_user\reportbuilder\datasource\users | 15 |
22+
| My report 16 | core_user\reportbuilder\datasource\users | 16 |
23+
| My report 17 | core_user\reportbuilder\datasource\users | 17 |
24+
| My report 18 | core_user\reportbuilder\datasource\users | 18 |
25+
| My report 19 | core_user\reportbuilder\datasource\users | 19 |
26+
| My report 20 | core_user\reportbuilder\datasource\users | 20 |
27+
| My report 21 | core_user\reportbuilder\datasource\users | 21 |
28+
| My report 22 | core_user\reportbuilder\datasource\users | 22 |
29+
| My report 23 | core_user\reportbuilder\datasource\users | 23 |
30+
| My report 24 | core_user\reportbuilder\datasource\users | 24 |
31+
| My report 25 | core_user\reportbuilder\datasource\users | 25 |
32+
| My report 26 | core_user\reportbuilder\datasource\users | 26 |
33+
| My report 27 | core_user\reportbuilder\datasource\users | 27 |
34+
| My report 28 | core_user\reportbuilder\datasource\users | 28 |
35+
| My report 29 | core_user\reportbuilder\datasource\users | 29 |
36+
| My report 30 | core_user\reportbuilder\datasource\users | 30 |
37+
| My report 31 | core_user\reportbuilder\datasource\users | 31 |
38+
| My report 32 | core_user\reportbuilder\datasource\users | 32 |
39+
| My report 33 | core_user\reportbuilder\datasource\users | 33 |
40+
| My report 34 | core_user\reportbuilder\datasource\users | 34 |
41+
| My report 35 | core_user\reportbuilder\datasource\users | 35 |
42+
And the following "core_reportbuilder > Columns" exist:
43+
| report | uniqueidentifier |
44+
| My report 01 | user:fullname |
45+
| My report 02 | user:fullname |
46+
| My report 03 | user:fullname |
47+
| My report 04 | user:fullname |
48+
| My report 05 | user:fullname |
49+
| My report 06 | user:fullname |
50+
| My report 07 | user:fullname |
51+
| My report 08 | user:fullname |
52+
| My report 09 | user:fullname |
53+
| My report 10 | user:fullname |
54+
| My report 11 | user:fullname |
55+
| My report 12 | user:fullname |
56+
| My report 13 | user:fullname |
57+
| My report 14 | user:fullname |
58+
| My report 15 | user:fullname |
59+
| My report 16 | user:fullname |
60+
| My report 17 | user:fullname |
61+
| My report 18 | user:fullname |
62+
| My report 19 | user:fullname |
63+
| My report 20 | user:fullname |
64+
| My report 21 | user:fullname |
65+
| My report 22 | user:fullname |
66+
| My report 23 | user:fullname |
67+
| My report 24 | user:fullname |
68+
| My report 25 | user:fullname |
69+
| My report 26 | user:fullname |
70+
| My report 27 | user:fullname |
71+
| My report 28 | user:fullname |
72+
| My report 29 | user:fullname |
73+
| My report 30 | user:fullname |
74+
| My report 31 | user:fullname |
75+
| My report 32 | user:fullname |
76+
| My report 33 | user:fullname |
77+
| My report 34 | user:fullname |
78+
| My report 35 | user:fullname |
79+
And the following "core_reportbuilder > Audiences" exist:
80+
| report | configdata | classname |
81+
| My report 01 | | core_reportbuilder\reportbuilder\audience\allusers |
82+
| My report 02 | | core_reportbuilder\reportbuilder\audience\allusers |
83+
| My report 03 | | core_reportbuilder\reportbuilder\audience\allusers |
84+
| My report 04 | | core_reportbuilder\reportbuilder\audience\allusers |
85+
| My report 05 | | core_reportbuilder\reportbuilder\audience\allusers |
86+
| My report 06 | | core_reportbuilder\reportbuilder\audience\allusers |
87+
| My report 07 | | core_reportbuilder\reportbuilder\audience\allusers |
88+
| My report 08 | | core_reportbuilder\reportbuilder\audience\allusers |
89+
| My report 09 | | core_reportbuilder\reportbuilder\audience\allusers |
90+
| My report 10 | | core_reportbuilder\reportbuilder\audience\allusers |
91+
| My report 11 | | core_reportbuilder\reportbuilder\audience\allusers |
92+
| My report 12 | | core_reportbuilder\reportbuilder\audience\allusers |
93+
| My report 13 | | core_reportbuilder\reportbuilder\audience\allusers |
94+
| My report 14 | | core_reportbuilder\reportbuilder\audience\allusers |
95+
| My report 15 | | core_reportbuilder\reportbuilder\audience\allusers |
96+
| My report 16 | | core_reportbuilder\reportbuilder\audience\allusers |
97+
| My report 17 | | core_reportbuilder\reportbuilder\audience\allusers |
98+
| My report 18 | | core_reportbuilder\reportbuilder\audience\allusers |
99+
| My report 19 | | core_reportbuilder\reportbuilder\audience\allusers |
100+
| My report 20 | | core_reportbuilder\reportbuilder\audience\allusers |
101+
| My report 21 | | core_reportbuilder\reportbuilder\audience\allusers |
102+
| My report 22 | | core_reportbuilder\reportbuilder\audience\allusers |
103+
| My report 23 | | core_reportbuilder\reportbuilder\audience\allusers |
104+
| My report 24 | | core_reportbuilder\reportbuilder\audience\allusers |
105+
| My report 25 | | core_reportbuilder\reportbuilder\audience\allusers |
106+
| My report 26 | | core_reportbuilder\reportbuilder\audience\allusers |
107+
| My report 27 | | core_reportbuilder\reportbuilder\audience\allusers |
108+
| My report 28 | | core_reportbuilder\reportbuilder\audience\allusers |
109+
| My report 29 | | core_reportbuilder\reportbuilder\audience\allusers |
110+
| My report 30 | | core_reportbuilder\reportbuilder\audience\allusers |
111+
| My report 31 | | core_reportbuilder\reportbuilder\audience\allusers |
112+
| My report 32 | | core_reportbuilder\reportbuilder\audience\allusers |
113+
| My report 33 | | core_reportbuilder\reportbuilder\audience\allusers |
114+
| My report 34 | | core_reportbuilder\reportbuilder\audience\allusers |
115+
| My report 35 | | core_reportbuilder\reportbuilder\audience\allusers |
116+
And the following "users" exist:
117+
| username | firstname | lastname | email | city |
118+
| student1 | Lionel | Smith | lionel@example.com | Bilbao |
119+
120+
Scenario: Open report in mobile
121+
Given I enter the app
122+
And I log in as "student1"
123+
And I press the user menu button in the app
124+
When I press "Reports" in the app
125+
126+
# Find report in the screen
127+
Then I should find "My report 03" in the app
128+
And I press "My report 03" in the app
129+
And I should find "My report 03" in the app
130+
And I should find "Lionel Smith" in the app
131+
But I should not find "My report 02" in the app
132+
133+
Scenario: Open report in tablet
134+
Given I enter the app
135+
And I change viewport size to "1200x640"
136+
And I log in as "student1"
137+
And I press the user menu button in the app
138+
When I press "Reports" in the app
139+
140+
# Find report in the screen
141+
Then I should find "My report 02" in the app
142+
And I press "My report 02" in the app
143+
And I should find "My report 02" in the app
144+
And I should find "Lionel Smith" in the app
145+
But I should not find "My report 03" in the app

0 commit comments

Comments
 (0)