blob: 2675a328974f5746d30dde55d6875986b34f35fc [file] [log] [blame]
import * as path from 'path';
import { expect } from 'chai';
import {
setUpPuppeteerAndDemoPageServer,
takeScreenshot,
} from '../../../puppeteer-tests/util';
describe('tricon2-sk', () => {
const testBed = setUpPuppeteerAndDemoPageServer(
path.join(__dirname, '..', '..', 'webpack.config.ts'),
);
beforeEach(async () => {
await testBed.page.goto(`${testBed.baseUrl}/dist/tricon2-sk.html`);
await testBed.page.setViewport({ width: 400, height: 400 });
});
it('should render the demo page', async () => {
// Smoke test.
expect(await testBed.page.$$('tricon2-sk')).to.have.length(9);
});
describe('screenshots', () => {
it('shows the default view', async () => {
await takeScreenshot(testBed.page, 'perf', 'tricon2-sk');
});
});
});