Sha256: 8991285925f18b4c49e2688f7e468950a51e8a23b35c162dd8d7db2994fd36b0

Contents?: true

Size: 1.16 KB

Versions: 8

Compression:

Stored size: 1.16 KB

Contents

require 'fileutils'

When /^I have a logo file in the correct location$/ do
  FileUtils.cp "features/support/logo.png", "features/support/ugly_face/"
end

Then /^I should remove the logo file$/ do
  FileUtils.rm "features/support/ugly_face/logo.png"
end

When /^I have a suite header partial in the correct location$/ do
  FileUtils.cp "features/support/_suite_header.erb", "features/support/ugly_face/"
end

Then /^I should remove the suite header partial file$/ do
  FileUtils.rm "features/support/ugly_face/_suite_header.erb"
end

When /^I have a feature header partial in the correct location$/ do
  FileUtils.cp "features/support/_feature_header.erb", "features/support/ugly_face/"
end

Then /^I should remove the feature header partial file$/ do
  FileUtils.rm "features/support/ugly_face/_feature_header.erb"
end

Then(/^the background of the error message row should be "(.*?)"$/) do |background|
  @browser = Watir::Browser.new :firefox
  visit ErrorDisplay do |page|
    expect(page.error_background).to include background
  end
end

Then(/^the text of the of the error message row should be "(.*?)"$/) do |color|
  expect(on(ErrorDisplay).error_text_color).to include color
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ugly_face-0.8 features/step_definitions/report_steps.rb
ugly_face-0.7 features/step_definitions/report_steps.rb
ugly_face-0.6 features/step_definitions/report_steps.rb
ugly_face-0.5 features/step_definitions/report_steps.rb
ugly_face-0.4 features/step_definitions/report_steps.rb
ugly_face-0.3 features/step_definitions/report_steps.rb
ugly_face-0.2 features/step_definitions/report_steps.rb
ugly_face-0.1 features/step_definitions/report_steps.rb