makandra dev

6.0.0 2021-06-02 Compatible changes geordi commit will continue even if one of the given projects is inaccessible. It...

We recently noticed issues with Chrome 75+ when having the w3c option enabled within the Selenium webdriver. It looks like...

When testing JavaScript functionality in Selenium (E2E), you may need to access a class or function inside of a evaluate...

I encountered a unlucky behavior of byebug 11.1.3 (the most recent version at time of writing) when using it with...

rspec.info

rspec >= 3.1 brings a method and_wrap_original. It seems a bit complicated at first, but there are use cases...

When dealing with external data sources, you may have to deal with improperly encoded strings. While you should prefer deciding...

jetbrains.com

In RubyMine folders can be excluded from search, navigation etc. by marking it as excluded. You might sometimes wish to...

When storing files for lots of records in the server's file system, Carrierwave's default store_dir approach may...

If your Webpack build is slow, you can use the Speed Measure Plugin for Webpack to figure out where time...

makandra dev

Webpack builds can take a long time, so we only want to compile when needed. This card shows what will...

docs.gitlab.com

Use rules to include or exclude jobs in pipelines. Rules are evaluated in order until the first match. When a...

This card is a general reminder to avoid the short version of a command option in shared code. It's...

Generate a password htpasswd -Bn firstname.lastname This will ask you for a password and use bcrypt (-B, more secure) and...

If a project ist configured to spawn CI runners for tests or deployment when pushing to the Repo, a habit...

To attach files to your records, you will need a new database column representing the filename of the file...

makandra dev
web.archive.org

The attached article examines what the percent unit (%) is relative to in CSS The article does a great job of...

When you have a hex color code, you can easily convert it into its RGB values using plain Ruby.

We prefer to run our end-to-end tests with headless Chrome. While it's a very stable solution overall...

When your Rails application server raises error, Capybara will fail your test when it clears the session after the last...

makandra dev

When your application is open for public sign up and sends out transactional e-mails to a large number of...

Browsers blocks abusable JavaScript API calls until the user has interacted with the document. Examples would be opening new tab...

makandra dev

In Ruby (almost) everything is an Object. While this enables a lot of powerful features, this concept might be confusing...

The ActionDispatch module of Rails gives you the helper method flash to access the flash messages in a response.

makandra dev
github.com

capybara-lockstep can help you with flaky end-to-end tests: This Ruby gem synchronizes Capybara commands with client-side...