When using TextMate2 with the cucumber bundle, it does not recognize step definitions (e.g. custom_steps.rb) as such but believes they...
Local testing allows you to test your private and internal servers using the BrowserStack cloud, which has support for firewalls...
Your development machine is usually on a very good network connection. To test how your application behaves on a slow...
Development environment setup Rails Composer Basically a comprehensive Rails Template. Prepares your development environment and lets you select web server...
String#indent is not a standard Ruby method. When you use it, be sure to know where this method comes...
"I click on ..." step fixed Errors added to ToleranceForSeleniumSyncIssues::RETRY_ERRORS Capybara::ElementNotFound Selenium::WebDriver::Error::ElementNotVisibleError Selenium::WebDriver::Error...
Spreewald includes a few useful steps for debugging a Capybara session. Then show me the page # => Opens the page in...
Usually, Cucumber feature files live in features/. When you group them in sub directories, make sure to add -r features...
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...
Sometimes you have a test expectation but actually want a better error message in case of a failure. Here is...
Put the attached file into features/support/. Example usage: When /^I open the task named "(.+?)"$/ do |task_name| task = page.all('.task...
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...
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...
# 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...
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...