Sha256: e9d3baf34bc632ef9aa744018e913b2d193b0e5ca64e4675c68cf0c5897f6e1f

Contents?: true

Size: 1.17 KB

Versions: 6

Compression:

Stored size: 1.17 KB

Contents

Then(/^I should see a test suite section in HTML$/) do
  html_test_suites.first.should_not be_nil
end

Then(/^I should see a failed test in HTML$/) do
  html_report_body.get_elements("//*[contains(@class, 'test failing')]/").to_a.size.should_not == 0
end

Then(/^the failure counter should show (\d+) tests?$/) do |fail_count|
  html_report_body.get_elements("//*[@id='fail-count']/").first.elements.to_a.first.text.to_i.should == fail_count.to_i
end

Then(/^I should see a passing test in HTML$/) do
  html_report_body.get_elements("//*[contains(@class, 'test passing')]/").to_a.size.should_not == 0
end

Then(/^I should see (\d+) tests in HTML$/) do |test_count|
  html_report_body.get_elements("//*[contains(@class, 'test ')]/").size.should == test_count.to_i
end

Then(/^I should see (\d+) test suite sections? in HTML$/) do |section_count|
  html_test_suites.size.should == section_count.to_i
end

Then(/^I should see a screenshot in HTML$/) do
  html_report_body.get_elements("//*[contains(@class, 'screenshot')]/").to_a.size.should_not == 0
end

Then(/^I should not see a screenshot in HTML$/) do
  html_report_body.get_elements("//*[contains(@class, 'screenshot')]/").to_a.size.should == 0
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
xcpretty-0.1.12 features/steps/html_steps.rb
xcpretty-0.1.11 features/steps/html_steps.rb
xcpretty-0.1.10 features/steps/html_steps.rb
xcpretty-0.1.9 features/steps/html_steps.rb
xcpretty-0.1.8 features/steps/html_steps.rb
xcpretty-0.1.7 features/steps/html_steps.rb