[3.14] gh-124621: Emscripten: Add smoke test for using pyrepl in Chrome (GH-137004) (#137067)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: Zachary Ware <zach@python.org>
This commit is contained in:
Miss Islington (bot) 2025-07-29 22:09:47 +02:00 committed by GitHub
parent 40632ad7ba
commit 64eb54062d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 753 additions and 0 deletions

View file

@ -0,0 +1,22 @@
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: '.',
forbidOnly: true,
retries: 2,
reporter: process.env.CI ? 'dot' : 'html',
use: {
baseURL: 'http://localhost:8787',
trace: 'on-first-retry',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
webServer: {
command: 'npx http-server ../../../../cross-build/wasm32-emscripten/build/python/web_example_pyrepl_jspi/ -p 8787',
url: 'http://localhost:8787',
},
});