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