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