I have jump links for blind and keyboard users in my webpage which are moved out of the viewport to hide them visually; when they gain focus, they are moved into the viewport.  I want to test this behaviour using RSpec and Capybara, but it somehow do...
I am using rspec to test some pages and would like to use the click method. However the DOM doesn't have the link or button. it's just a span and magically it becomes a link with javascript.  <span class="footerLink feedbackLink"&g...
I'm very new to Capybara and have also never used Selenium before. I'm doing a ruby on rails project on MacOSX and for whatever reason, a browser window never opens when I run my test.  My stack is: Capybara, Selenium, Rspec, Ruby on Rails. M...
I'm working on an application that uses uservoice.  The uservoice snippet    var uv = document.createElement('script');   uv.type = 'text/javascript';   uv.async = true;   uv.src = ...; // external call to uservoice to fetch js...
I've got a Ruby on Rails app with a JavaScript (mostly React) frontend. The suite of rspec feature tests exercises a significant portion of the frontend JavaScript code, but I don't have any visibility into that. Meanwhile the JavaScript unit...
I implemented following behavior for a input field: If the user clicks on the field it will set the whole input-value as selection;  $('.my_div input').on('click', function(event){     this.setSelectionRange(0, this.value.length);   }...
I have some Angular/Rails app where Rails part is just JSON API, all front works is doing by AngularJS. I've made model/controller test already using RSpec, and now I want to make some integration tests. Earlier I use request test (with Capybara,...
I'm trying to test some JS functionality with rspec and capybara-webkit.   I need to sign in with google on the client side.  <script src="https://apis.google.com/js/client.js"></script>  function auth() {        var config =...
I have a test that checks if, after the user chooses an option from the autocomplete suggestions, the path has changed. I'm testing with Capybara on Poltergeist. However, presumably because I'm triggering the page change trough JS, I have to...
I'm writing a Rails plugin/gem, that is basically some helpers (FormHelpers, FormTagHelpers), and some associated Javascript to add behavior.  I'm testing the tag helpers with RSpec.  And now I am setting up Jasmine to test the Javascript beh...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.