blob: 4d8c71bf63357f6afba3b6b50e5b71138b2a2741 [file] [log] [blame]
import { expect } from 'chai';
import { loadCachedTestBed, takeScreenshot, TestBed } from '../../../puppeteer-tests/util';
describe('note-editor-sk', () => {
let testBed: TestBed;
before(async () => {
testBed = await loadCachedTestBed();
});
beforeEach(async () => {
await testBed.page.goto(testBed.baseUrl);
await testBed.page.setViewport({ width: 640, height: 480 });
});
it('should render the demo page (smoke test)', async () => {
expect(await testBed.page.$$('note-editor-sk')).to.have.length(1);
});
describe('screenshots', () => {
it('shows the default view', async () => {
await takeScreenshot(testBed.page, 'machine', 'note-editor-sk');
});
});
});