Skip to content

Commit

Permalink
Added test - commanderkeen: currently error, filtered in run-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yusungsim committed Dec 4, 2023
1 parent 01b76b1 commit 934967e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/online/commanderkeen/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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 canvasLoc = page.locator('#canvas')
await canvasLoc.waitFor({state: 'visible'})
console.log('canvas located')

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

await delay(20000)
}
1 change: 1 addition & 0 deletions tests/run-tests.cts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ async function runOnlineTests(names: string[]) {
'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 934967e

Please sign in to comment.