In CI test runs I noticed that string sorting order changed after switching from a debian-based PostgreSQL docker image...
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...
We have a long-standing checklist for merge requests. However, it hardly matches the intricate requirements for design. This checklist...
Code splitting is a feature of esbuild that can keep huge libraries out of the main bundle. How code splitting...
As we are slowly switching from Cucumber scenarios to RSpec feature specs, you might be tempted to write assertions like...
I recently noticed that better_errors allows you to to open files from within your favorite editor. However it was...
Debugging your integration tests, that run a headless Chrome inside a docker image, is tricky. In many cases you can...
Within Capybara you most certainly use the #check- and #uncheck-method to (un)check checkboxes. But there's one problem...
When you allow file uploads in your app, a user might upload content that hurts other users. Our primary concern...
Every Rails response has a default ETag header. In theory this would enable caching for multiple requests to the same...
You have an async function that rejects: async function failingFunction() { throw new Error("Something went wrong") } When you call that...
To navigate between test and test subject Rubymine requires you to set the test root sources as Test Sources Root...
Haml 6 was a major rewrite with performance in mind. To achieve a performance improvement of 1.7x, some design...
Capybara has a variety of finder methods like find_button to help you look up DOM elements. There are also...
Maintaining larger projects makes it more difficult to balance refactoring and upgrade tasks according to its actual value. Consider to...
By activating strict_loading you force developers to address n+1 queries by preloading all associations used in the index...
Testing your responses in Rails allows to parse the body depending on the response MIME type with parsed_body.
If you need a sample video with certain properties for a test you can create one using ffmpeg.
This is a checklist I use to work on issues. For this purpose I extracted several cards related to the...
Not all email clients support external images in all situations, e.g. an image within a link. In some cases, a...
Sometimes I ran across a GitHub merge request of a gem where it was not completely obvious in which version...
Rails includes milliseconds in Time / DateTime objects when rendering them as JSON: JSON.parse(User.last.to_json)['created_at'] #=> "2001-01-01...
Let's assume that we have a model Movie that registers a callback function when a new instance of Movie...