PyScript Terminal - the latest kind (#1816)

This commit is contained in:
Andrea Giammarchi
2023-10-31 15:16:15 +01:00
committed by GitHub
parent d9bf5cae12
commit 72f266532b
13 changed files with 282 additions and 227 deletions

View File

@@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test';
test('MicroPython display', async ({ page }) => {
await page.goto('http://localhost:8080/test/mpy.html');
await page.waitForSelector('html.done');
await page.waitForSelector('html.done.worker');
const body = await page.evaluate(() => document.body.innerText);
await expect(body.trim()).toBe([
'M-PyScript Main 1',
@@ -19,7 +19,7 @@ test('MicroPython hooks', async ({ page }) => {
logs.push(text);
});
await page.goto('http://localhost:8080/test/hooks.html');
await page.waitForSelector('html.done');
await page.waitForSelector('html.done.worker');
await expect(logs.join('\n')).toBe([
'main onReady',
'main onBeforeRun',