blob: 6e076f3bff294230ad2ccd2e9988956bc81b7487 [file] [log] [blame]
import { expect } from 'chai';
import { takeScreenshot, TestBed } from '../../../puppeteer-tests/util';
import { loadGoldWebpack } from '../common_puppeteer_test/common_puppeteer_test';
describe('changelist-controls-sk', () => {
let testBed: TestBed;
before(async () => {
testBed = await loadGoldWebpack();
});
beforeEach(async () => {
await testBed.page.goto(`${testBed.baseUrl}/dist/changelist-controls-sk.html`);
});
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');
});
});