Skip to content

jakob-lambda/taiko-screeny

 
 

Repository files navigation


TaikoScreeny


Node.js CI

Installation

npm install taiko-screeny

Usage

const {
  openBrowser,
  closeBrowser,
  screeny: { write, goto, setConfig }
} = require('taiko');

const fs = require('fs');
const dir = 'screen-capture';
const assert = require('assert');

describe('Capture screenshot for every action', async () => {
  beforeEach('Before Launch', async () => {
    await openBrowser();
  });

  afterEach('Close Browser', async () => {
    await closeBrowser();
  });
  it('Should be capturing screenshots for actions', async () => {
    await setConfig(dir);
    await goto('google.com');
    await write('Taiko.js');
    assert.equal(fs.readdirSync(dir).length, 2);
  });
});

setConfig Command

setConfig(directoryName);

About

A tool to capture screenshot on every taiko action

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%