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:
|
with:
|
||||||
node-version: 26.x
|
node-version: 26.x
|
||||||
publish-coverage: true
|
publish-coverage: true
|
||||||
install-playwright: true
|
|
||||||
|
|||||||
@@ -41,7 +41,10 @@ export default defineConfig({
|
|||||||
test: {
|
test: {
|
||||||
// Run tests in an actual browser
|
// Run tests in an actual browser
|
||||||
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,
|
enabled: true,
|
||||||
headless: true,
|
headless: true,
|
||||||
screenshotFailures: false,
|
screenshotFailures: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user