mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-08-06 11:01:55 +00:00
Use preinstalled chrome for tests in CI
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -13,4 +13,3 @@ jobs:
|
||||
with:
|
||||
node-version: 26.x
|
||||
publish-coverage: true
|
||||
install-playwright: true
|
||||
|
||||
@@ -41,7 +41,10 @@ export default defineConfig({
|
||||
test: {
|
||||
// Run tests in an actual browser
|
||||
browser: {
|
||||
provider: playwright(),
|
||||
provider: playwright({
|
||||
// In CI, this instructs playwright to use a pre-existing Chrome instance
|
||||
launchOptions: process.env.CI ? { channel: 'chrome' } : undefined,
|
||||
}),
|
||||
enabled: true,
|
||||
headless: true,
|
||||
screenshotFailures: false,
|
||||
|
||||
Reference in New Issue
Block a user