Skip to content

Should add gotchas to testing with Capybara in README  #308

Closed
@CharlieIGG

Description

@CharlieIGG

I've been struggling for a while trying to create integration tests that dealt with this library.

There are two things that would've saved me (and hopefully would save other devs) a lot of time had they been documented here:

  1. Waiting for Ajax requests. Although not specific to this library, there's no way to test without knowing how to do this, and it's not the most thoroughly or widely documented trick. This guide worked well for me: https://robots.thoughtbot.com/automatically-wait-for-ajax-with-capybara

  2. Configuring the test server used by Capybara to prevent this from breaking: https://stackoverflow.com/questions/27992619/capybara-selenium-webdriver-datatables-not-playing-nicely is a good reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions