Sha256: 71666c09118229b87df4162ac9a6bf5b458e9c0aa1a7748b8e5bcc5f86eee2cd

Contents?: true

Size: 609 Bytes

Versions: 1

Compression:

Stored size: 609 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.styles.include? style
end

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