demonstrator

Catpure progress of user tests and share it with your team

Usage no npm install needed!

<script type="module">
  import demonstrator from 'https://cdn.skypack.dev/demonstrator';
</script>

README

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
    })
  });
});