1 |
efrain |
1 |
@core
|
|
|
2 |
Feature: Gathering user feedback
|
|
|
3 |
In order to facilitate data collection from as broad a sample of Moodle users as possible
|
|
|
4 |
As Moodle HQ
|
|
|
5 |
We should add a link within Moodle to a permanent URL on which surveys will be placed
|
|
|
6 |
|
|
|
7 |
Scenario: Users should see a feedback link on footer when the feature is enabled
|
|
|
8 |
Given the following config values are set as admin:
|
|
|
9 |
| enableuserfeedback | 1 |
|
|
|
10 |
When I log in as "admin"
|
|
|
11 |
Then I should see "Give feedback" in the "page-footer" "region"
|
|
|
12 |
|
|
|
13 |
Scenario: Users should not see a feedback link on footer when the feature is disabled
|
|
|
14 |
Given the following config values are set as admin:
|
|
|
15 |
| enableuserfeedback | 0 |
|
|
|
16 |
When I log in as "admin"
|
|
|
17 |
Then I should not see "Give feedback" in the "page-footer" "region"
|
|
|
18 |
|
|
|
19 |
Scenario: Visitors should not see a feedback link on footer when they are not logged in
|
|
|
20 |
Given the following config values are set as admin:
|
|
|
21 |
| enableuserfeedback | 1 |
|
|
|
22 |
When I am on site homepage
|
|
|
23 |
Then I should not see "Give feedback" in the "page-footer" "region"
|
|
|
24 |
|
|
|
25 |
@javascript
|
|
|
26 |
Scenario: Users should not see the notification after they click on the remind me later link
|
|
|
27 |
Given the following config values are set as admin:
|
|
|
28 |
| enableuserfeedback | 1 |
|
|
|
29 |
| userfeedback_nextreminder | 2 |
|
|
|
30 |
| userfeedback_remindafter | 90 |
|
|
|
31 |
When I log in as "admin"
|
|
|
32 |
And I follow "Dashboard"
|
|
|
33 |
And I click on "Remind me later" "link"
|
|
|
34 |
And I reload the page
|
|
|
35 |
Then I should not see "Give feedback" in the "region-main" "region"
|
|
|
36 |
And I should not see "Remind me later" in the "region-main" "region"
|
|
|
37 |
|
|
|
38 |
@javascript
|
|
|
39 |
Scenario: Users should not see the notification after they click on the give feedback link
|
|
|
40 |
Given the following config values are set as admin:
|
|
|
41 |
| enableuserfeedback | 1 |
|
|
|
42 |
| userfeedback_nextreminder | 2 |
|
|
|
43 |
| userfeedback_remindafter | 90 |
|
|
|
44 |
When I log in as "admin"
|
|
|
45 |
And I follow "Dashboard"
|
|
|
46 |
And I click on "Give feedback" "link"
|
|
|
47 |
And I close all opened windows
|
|
|
48 |
And I reload the page
|
|
|
49 |
Then I should not see "Give feedback" in the "region-main" "region"
|
|
|
50 |
And I should not see "Remind me later" in the "region-main" "region"
|