blob: 1b7525e44c7793d47ec3a525ae9787b40fff1c62 [file] [log] [blame]
import { expect } from 'chai';
import {
loadCachedTestBed,
takeScreenshot,
TestBed,
} from '../../../puppeteer-tests/util';
describe('bugs-slo-popup-sk', () => {
let testBed: TestBed;
before(async () => {
testBed = await loadCachedTestBed();
});
beforeEach(async () => {
await testBed.page.goto(testBed.baseUrl);
await testBed.page.setViewport({ width: 800, height: 800 });
await openDialog();
});
it('should render the demo page', async () => {
// Smoke test.
expect(await testBed.page.$$('bugs-slo-popup-sk')).to.have.length(1);
});
describe('screenshots', () => {
it('shows the default view', async () => {
await openDialog();
await takeScreenshot(testBed.page, 'bugs-central', 'bugs-slo-popup-sk');
});
});
const openDialog = async () => testBed.page.click('#show-dialog');
});