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