turingschool/m4-final-starter

Name: m4-final-starter

Owner: Turing School of Software & Design

Description: URLockbox Starter Rails App

Created: 2016-12-19 16:35:08.0

Updated: 2017-05-18 20:20:00.0

Pushed: 2017-08-01 02:52:07.0

Homepage:

Size: 233

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

URLockBox

Final Assessment

The URLockbox is a starter app for the final assessment for module 4 of the backend engineering program at Turing School of Software and Design.

Be sure to get familiar with what is already done, and what is not. No features are complete, but there is some set up done for several features. Use commit history if that helps.

Testing your JS with Selenium

The app has the selenium-webdriver gem listed in the Gemfile and setup in the rails_helper.rb

Setup

Everything will be installed with Bundle.

You will need to download version 46 of Firefox here. If you do have it, make sure it is on version 46. Selenium does not work with all versions of Firefox, so make sure that you are using Firefox 46 or else it will potentially cause you problems.

If you already have Firefox and it's on a version more recent than 46, the easiest way to downgrade is to uninstall Firefox then install version 46.

Use

You can then write capybara feature tests and add js: true tag if you'd like your test to use the Selenium WebDriver rather than the default WebDriver. Your tests will execute and recognize your JavaScript.

If you're having problems troubleshooting asynchronous actions (like DOM changes after an AJAX request), peruse this section of Capybara's docs

It is highly suggested that you also check out the Capybara docs and and the section on selenium-webdriver.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.