Commit 104fb85365086d9cd6c141e18a01d4ed0a4e9cdd
1 parent
d83a421c
Adds selenium test to sisp and siorg fields
Showing
1 changed file
with
22 additions
and
0 deletions
Show diff stats
src/noosfero-spb/gov_user/features/institution_registration.feature
@@ -47,3 +47,25 @@ Feature: Institution Field | @@ -47,3 +47,25 @@ Feature: Institution Field | ||
47 | And I should not see "community_city" | 47 | And I should not see "community_city" |
48 | And I select "Brazil" from "community_country" | 48 | And I select "Brazil" from "community_country" |
49 | Then I should not see "Gama" | 49 | Then I should not see "Gama" |
50 | + | ||
51 | + @selenium | ||
52 | + Scenario: Show sisp and siorg field to admin on create new institution form | ||
53 | + Given I follow "Control panel" | ||
54 | + And I follow "Edit Profile" | ||
55 | + When I follow "Create new institution" | ||
56 | + And I choose "Public Institution" | ||
57 | + Then I should see "SISP?" | ||
58 | + And I should see "SIORG Code" | ||
59 | + | ||
60 | + @selenium | ||
61 | + Scenario: Not show sisp and siorg field to regular user on create new institution form | ||
62 | + Given the following users | ||
63 | + | login | | ||
64 | + | zombie | | ||
65 | + And I am logged in as "zombie" | ||
66 | + When I follow "Control panel" | ||
67 | + And I follow "Edit Profile" | ||
68 | + And I follow "Create new institution" | ||
69 | + And I choose "Public Institution" | ||
70 | + Then I should not see "SISP?" | ||
71 | + And I should not see "SIORG Code" |