blob: c50364b36c0452f3fef0fc69f26f7a7e9432f8a8 [file] [log] [blame]
import * as path from 'path';
import { expect } from 'chai';
import { setUpPuppeteerAndDemoPageServer, takeScreenshot } from '../../../puppeteer-tests/util';
describe('human-date-sk', () => {
const testBed = setUpPuppeteerAndDemoPageServer(
path.join(__dirname, '..', '..', 'webpack.config.ts')
);
beforeEach(async () => {
await testBed.page.goto(`${testBed.baseUrl}/human-date-sk.html`);
await testBed.page.setViewport({ width: 400, height: 550 });
});
it('should render the demo page (smoke test)', async () => {
expect(await testBed.page.$$('human-date-sk')).to.have.length(1);
});
describe('screenshots', () => {
it('displays a date', async () => {
await takeScreenshot(testBed.page, 'infra-sk', 'human-date-sk');
});
});
});