diff --git a/tests/online/wasmsh/test.js b/tests/online/wasmsh/test.js new file mode 100644 index 00000000..031de2e6 --- /dev/null +++ b/tests/online/wasmsh/test.js @@ -0,0 +1,19 @@ +import { delay } from '../../../dist/tests/test-utils.cjs' + +export default async function test(analyser) { + const url = 'https://webassembly.sh/' + const page = await analyser.start(url, { headless: false }) + + const textInput = page.locator('#wasm-terminal') + await textInput.waitFor({state: 'visible'}) + console.log(1) + + await textInput.pressSequentially('quickjs\n') + await delay(100) + + + + await delay(1000) + + return await analyser.stop() +}