@skyux-sdk/e2e

4.1.0 • Public • Published

@skyux-sdk/e2e

npm status coverage

Provides Node.js helpers during SKY UX Builder E2E tests.

Running visual tests

my.component.e2e-spec.ts

import {
  expect,
  SkyHostBrowser
} from '@skyux-sdk/e2e';

describe('Action button', () => {
  it('should match baseline screenshot', (done) => {
    SkyHostBrowser.get('action-button');
    SkyHostBrowser.setWindowBreakpoint('sm');
    expect('#screenshot-action-button').toMatchBaselineScreenshot(done, {
      screenshotName: 'action-button-sm'
    });
  });
});

Readme

Keywords

none

Package Sidebar

Install

npm i @skyux-sdk/e2e

Weekly Downloads

2

Version

4.1.0

License

MIT

Unpacked Size

47.5 kB

Total Files

43

Last publish

Collaborators

  • blackbaud