Closed JasonBarnabe closed 6 years ago
page.should_not have_content -> page.should have_no_content
page.should_not have_content
page.should have_no_content
This way, Capybara will wait a bit for the condition to become true, which will handle asynchronous JavaScript. This fixes a couple tests.
Thanks.
Instead of using the old should syntax instead can we go with the new(ish) expect syntax?
should
expect
Yes, but that's a separate change. It can all be done at once with transpec.
page.should_not have_content
->page.should have_no_content
This way, Capybara will wait a bit for the condition to become true, which will handle asynchronous JavaScript. This fixes a couple tests.