improves step definition performance and readability

pull/1530/head
Jens Ulferts 10 years ago
parent 95287428a9
commit bff967d4b4
  1. 4
      features/step_definitions/web_steps.rb

@ -183,7 +183,7 @@ end
Then /^(?:|I )should see \/([^\/]*)\/$/ do |regexp|
regexp = Regexp.new(regexp)
page.should have_xpath('//*', :text => regexp)
should have_content(regexp)
end
Then /^(?:|I )should not see "([^"]*)"$/ do |text|
@ -194,7 +194,7 @@ end
Then /^(?:|I )should not see \/([^\/]*)\/$/ do |regexp|
regexp = Regexp.new(regexp)
page.should have_no_xpath('//*', :text => regexp)
should have_no_content(regexp)
end
Then /^the "([^"]*)" field(?: within (.*))? should contain "([^"]*)"$/ do |field, parent, value|

Loading…
Cancel
Save