Skip to content

Instantly share code, notes, and snippets.

@jwood
Last active August 29, 2015 14:17
Show Gist options
  • Save jwood/ef0ab87479b67a72f015 to your computer and use it in GitHub Desktop.
Save jwood/ef0ab87479b67a72f015 to your computer and use it in GitHub Desktop.
Fix Flakey Feature Tests by Using Capybara's APIs Properly - 1
first("#foo").click
expect(first(".message").value).to eql("Loaded successfully")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment