1

My specs passes in local. But the below code fails in Semaphore CI.
- Included js: true
- Tried increasing the Capybara.default_wait_time to 5, but still no luck.

Here is my code:

find(".tooltip-#{user.id}").hover
expect(page).to have_content user.tooltip_content

Any idea how this can be resolved.

2
  • have you solved your problem? I'm having the same problem, maybe you can add config.ignore_localhost = true on your vcr config file. It didn't work for me though. Oct 17, 2015 at 18:17
  • @AndréHerculano Not solved the problem yet. The issue sporadic and I don't get this issue sometimes when rebuild is given in CI. Oct 19, 2015 at 8:01

1 Answer 1

1

You can try

page.execute_script('$(".tooltip-#{user.id}").mouseover()')

expect(page).to have_content user.tooltip_content

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.