blob: 28a3a1ad86dcd4c6bd180598b0eb81d7a657d84d [file] [log] [blame]
import * as path from 'path';
import { expect } from 'chai';
import {
inBazel, loadCachedTestBed, takeScreenshot, TestBed,
} from '../../../puppeteer-tests/util';
describe('ingest-file-links-sk', () => {
let testBed: TestBed;
before(async () => {
testBed = await loadCachedTestBed(path.join(__dirname, '..', '..', 'webpack.config.ts'));
});
beforeEach(async () => {
// Remove the /dist/ below for //infra-sk elements.
await testBed.page.goto(testBed.baseUrl);
await testBed.page.setViewport({ width: 400, height: 550 });
});
it('should render the demo page (smoke test)', async () => {
expect(await testBed.page.$$('ingest-file-links-sk')).to.have.length(1);
});
describe('screenshots', () => {
it('shows the default view', async () => {
await takeScreenshot(testBed.page, 'perf', 'ingest-file-links-sk');
});
});
});