🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

demonstrator

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

demonstrator

Catpure progress of user tests and share it with your team

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

Demonstrator

Record the events and resulting html from a browser-monkey session.

Example

Record a single test

var demo = require('demonstrator');
var browser = require('browser-monkey');

describe('your awesome feature', function(){
  it('is a silver bullet', function(){
    var recorder = demo.recordSession(browser);

    return browser.find('.some-element').click().then(function(){
      // do some more typing, clicking etc.
      // then:
      recorder.send();
    })
  });
});

Record all tests

var demo = require('demonstrator');
var browser = require('browser-monkey');

demo.record(browser);

describe('your awesome feature', function(){
  it('is a silver bullet', function(){
    return browser.find('.some-element').click().then(function(){
      // do some more typing, clicking etc.
      // after the tests run the session will be sent to the server
    })
  });
});

FAQs

Package last updated on 28 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts