From e80a18bbfc957158f079caf37b89abe96dc5afc1 Mon Sep 17 00:00:00 2001 From: Jakob Getz Date: Tue, 5 Dec 2023 13:52:46 +0900 Subject: [PATCH] make commander keen work --- tests/online/commanderkeen/test.js | 13 ++++++------- tests/run-tests.cts | 2 -- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/tests/online/commanderkeen/test.js b/tests/online/commanderkeen/test.js index 945ffe5b..af202684 100644 --- a/tests/online/commanderkeen/test.js +++ b/tests/online/commanderkeen/test.js @@ -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() } diff --git a/tests/run-tests.cts b/tests/run-tests.cts index cd8ed750..5a0bb1ac 100644 --- a/tests/run-tests.cts +++ b/tests/run-tests.cts @@ -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) {