Giter Club home page Giter Club logo

final-assessment's Introduction

URLockBox

MidModule Assessment

The URLockbox is the final project at the Turing School of Software & Design.

Production for the project lives here Hotness

Testing your JS with Selenium

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

  • 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.

Setup

bundle
rake db:setup
rspec

Progress Notes

Realizing doing so much JavaScript has stolen some Ruby magic from me
  • Add redirect inside application controller with an authorize! method
  • Add Create User form and Password confirmation.
    • will probably break this form into a partial to better serve across multi views
  • Hook the create user form to the database, allows for creation of Users
    • broke error messages and flashs to a partial to parse
  • scope base permissions to current_user, simple as not showing the main index if not logged in.
  • following the spec, I added link creation as direct database calls and a page refresh - this will be changed soon
  • scoped the delegation of who owns a link on creation to allow the current user to own it on create
  • can now mark as read! Woo

Extras

  • These are for me!

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.

final-assessment's People

Contributors

case-eee avatar neight-allen avatar sh1pley avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.