In a Rails application I\'m trying to test a Bootstrap modal with a jQuery TokenInput field in Rspec using Capybara with the capybara-webkit driver. The portion
I suggest to add falowing css in test env:
div, a, span, footer, header {
-webkit-transition: none !important;
-moz-transition: none !important;
-ms-transition: none !important;
-o-transition: none !important;
transition: none !important;
}
.modal {
display: none !important;
}
.modal.in {
display: block !important;
}
.modal-backdrop {
display: none !important;
}
Add this js in the and of body:
$(".fade").removeClass("fade");
That has solved most of my problems with capybara and bootstrap.