Skip to content

Commit

Permalink
make commander keen work
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobgetz committed Dec 5, 2023
1 parent fb87a6b commit e80a18b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 6 additions & 7 deletions tests/online/commanderkeen/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@ import { delay } from '../../../dist/tests/test-utils.cjs'

export default async function test(analyser) {
const url = 'https://www.jamesfmackenzie.com/chocolatekeen/'
const page = await analyser.start(url, {headless: false })
const page = await analyser.start(url, { headless: true })

const canvasLoc = page.locator('#canvas')
await canvasLoc.waitFor({state: 'visible'})
console.log('canvas located')
await canvasLoc.waitFor({ state: 'visible' })

await canvasLoc.click({
button: 'left',
position: {x: 500, y: 500},
position: { x: 500, y: 500 },
})
console.log('canvas clicked')

await delay(20000)
await delay(5000)
return await analyser.stop()
}
2 changes: 0 additions & 2 deletions tests/run-tests.cts
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ async function runOnlineTests(names: string[]) {
'visual6502remix', // takes so long and is not automated yet
'heatmap', // takes so long
'image-convolute', // out of memory
// 'ffmpeg', // replay runs forever
'commanderkeen', // error
]
names = names.filter((n) => !filter.includes(n))
for (let name of names) {
Expand Down

0 comments on commit e80a18b

Please sign in to comment.