You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Thanks for making Bun
I'm a newbie with Puppeteer but I try to use it to run my E2E tests.
According to Bun blog, puppeteershould work since 0.6.7.
However, running this simple test:
import { beforeEach, afterEach, describe, afterAll, expect, it } from 'bun:test'
import puppeteer from 'puppeteer'
describe('A test', async () => {
const browser = await puppeteer.launch({ defaultViewport: null, headless: false })
const page = await browser.newPage()
beforeEach(async () => await page.goto('http://localhost:3000'))
afterEach(async () => await page.close())
afterAll(async () => await browser.close())
it('should learn puppeteer', async () => {
console.log(page.url()) // it works (log: http://localhost:3000/)
const source = await page.content();
console.log(source) // it works
page
.click('input[type="submit"]')
.then(() => console.log('got it'))
.catch((e) => console.log(e)) // it throws
console.log('this line is logged') // this line is logged
expect(1).toBe(1) // this test pass
})
})
...throws an error (see below)
Nota: My webpage (http://localhost:3000) do include somewhere: <input type="submit" value="Login">
Do you have any clue? And is it Bun-related?
Thanks
charnould
changed the title
is puppeteer fully working: a simple test throwing a bug ?
is puppeteer fully working: a simple test throws a bug ?
Jun 17, 2023
charnould
changed the title
is puppeteer fully working: a simple test throws a bug ?
is puppeteer fully working: a simple test throws a bug?
Jun 17, 2023
What version of Bun is running?
0.6.9
What platform is your computer?
Darwin 22.3.0 arm64 arm
What steps can reproduce the bug?
Hello,
Thanks for making
Bun
I'm a newbie with
Puppeteer
but I try to use it to run my E2E tests.According to
Bun
blog,puppeteer
should work since 0.6.7.However, running this simple test:
...throws an error (see below)
Nota: My webpage (http://localhost:3000) do include somewhere:
<input type="submit" value="Login">
Do you have any clue? And is it
Bun
-related?Thanks
What is the expected behavior?
No bug should be return (?)
What do you see instead?
Additional information
Stack Overflow issue
The text was updated successfully, but these errors were encountered: