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