blob: 2083d9e00ba2a78567e5bf05f45939480dd14f6b [file] [log] [blame]
import { expect } from 'chai';
import { loadCachedTestBed, takeScreenshot, TestBed } from '../../../puppeteer-tests/util';
describe('changelist-controls-sk', () => {
let testBed: TestBed;
before(async () => {
testBed = await loadCachedTestBed();
});
beforeEach(async () => {
await testBed.page.goto(testBed.baseUrl);
});
it('should render the demo page', async () => {
// Smoke test.
expect(await testBed.page.$$('changelist-controls-sk')).to.have.length(1);
});
it('should take a screenshot', async () => {
const controls = await testBed.page.$('.search_response');
await takeScreenshot(controls!, 'gold', 'changelist-controls-sk');
});
});