Tests are about 100% control over UI interaction and your test scenario. Randomness makes writing tests hard. You will also...

I had to deal with JavaScript Undefined Error while accessing a specific CKEditor instance to fill in text. Ensure everything...

class Book::Page end class MyBook < Book def new_page Page.new # has to be `Book::Page` in development to...

relishapp.com

Sometimes you have a test expectation but actually want a better error message in case of a failure. Here is...

makandra dev
github.com

Put the attached file into features/support/. Example usage: When /^I open the task named "(.+?)"$/ do |task_name| task = page.all('.task...

blog.buildbettersoftware.com

Mornings can be rough. To make them a little easier, leave yourself a failing test if your work isn’t...

After I upgraded to Mac OS X Mavericks, I regularly got this error message when running Cucumber features with Selenium...

makandra dev

We have released Modularity 2. It has many incompatible changes. See below for a script to migrate your applications automatically...

If you want to test that a certain text is contained within the document title of your page, you can...

TLDR: This card explains which threads and processes interact with each other when you run a Selenium test with Capybara...

github.com

# Attach a file # # Example: # # Company.new.logo = File.new… # # Given the file "…" was attached as logo to the company above # # # Example: # # class Gallery...

This error occurs when you already have a database.yml which defines the database for the cucumber environment instead of test...

Use protocol independent URLs whenever possible so that the browser will choose the protocol related to the protocol which the...

jetmore.org

swaks is a very nice tool to test SMTP. For the most linux distributions you can easily install it with...

Install and configure the AWS Command Line Interface Show existing certificates to test if the AWS Cli is working:

robots.thoughtbot.com

One of many useful techniques when your test suite needs to talk to a remote API.

Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...

It is good programming practice to Don't Repeat Yourself (or DRY). In Ruby on Rails we keep our code...

Geordi 0.16+ supports running selenium tests with project-specific firefox versions. Just update the gem. It will still default to...

If you need to test interaction with a remote API, check out the VCR gem as an alternative to Webmock...

So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...

You might not know that Rails disables CSRF protection in tests. This means that if you accidentally forget to send...

Copy the attached file to features/support. This gets you a convenience method: Capybara.javascript_test? Is true for Selenium, capybara-webkit...

stackoverflow.com

If you want to have routes that are only available in tests (e.g. for testing obscure redirects), you can use...