chore(puppeteer): upgrade puppeteer (#4019)

* chore(puppeteer): upgrade puppeteer

* fix(tests): fix typescript error with puppeteer 5.X types

Co-authored-by: bas <bas@planning.nl>
This commit is contained in:
Bas van Meurs
2021-07-01 19:56:38 +02:00
committed by GitHub
parent 489db4fc61
commit 69b74a806f
8 changed files with 172 additions and 91 deletions

View File

@@ -28,7 +28,7 @@ describe('e2e: commits', () => {
})
await page().goto(baseUrl)
await page().waitFor('li')
await page().waitForSelector('li')
expect(await count('input')).toBe(2)
expect(await count('label')).toBe(2)
expect(await text('label[for="master"]')).toBe('master')

View File

@@ -28,7 +28,7 @@ describe('e2e: grid', () => {
)}`
await page().goto(baseUrl)
await page().waitFor('table')
await page().waitForSelector('table')
expect(await count('th')).toBe(2)
expect(await count('th.active')).toBe(0)
expect(await text('th:nth-child(1)')).toContain('Name')

View File

@@ -77,7 +77,7 @@ describe('e2e: svg', () => {
)}`
await page().goto(baseUrl)
await page().waitFor('svg')
await page().waitForSelector('svg')
expect(await count('g')).toBe(1)
expect(await count('polygon')).toBe(1)
expect(await count('circle')).toBe(1)