use_report.feature
2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Feature: Use report
As a user
I want to make a use report of a software
to give my feedback about a software.
Background:
Given "SoftwareCommunitiesPlugin" plugin is enabled
Given "OrganizationRatings" plugin is enabled
And I am logged in as mpog_admin
And I go to /admin/plugins
And I check "SoftwareCommunitiesPlugin"
And I press "Save changes"
And the following softwares
| name | public_software | finality |
| Noosfero | true | some finality |
Scenario: Add Organization Ratings Block
Given I go to Noosfero's control panel
And I follow "Edit sideboxes"
When I follow "Add a block"
And I choose "Organization Ratings"
And I press "Add"
Then I should see "Report your experiences"
Scenario: Add Average Rating Block
Given I go to Noosfero's control panel
And I follow "Edit sideboxes"
When I follow "Add a block"
And I choose "Organization Average Rating"
And I press "Add"
Then I should see "Be the first to rate!"
@selenium
Scenario: Test Additional Fields JavaScript
Given I go to /profile/noosfero/plugin/organization_ratings/new_rating
Then I should not see "Number of Beneficiaries"
And I should not see "Saved resources"
When I click on anything with selector "comments-additional-information"
Then I should see "Number of Beneficiaries"
And I should see "Saved resources"
@selenium
Scenario: Validate Use Report fields format
Given I go to Noosfero's control panel
Given I follow "Edit sideboxes"
When I follow "Add a block"
And I choose "Organization Ratings"
And I press "Add"
And I am on Noosfero's homepage
And I follow "Rate Community"
When I click on anything with selector "comments-additional-information"
And I fill in "people_benefited_tmp" with "123123"
And I fill in "saved_value_tmp" with "7654321"
And I press "Save"
Then I should see "Benefited People: 123,123"
And I should see "Saved Resources: $76,543.21"