Sha256: 53510a106c84e1b2f63de9c13992e1ebffc3383523eeeb1104af4beeddf55966

Contents?: true

Size: 1.17 KB

Versions: 26

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

26 entries across 26 versions & 3 rubygems

Version Path
xcpretty-0.4.0 features/steps/html_steps.rb
xcpretty-security-patched-0.3.2 features/steps/html_steps.rb
xcpretty-security-patched-0.3.0 features/steps/html_steps.rb
xcpretty-0.3.0 features/steps/html_steps.rb
xcpretty-0.2.8 features/steps/html_steps.rb
xcpretty-0.2.7 features/steps/html_steps.rb
xcpretty-0.2.6 features/steps/html_steps.rb
xcpretty-0.2.4 features/steps/html_steps.rb
xcpretty-0.2.3 features/steps/html_steps.rb
xcpretty-bb-0.1.12.bb14 features/steps/html_steps.rb
xcpretty-bb-0.1.12.bb13 features/steps/html_steps.rb
xcpretty-bb-0.1.12.bb12 features/steps/html_steps.rb
xcpretty-bb-0.1.12.bb11 features/steps/html_steps.rb
xcpretty-bb-0.1.12.bb10 features/steps/html_steps.rb
xcpretty-bb-0.1.12.bb9 features/steps/html_steps.rb
xcpretty-bb-0.1.12.bb8 features/steps/html_steps.rb
xcpretty-0.2.2 features/steps/html_steps.rb
xcpretty-bb-0.1.12.bb7 features/steps/html_steps.rb
xcpretty-0.2.1 features/steps/html_steps.rb
xcpretty-bb-0.1.12.bb6 features/steps/html_steps.rb