Last active
August 29, 2015 13:58
-
-
Save ericmoritz/10024470 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| LINK_SELECTOR='a[property="http://api.gannettdigital.com/vocab/buildcluster#codeReviewLink"]' | |
| When(/^I visit the index page$/) do | |
| visit ui_url "/" | |
| end | |
| Then(/^I see a code review link$/) do | |
| page.should have_selector LINK_SELECTOR | |
| @gerritLink = find(LINK_SELECTOR) | |
| end |
This file contains hidden or 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
| Feature: Index page has a code review link | |
| In order to know how to review code | |
| As a new developer | |
| I want to see a code review link on the index page | |
| Scenario: Present a code review link on the index page | |
| When I visit the index page | |
| Then I see a code review link |
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <h1>Build Cluster</h1> | |
| <ul> | |
| <li><a property="http://api.gannettdigital.com/vocab/buildcluster#codeReviewLink" href="/gerrit/">Code Review</a></li> | |
| </ul> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment