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:
@@ -29,7 +29,7 @@ describe('e2e: Transition', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await page().goto(baseUrl)
|
||||
await page().waitFor('#app')
|
||||
await page().waitForSelector('#app')
|
||||
})
|
||||
|
||||
describe('transition with v-if', () => {
|
||||
|
||||
@@ -21,7 +21,7 @@ describe('e2e: TransitionGroup', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await page().goto(baseUrl)
|
||||
await page().waitFor('#app')
|
||||
await page().waitForSelector('#app')
|
||||
})
|
||||
|
||||
test(
|
||||
|
||||
@@ -108,7 +108,7 @@ export function setupPuppeteer() {
|
||||
await page.$eval(
|
||||
selector,
|
||||
(node, value) => {
|
||||
;(node as HTMLInputElement).value = value
|
||||
;(node as HTMLInputElement).value = value as string
|
||||
node.dispatchEvent(new Event('input'))
|
||||
},
|
||||
value
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user