Skip to content

Instantly share code, notes, and snippets.

@knewter
Created March 9, 2012 02:00
Show Gist options
  • Save knewter/2004594 to your computer and use it in GitHub Desktop.
Save knewter/2004594 to your computer and use it in GitHub Desktop.
When /^I select classification "([^"]*)"$/ do |classification|
facet_link(classification).click
end
When /^I expand classification "([^"]*)"$/ do |classification|
facet_hitarea_element(classification).click
end
Then /^I should have classification "([^"]*)" applied$/ do |classification|
classification_filter(classification).text.should_not == ""
end
When /^I remove classification "([^"]*)"$/ do |classification|
classification_filter_remove_link(classification).click
end
Then /^I should not have classification "([^"]*)" applied$/ do |classification|
classification_filter(classification).should be_nil
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment