blob: ca4435709b55f3ef8dc0e6a1863ba965384fd939 [file] [log] [blame]
import { expect } from 'chai';
import {
inBazel,
loadCachedTestBed,
takeScreenshot,
TestBed,
} from '../../../puppeteer-tests/util';
describe('auto-refresh-sk', () => {
let testBed: TestBed;
before(async () => {
testBed = await loadCachedTestBed();
});
beforeEach(async () => {
// Remove the /dist/ below for //infra-sk elements.
await testBed.page.goto(
inBazel()
? testBed.baseUrl
: `${testBed.baseUrl}/dist/auto-refresh-sk.html`
);
await testBed.page.setViewport({ width: 300, height: 300 });
});
it('should render the demo page (smoke test)', async () => {
expect(await testBed.page.$$('auto-refresh-sk')).to.have.length(1);
});
describe('screenshots', () => {
it('shows the default view', async () => {
await takeScreenshot(testBed.page, 'machine', 'auto-refresh-sk');
});
});
});