Skip to content

Instantly share code, notes, and snippets.

@ericmoritz
Last active August 29, 2015 13:58
Show Gist options
  • Select an option

  • Save ericmoritz/10024470 to your computer and use it in GitHub Desktop.

Select an option

Save ericmoritz/10024470 to your computer and use it in GitHub Desktop.
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
<!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