diff --git a/src/noosfero-spb/gov_user/features/institution_registration.feature b/src/noosfero-spb/gov_user/features/institution_registration.feature index e4f4854..8aebfa1 100644 --- a/src/noosfero-spb/gov_user/features/institution_registration.feature +++ b/src/noosfero-spb/gov_user/features/institution_registration.feature @@ -13,7 +13,6 @@ Feature: Institution Field And I check "SoftwareCommunitiesPlugin" And I press "Save changes" And Institutions has initial default values on database - And I am logged in as mpog_admin @selenium Scenario: Show new institution fields when clicked in create new institution diff --git a/src/noosfero-spb/software_communities/features/step_definitions/software_communities_steps.rb b/src/noosfero-spb/software_communities/features/step_definitions/software_communities_steps.rb index 4836d0b..c7e1b42 100644 --- a/src/noosfero-spb/software_communities/features/step_definitions/software_communities_steps.rb +++ b/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 national_region.national_region_type_id = NationalRegionType::STATE national_region.save end - + Given /^I type in "([^"]*)" in autocomplete list "([^"]*)" and I choose "([^"]*)"$/ do |typed, input_field_selector, should_select| # Wait the page javascript load @@ -283,5 +283,6 @@ Then /^I should see "([^"]*)" in "([^"]*)" field$/ do |content, field| end Given /^I should see "([^"]*)" in the page/ do |message| - assert_match message, page.body + match = page.body =~ /#{message}/ + match.should_not be nil end -- libgit2 0.21.2