Add Pyodide lockFileURL test (#2209)

This commit is contained in:
Andrea Giammarchi
2024-10-07 13:23:05 +02:00
committed by GitHub
parent f827efe2fc
commit febbb031ac
8 changed files with 104 additions and 139 deletions

View File

@@ -121,3 +121,10 @@ test('Py and Mpy config["type"]', async ({ page }) => {
await page.goto('http://localhost:8080/tests/javascript/config_type.html');
await page.waitForSelector('html.mpy.py');
});
test('Pyodide lockFileURL vs CDN', async ({ page }) => {
await page.goto('http://localhost:8080/tests/javascript/pyodide-cache/');
await page.waitForSelector('html.done');
const body = await page.evaluate(() => document.body.textContent);
await expect(body).toBe('OK');
});