Applications often show or hide elements based on viewport dimensions, or may have components that behave differently (like mobile vs...
When you are scrolling up to investigate a test failure it is super annoying when the terminal scrolls back down...
Updated the card with our current best practice (shared app code and specs via symlinks).
If you use rails_admin, your specs pass with the rspec binary, but not using rake spec (or rake parallel...
RSpec's be_false behaves unexpectedly: nil.should be_false # passes, as the expectation returns true If you want to check...
In a nutshell: Capybara's find will not work properly on nodes from a list. Don't find on elements...
Note that this seems to affect only recent Rails 2 versions. You will not encounter this until you are writing...
The Rails community has been abuzz with object-oriented programming, SOLID principles, laws, design patterns, and other principles, practices, and...
In large forms (30+ controls) new Capybara version become [extremely slow] when filling out fields. It takes several seconds per...
If you are using VNC to run Selenium tests, it may be hard to see what's going on since...
Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...
Note: You might also want to check out BoxCryptor which does pretty much the same, and is supported across many...
Sometimes you need a special version of chrome because it has some features you need for testing, like in this...
You can set the resolution and user agent used in selenium tests with chrome with the method described in this...
When you want to test how an web-application reacts in a specific resolution, you can set up a specific...
In order to navigate through the browser history. you can manipulate the window.history object via javascript like follows:
All our projects have enum-like requirements like this: An attribute value must be included in a given set of...
After installing Bundler 1.1 you will get the following warning when running tests: WARNING: Cucumber-rails required outside of env.rb...
validates_acceptance_of :terms only works if terms is set to a value. The validation is skipped silently when terms...
Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.
In some older Capybara versions (e.g. 0.3.9), we're getting lots of deprecations warnings: Selenium::WebDriver::Element#select is deprecated...
When you are using NAT in your virtual machine (which you should), the host's IP address is: 10.0.2.2
When you regularly make use of Cucumber's "show me the page" step (or let pages pop up as errors...
This is surprisingly difficult when there is a with the same text on the page, but you really want to...