1import { setupPuppeteer, getExampleUrl, E2E_TIMEOUT } from './e2eUtils'
2
3▶describe('e2e: todomvc', () => {
4 const {
5 page,
· · ·
17
18 async function removeItemAt(n: number) {
19▶ const item = (await page().$('.todo:nth-child(' + n + ')'))!
20 const itemBBox = (await item.boundingBox())!
21 await page().mouse.move(itemBBox.x + 10, itemBBox.y + 10)
· · ·
22▶ await click('.todo:nth-child(' + n + ') .destroy')
23 }
24
· · ·
25▶ async function testTodomvc(apiType: 'classic' | 'composition') {
26 const baseUrl = getExampleUrl('todomvc', apiType)
27 await page().goto(baseUrl)
· · ·
26▶ const baseUrl = getExampleUrl('todomvc', apiType)
27 await page().goto(baseUrl)
28 expect(await isVisible('.main')).toBe(false)
+ 83 more matches in this file