Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
ext-apps/playwright.config.ts at main · modelcontextprotocol/ext-apps · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
modelcontextprotocol
ext-apps
Repository navigation
Code
Issues
132
(132)
Pull requests
100
(100)
Discussions
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
ext-apps
/
playwright.config.ts
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
63 lines (62 loc) · 2.29 KB
main
Breadcrumbs
ext-apps
/
playwright.config.ts
Copy path
Top
File metadata and controls
Code
Blame
63 lines (62 loc) · 2.29 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import
{
defineConfig
,
devices
}
from
"@playwright/test"
;
export
default
defineConfig
(
{
testDir
:
"./tests/e2e"
,
// Exclude the screenshot generation spec from default runs.
// It writes examples/*/grid-cell.png as a side effect and is meant to be
// invoked only via `npm run generate:screenshots` (which sets
// GENERATE_SCREENSHOTS=1 to bypass this ignore).
testIgnore
:
process
.
env
.
GENERATE_SCREENSHOTS
?
[
]
:
[
"**/generate-grid-screenshots.spec.ts"
]
,
fullyParallel
:
true
,
forbidOnly
:
!
!
process
.
env
.
CI
,
retries
:
process
.
env
.
CI
?
2
:
0
,
workers
:
process
.
env
.
CI
?
2
:
16
,
// Parallel execution now works with factory pattern
timeout
:
30000
,
// 30s per test
reporter
:
process
.
env
.
CI
?
"list"
:
"html"
,
// Use platform-agnostic snapshot names (no -darwin/-linux suffix)
snapshotPathTemplate
:
"{testDir}/{testFileDir}/{testFileName}-snapshots/{arg}{ext}"
,
use
:
{
baseURL
:
"http://localhost:8080"
,
trace
:
"on-first-retry"
,
screenshot
:
"only-on-failure"
,
}
,
projects
:
[
{
name
:
"chromium"
,
use
:
{
...
devices
[
"Desktop Chrome"
]
,
// Use default Chromium everywhere for consistent screenshot rendering
// Run `npm run test:e2e:docker` locally for CI-identical results
...
(
process
.
env
.
PW_CHANNEL
?
{
channel
:
process
.
env
.
PW_CHANNEL
}
:
{
}
)
,
}
,
}
,
]
,
// Run examples server before tests
// Supports EXAMPLE=<folder> env var to run a single example (e.g., EXAMPLE=say-server npm run test:e2e)
webServer
:
{
command
:
"npm run examples:start"
,
url
:
"http://localhost:8080"
,
// Always start fresh servers to avoid stale state issues
reuseExistingServer
:
false
,
// 3 minutes to allow uv to download Python dependencies on first run
timeout
:
180000
,
// Pass through EXAMPLE env var to filter to a single server
env
:
{
...
process
.
env
,
EXAMPLE
:
process
.
env
.
EXAMPLE
??
""
,
// Let pdf-server fetch from the http://127.0.0.1 range-counting fixture
// (validateUrl rejects loopback HTTP unless this is set). Scoped to this
// server's check only — does not touch Node's TLS verification.
PDF_SERVER_ALLOW_LOOPBACK_HTTP
:
"1"
,
}
,
}
,
// Snapshot configuration
expect
:
{
toHaveScreenshot
:
{
maxDiffPixelRatio
:
0.06
,
animations
:
"disabled"
,
}
,
}
,
}
)
;
You can’t perform that action at this time.