Created
October 25, 2013 12:52
-
-
Save fofr/7154210 to your computer and use it in GitHub Desktop.
Cucumber feature for Google chart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@wip @javascript | |
Scenario: Hits exist and can be filtered by error | |
And I click the link "Errors" | |
And I wait until a graph is visible | |
Then I should see all hits with an error status for the Attorney General's office in descending count order | |
And an errors graph showing two dates and a red trend line | |
When /^I wait until a graph is visible$/ do | |
find('.js-hits-graph svg') | |
end | |
Then(/^an errors graph showing two dates and a red trend line$/) do | |
puts page.body | |
expect(page).to have_selector('svg') | |
expect(page).to have_selector('svg g') | |
expect(page).to have_selector('svg path') | |
#expect(page).to have_selector('text', text: 'Errors') | |
expect(page).to have_svg_text('Errors') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment