Skip to content

Commit

Permalink
Added script for fractalsG
Browse files Browse the repository at this point in the history
  • Loading branch information
yusungsim committed Feb 6, 2024
1 parent 101c518 commit 27991d6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/online/fractals/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { delay } from '../../../dist/tests/test-utils.cjs'

export default async function test(analyser) {
const url = 'https://raw-wasm.pages.dev/'
const page = await analyser.start(url, { headless: false })

const canvas = page.locator('#mandelImage')
await canvas.waitFor({state: 'visible'})

console.log('visible')

await canvas.click({
button: 'left',
position: {x: 200, y: 200},
})

console.log('clicked')

await delay(10000)

return await analyser.stop()
}

0 comments on commit 27991d6

Please sign in to comment.