Commit b77d7861e1bff909cbc5584bcc31dc38ff76209a

Authored by Gabriel Silva
1 parent a259a8e3
Exists in spb_to_rails4

Fixes Gov User cucumber tests

Signed-off-by: Gabriel Silva <gabriel93.silva@gmail.com>
Signed-off-by: Luciano Prestes <lucianopcbr@gmail.com>
src/noosfero-spb/gov_user/features/institution_registration.feature
... ... @@ -13,7 +13,6 @@ Feature: Institution Field
13 13 And I check "SoftwareCommunitiesPlugin"
14 14 And I press "Save changes"
15 15 And Institutions has initial default values on database
16   - And I am logged in as mpog_admin
17 16  
18 17 @selenium
19 18 Scenario: Show new institution fields when clicked in create new institution
... ...
src/noosfero-spb/software_communities/features/step_definitions/software_communities_steps.rb
... ... @@ -40,7 +40,7 @@ Given /^Institutions has initial default values on database$/ do
40 40 national_region.national_region_type_id = NationalRegionType::STATE
41 41 national_region.save
42 42 end
43   -
  43 +
44 44  
45 45 Given /^I type in "([^"]*)" in autocomplete list "([^"]*)" and I choose "([^"]*)"$/ do |typed, input_field_selector, should_select|
46 46 # Wait the page javascript load
... ... @@ -283,5 +283,6 @@ Then /^I should see &quot;([^&quot;]*)&quot; in &quot;([^&quot;]*)&quot; field$/ do |content, field|
283 283 end
284 284  
285 285 Given /^I should see "([^"]*)" in the page/ do |message|
286   - assert_match message, page.body
  286 + match = page.body =~ /#{message}/
  287 + match.should_not be nil
287 288 end
... ...