For Selenium tests, your browser starts in your local timezone, or whatever your system's environment specifies. This is usually...
If a Cucumber run deletes your application directory, an integration fail between Capybara and Capybara Screenshot may be the cause...
Starting with ChromeDriver 127, if your application displays a beforeunload confirmation dialog, ChromeDriver will immediately close it. In consequence, any...
tl;dr Prefer request specs over end-to-end tests (Capybara) to joyfully test file downloads! Why? Testing file downloads
You can chain multiple Capybara matchers on the page or any element: expect(page) .to have_content('Example Course')
I recently noticed a new kind of flaky tests on the slow free tier GitHub Action runners: Integration tests were...
Any form fields where users enter numbers should be an . Numeric inputs have several benefits over : On mobile or tablet...
tl;dr We recommend configuring Selenium's unhandled prompt behavior to "ignore". When running tests in a real browser, we...
Getting an entire test suite green can be a tedious task which involves frequent switches between the CLI that is...
I recently stumbled over a problem that my feature tests broke in CI because of a mismatching chromedriver version.
View specs are a powerful tool to test several rendering paths by their cases instead of using a more costing...
Chromedriver (or selenium-webdriver?) will not reliably scroll elements into view before clicking them, and actually not click the element...
Newest versions of Chromedriver breaks the user agent for device emulation via device name. In previous versions the user agent...
Capybara allows you to filter elements that are focused. page.find(:fillable_field, focused: true) # Filtering only fillable inputs for performance...
As we are slowly switching from Cucumber scenarios to RSpec feature specs, you might be tempted to write assertions like...
Within Capybara you most certainly use the #check- and #uncheck-method to (un)check checkboxes. But there's one problem...
Capybara has a variety of finder methods like find_button to help you look up DOM elements. There are also...
Unpoly's [up-observe], [up-autosubmit] and [up-validate] as well as their programmatic variants up.observe() and up.autosubmit...
One rule of thumb I try to follow in capybara tests is using capybara matchers and not plain rspec matchers...
Testing file download links in an end-to-end test can be painful, especially with Selenium. The attached download_helpers.rb provides...
When Capybara locates elements in the DOM, by default it allows only accessing visible elements -- when you are using a...
Modern versions of Capybara include a finder method #ancestor which allows you to find a parental element using CSS or...
A flaky test is a test that is often green, but sometimes red. It may only fail on some PCs...
Sometimes a link or input field has no visible label. E.g. a text field with a magnifying glass icon 🔎 and...