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