Sha256: 9c54d41d99315976426ed7358e7d69e9229a647f1d745d51ab4ff17c6b4a6922

Contents?: true

Size: 623 Bytes

Versions: 1

Compression:

Stored size: 623 Bytes

Contents

Then "I should see '$text'" do |text|
  fail "Can't find #{text}" unless $browser.text.include? text
end

Then "I should see style '$style' was used" do |style|
  fail "#{style} style was not used" if $browser.stylesheets.unused_styles.include? style
end

Then "I should see style '$style' was not used" do |style|
  fail "#{style} style was used" unless $browser.stylesheets.unused_styles.include? style
end

When(/^I wait for content to be loaded into the DOM via AJAX$/) do
  $browser.div(id: "ajaxed-content").wait_until_present
end

When(/^I recheck the styles on the page$/) do
  $browser.check_for_unused_styles!
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unused_css-1.0.0 features/step_definitions/observation_steps.rb