features/reporting.feature in chemistrykit-3.9.0.rc3 vs features/reporting.feature in chemistrykit-3.9.0

- old
+ new

@@ -1,5 +1,6 @@ +@announce Feature: Advanced HTML Reports In order to quickly know the status of the application As a chemistry kit harness user I want a detailed HTML report of failures @@ -42,11 +43,10 @@ """ And I overwrite config.yaml with: """ screenshot_on_fail: true selenium_connect: - log: 'evidence' browser: 'firefox' """ Scenario: I can run the tests When I run `ckit brew` @@ -58,11 +58,10 @@ Given I overwrite config.yaml with: """ concurrency: 2 screenshot_on_fail: true selenium_connect: - log: 'evidence' browser: 'chrome' """ When I run `ckit brew` Then the stdout should contain "5 examples, 3 failures, 1 pending" And the following files should exist: @@ -72,11 +71,10 @@ Given I overwrite config.yaml with: """ concurrency: 2 screenshot_on_fail: true selenium_connect: - log: 'evidence' host: 'saucelabs' browser: 'firefox' sauce_username: 'testing_arrgyle' sauce_api_key: 'ab7a6e17-16df-42d2-9ef6-c8d2539cc38a' description: 'concurrency check' @@ -95,8 +93,23 @@ @driver.title.should include("Google") end end """ When I run `ckit brew --beakers=beakers/fourth_beaker.rb` + And the following files should exist: + | evidence/final_results.html | + +Scenario: I capture the dom from all open windows +Given a file named "beakers/fifth_beaker.rb" with: + """ + describe "Reporting Beaker 5", :depth => 'shallow' do + it "loads two windows, from 5" do + @driver.get 'http://the-internet.herokuapp.com/windows' + @driver.find_element(css: '.example a').click + @driver.title.should include("Google") + end + end + """ + When I run `ckit brew --beakers=beakers/fifth_beaker.rb` And the following files should exist: | evidence/final_results.html |