blob: ad5ebfffd3a2893c67fa43d5f28ab8479c89374b [file] [log] [blame]
import { expect } from 'chai';
import {
loadCachedTestBed,
takeScreenshot,
TestBed,
} from '../../../puppeteer-tests/util';
describe('suggest-input-sk', () => {
let testBed: TestBed;
before(async () => {
testBed = await loadCachedTestBed();
});
beforeEach(async () => {
await testBed.page.goto(testBed.baseUrl);
await testBed.page.setViewport({ width: 400, height: 500 });
});
it('should render the demo page', async () => {
// Smoke test.
expect(await testBed.page.$$('suggest-input-sk')).to.have.length(1);
});
describe('screenshots', () => {
it('shows the default view', async () => {
await takeScreenshot(testBed.page, 'ct', 'suggest-input-sk');
});
it('shows the suggestions', async () => {
await testBed.page.click('input');
await takeScreenshot(testBed.page, 'ct', 'suggest-input-sk_suggestions');
});
});
});