Sometimes you need to access a dev server running on localhost from another machine that is not part of the...
RSpec Rails can automatically mix in different behaviors to your tests based on their type tag, for example enabling you...
You can use RSpec::Matchers.define_negated_matcher to define a negated version of an existing matcher. This is particularly useful...
Jasmine has spyOnProperty(), but it only works if the property is implemented using getter and setter functions. This is a...
Modern versions of Capybara include a finder method #ancestor which allows you to find a parental element using CSS or...
Jasmine is a great way to unit test your JavaScript components without writing an expensive end-to-end test for...
A flaky test is a test that is often green, but sometimes red. It may only fail on some PCs...
If you want Sidekiq to be able to talk to Redis on staging and production servers, you need to add...
Basic validations Read the Rails Guide on ActiveRecord Validations. You should have an overview which kinds of validations are built...
Within development and test environments, Rails is usually configured to show a detailed debug page instead of 404s. However, there...
This RailsCast demonstrated a very convenient method to activate VCR for a spec by simply tagging it with :vcr.
RSpec is smart when using the include-matcher in combination with .not_to. One could assume that .not_to include...
Sometimes a link or input field has no visible label. E.g. a text field with a magnifying glass icon 🔎 and...
The RSpec matcher tests if two HTML fragments are equivalent. Equivalency means: Whitespace is ignored Types of attribute quotes are...
We are using Spring in our tests for sequential test execution but not for parallel test execution. And Rails requires...
Our gem spreewald supports a few helpers for development. In case you notice errors in your Cucumber tests, you might...
It seems like changing the HTTP_ACCEPT_LANGUAGE is not possible for a headless chrome. On Ubuntu the headless Chrome...
You can throttle the network in your headless chrome via Selenium. This might be useful for debugging issues with flaky...
An extensive list of command line options when booting Chrome. This is useful for building a Capybara driver with custom...
To start a workflow manually it must have a trigger called workflow_dispatch: --- name: Tests on: push: branches: - master
If you have a flaky command you can use the nick-invision/retry to re-try a failing command, optionally...
Accessing other repositories in Gitlab CI is not straight forward, since the access rights of the current pipeline might not...
In case your integration tests crash with a message like below, try to upgrade Capybara to a newer version (3.35.3...
Capybara added a deprecation warning in version 3.35.3 (version from 2019) that shows up if your selector is not of...