There are two ways a logout in SAML can happen: Service Provider (SP) initiated and Identity Provider (IDP) initiated logout...
tl;dr Prefer request specs over end-to-end tests (Capybara) to joyfully test file downloads! Why? Testing file downloads
A Rails script lives in lib/scripts and is run with bin/rails runner lib/scripts/.... They are a simple tool to perform...
There are a few tools to combat the dreaded n+1 queries. The bullet gem notifies you of missing eager...
Here are some hints on best practices to maintain your tasks in larger projects. Rake Tasks vs. Scripts
I recently stumbled over a problem that my feature tests broke in CI because of a mismatching chromedriver version.
For my computer science bachelor's thesis I programmed and evaluated a CLI Test Case Prioritization (TCP) tool for makandra...
You can tell npm to install a package globally with npm -g install @puppeteer/browsers. However, it seems that its not...
Rails offers several methods to manage three types of different cookies along with a session storage for cookies. These...
Debugging your integration tests, that run a headless Chrome inside a docker image, is tricky. In many cases you can...
Testing your responses in Rails allows to parse the body depending on the response MIME type with parsed_body.
Jasmine specs for the frontend often need some DOM elements to work with. Because creating them is such a common...
You can use the code below to check whether the browser can make connections to the current site: await isOnline...
Testing file download links in an end-to-end test can be painful, especially with Selenium. The attached download_helpers.rb provides...
While verifying doubles in RSpec is a good default, it is limited in the amount of methods it actually is...
When the order matters: expect(array1).toEqual(array2) Regardless of order: expect(array1).toEqual(jasmine.arrayWithExactContents(array2)) Ignoring extra elements:
RSpec's let allows you to super into "outside" definitions, in parent contexts. Example: describe '#save' do subject { described_class.new(attributes...
A flaky test is a test that is often green, but sometimes red. It may only fail on some PCs...
When testing JavaScript functionality in Selenium (E2E), you may need to access a class or function inside of a evaluate...
https://tableconvert.com/ is an online tool to convert tables between different formats (e.g. json, markdown, csv).
The pages […] allow you to see different types of mixed content and test how they behave in your browser. The...
When testing with Cucumber / Caypbara, iframes are ignored, so you can't interact with them. To interact with your iframe...
FactoryBot allows to create traits from Enums since version 6.0.0 The automatic definition of traits for Active Record enum attributes...
Select2 is a fantastic library for advanced dropdown boxes, but it depends on jQuery. Alternatives Tom Select