| import { expect } from 'chai'; |
| import { |
| loadCachedTestBed, takeScreenshot, TestBed, |
| } from '../../../puppeteer-tests/util'; |
| |
| describe('pivot-table-sk', () => { |
| let testBed: TestBed; |
| before(async () => { |
| testBed = await loadCachedTestBed(); |
| }); |
| |
| beforeEach(async () => { |
| // Remove the /dist/ below for //infra-sk elements. |
| await testBed.page.goto(testBed.baseUrl); |
| await testBed.page.setViewport({ width: 600, height: 600 }); |
| }); |
| |
| it('should render the demo page (smoke test)', async () => { |
| expect(await testBed.page.$$('pivot-table-sk')).to.have.length(3); |
| }); |
| |
| describe('screenshots', () => { |
| it('shows the default view', async () => { |
| await takeScreenshot(testBed.page, 'perf', 'pivot-table-sk'); |
| }); |
| }); |
| }); |