punchcard icon indicating copy to clipboard operation
punchcard copied to clipboard

Core Developer: Testing browser javascripts

Open ayush2k opened this issue 9 years ago • 2 comments

As a Core Developer I want a clear and repeatable way to test javascripts for the browser so that my browser javascripts are tested and confirmed as functional.

Feature: Testing browser javascripts
  As a Core Developer
  I want a clear and repeatable way to test javascripts for the browser
  So that my browser javascripts are tested and confirmed as functional.

  Scenario: Javascript requires a DOM
    Given that I have javascript code that needs to get data from a dom
    When I need to test my javascript code
    Then I want my tests to create a mock DOM
      And I want that mock DOM to properly emulate an actual browser's DOM.

  Scenario: Javascript has events
    Given that I have javascript code that handles events on DOM
    When I need to test my javascript code
    Then I want my tests to trigger events
      And I want to test the functionality of event handling functions.


  • [ ] Browser Testing / DOM
  • [ ] Browser Testing / Events

ayush2k avatar Jul 28 '16 14:07 ayush2k

@Snugug https://github.com/segmentio/nightmare

mattgrill avatar Oct 23 '16 00:10 mattgrill

@Snugug https://github.com/acquia/waterwheel-js/blob/master/test/build.js

mattgrill avatar Oct 23 '16 00:10 mattgrill