These steps are now part of Spreewald. Here are some useful examples how to use the attached Cucumber Timecop steps...
Angular 1.3+ has an alternative getter/setter pattern: You can bind ng-model to an accessor function. This is a function...
...after each scenario: After do if Capybara.current_driver == :selenium && !Capybara.current_url.starts_with?('data:') page.execute_script <<-JAVASCRIPT localStorage.clear(); sessionStorage.clear(); JAVASCRIPT end
shoelace is a library of web components. Here is a proof of concept how a integration (slightly different as the...
Building application assets with esbuild is the new way to do it, and it's great, especially in combination with...
Here is how to switch your Selenium to Chrome: Make sure you've got a recent version of chromedriver in...
...is the string format that represents simple data structures. Ruby data structures that resemble Javascript objects can be serialized to JSON with #to_json. These can be restored from a...
Working with lists in Javascript is painful because the native Array class is so poorly designed. One way to reduce the pain is to to use Underscore.js's functions like...
tl;dr The strict-dynamic source list keyword allows you to simplify your CSP policy by favoring hashes and nonces...
When you are using the default MIME-Type configuration and your application allows uploading files, it can be a security...
There seems to be no way to use therubyracer -v '0.11.4' and libv8 -v '3.11.8.17' on OS X Mavericks.
...secure and HttpOnly (keeping them from being sent over HTTP and protecting them from Javascript) rewrite all client cookies once, making them secure and HttpOnly notification if a request has...
bower-rails is a great solution for managing vendored assets in your Rails app. It feels especially much more convenient...
Runs Cucumber under bundle exec Uses an old version of Firefox for Selenium (Javascript) features if you setup your system that way Runs features in parallel if parallel_tests...
In RubyMine folders can be excluded from search, navigation etc. by marking it as excluded. You might sometimes wish to...
I ran into a situation in which I received the yarn integrity check warning when starting the rails console even...
Issue: You have an app using jsbundling-rails and esbuild. After deploy, the assets built by esbuild are missing in...
Great look at the tradeoffs between progressive enhancement with jQuery or similiar, vs. client-side views.
Currently not possible as the linked .htc file contains JavaScript which is not explicitly called. The developers are working on a pure JavaScript solution which will have some downsides but...
...Often you’ll want to run only some scenarios with a driver that supports JavaScript, Capybara makes this easy: simply tag the scenario (or feature) with @javascript...
This will give the target site full access to your Javascript environment through window.opener, if the target is on the same domain. Even if the target site is on another...
Today I ran into trouble installing therubyracer on Ruby 1.8. The installation failed with *** extconf.rb failed *** Could not create Makefile...
Some older Node modules rely on window.jQuery to be present. One suggested solution is to use this config in the...
It is possible to access Rails config (for example secrets) from within your webpack bundles, thanks to rails-erb-loader...