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