mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[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:
parent
40632ad7ba
commit
64eb54062d
8 changed files with 753 additions and 0 deletions
22
Tools/wasm/emscripten/browser_test/playwright.config.ts
Normal file
22
Tools/wasm/emscripten/browser_test/playwright.config.ts
Normal 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',
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue