Merge pull request #3483 from NobodysNightmare/feature/define_steps

Implement missing cucumber steps
pull/3485/head
Oliver Günther 9 years ago
commit 84b1bba051
  1. 4
      features/step_definitions/common_steps.rb
  2. 4
      features/step_definitions/search_steps.rb

@ -78,3 +78,7 @@ end
Then(/^"([^"]*)" should be the first row in table$/) do |name|
should have_selector('table.generic-table tbody tr td', text: Regexp.new("#{name}"))
end
When(/^I click link "(.*?)"$/) do |selector|
page.find(:css, selector).click
end

@ -61,7 +61,7 @@ end
When(/^I search globally for "([^"]*)"$/) do |query|
steps %{
And I click link "top-menu-search-button"
And I click link "#top-menu-search-button"
And I fill in "#{query}" for "q"
And I press the "return" key on element "#q"
And I wait for the AJAX requests to finish
@ -70,7 +70,7 @@ end
When(/^I search for "([^"]*)" after having searched$/) do |query|
steps %{
And I click link "top-menu-search-button"
And I click link "#top-menu-search-button"
And I fill in "#{query}" for "q" within "#content"
And I press "Submit" within "#content"
And I wait for the AJAX requests to finish

Loading…
Cancel
Save