Running rails server will start a local server that you can access via http://localhost:3000. When you are working...
We often use the Then console step from spreewald in combination with geordi vnc from geordi to debug tests within...
In Spreewald 1.10.4+, nested patiently blocks are now patient. Here is an example: patiently do outer_code patiently do
Form fields can be rendered as noneditable by setting the disabled or the readonly attribute. Be aware of the differences...
When your Rails controller calls render, you can pass a :status option for the HTTP status code: render 'results', status...
Here is how to use Chromedriver without libraries like selenium-webdriver. This can be useful for debugging. The following example...
If you want to make a screenshot of a website that works well in print or on a high-DPI...
When a Rails controller action should handle both HTML and JSON responses, do not use request.xhr? to decide that. Use...
This cucumber step is useful for testing an image (looking at the src of the image). Then(/^I should see...
This is painful. Consider using Microsoft Office or switching careers. If you need to write < 20 letters consider doing it...
wrap the text with a span use line-height for the spacing between lines ("margin")
When you print (or print preview) and elements are cut off (e.g. after 1st page, or "randomly") you should check...
By default, browsers will not wrap text at syllable boundaries. Text is wrapped at word boundaries only. This card explains...
When writing XLSX files, there are gems like rubyXL or axlsx. While they do offer features like formatting or graphs...
If your Angular app has some decent complexity, it will not be easy to use UI Router straight away. Here...
Checking if a JavaScript value is of a given type can be very confusing: There are two operators typeof and...
If you use awesome and make a Slack call, you'll constantly have an overlay window pop up taking over...
You are not using javascript tests The file is served from a public folder (not via controller) Problem description...
An end-to-end test (E2E test) is a script that remote-controls a web browser with tools like Selenium...
When your public-facing application has a longer downtime for server maintenance or long migrations, it's nice to setup...
Browsers support different types of redirects. Be very careful with these status codes: 301 Moved Permanently 308 Permanent Redirect
Slides for Henning's talk on Sep 21st 2017. Understanding sync vs. async control flow Talking to synchronous (or "blocking...
If you are using PDFKit / wkhtmltopdf, you might as well want to use custom fonts in your stylesheets. Usually this...
The linked article shows how to exploit websites that include unsanitized user input in their CSS. Although the article often...