Sha256: d6e2d85c76e2cb16e442c7d64203541e248f0ccd31249e75540fbabde4e9657e

Contents?: true

Size: 615 Bytes

Versions: 1

Compression:

Stored size: 615 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 $unused_css.stylesheets.styles.include? style
end

Then "I should see style '$style' was not used" do |style|
  fail "#{style} style was used" unless $unused_css.stylesheets.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-0.1.0 features/step_definitions/observation_steps.rb