blob: d52ec01974084d5ac0a8073336e7b75704c0d218 [file] [log] [blame]
import { expect } from 'chai';
import {
loadCachedTestBed,
takeScreenshot,
TestBed,
} from '../../../puppeteer-tests/util';
describe('plot-simple-sk', () => {
let testBed: TestBed;
before(async () => {
testBed = await loadCachedTestBed();
});
beforeEach(async () => {
await testBed.page.goto(testBed.baseUrl);
await testBed.page.setViewport({ width: 750, height: 1400 });
});
it('should render the demo page', async () => {
// Smoke test.
expect(await testBed.page.$$('plot-simple-sk')).to.have.length(3);
});
describe('screenshots', () => {
it('shows the default view', async () => {
await takeScreenshot(testBed.page, 'perf', 'plot-simple-sk');
});
it('show anomalies', async () => {
await testBed.page.click('#anomaly');
await takeScreenshot(testBed.page, 'perf', 'plot-simple-sk');
});
});
});