Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
/ skyux-sdk-e2e Public archive

End-to-end testing utilities for SKY UX single-page applications.

License

Notifications You must be signed in to change notification settings

blackbaud/skyux-sdk-e2e

Repository files navigation

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