Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

silent info log during install only install headless chromium

ThieryMichelf4fabe2a61cf
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index b6d3f223..90fe49c6 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -86,7 +86,7 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
- run: npx playwright install --with-deps chromium
+ run: npx playwright install --with-deps chromium-headless-shell 1>/dev/null
- name: Install wait-on and serve
run: npm install -g wait-on serve
- name: Run Playwright tests
diff --git a/makefile b/makefile
index 13090af2..432899c2 100644
--- a/makefile
+++ b/makefile
@@ -51,7 +51,7 @@ start-supabase-e2e: ## start a separate supabase instance for e2e (fresh DB ever
cp -r supabase/templates .supabase-e2e/supabase/templates
cp supabase/seed.sql .supabase-e2e/supabase/seed.sql
cp supabase/signing_keys.json .supabase-e2e/supabase/signing_keys.json
- npx supabase start --workdir .supabase-e2e
+ npx supabase start --workdir .supabase-e2e 1>/dev/null
stop-supabase-e2e: ## stop the e2e supabase instance
npx supabase stop --workdir .supabase-e2e --no-backup
@@ -66,7 +66,7 @@ build: ## build the app
npm run build
build-e2e: ## build the app in e2e mode (with the e2e supabase config)
- npm run build:e2e
+ npm run build:e2e 1>/dev/null
build-demo: ## build the app in demo mode
npm run build:demo
diff --git a/playwright.config.ts b/playwright.config.ts
index 31a01a2e..d1b4fb91 100644
--- a/playwright.config.ts
+++ b/playwright.config.ts
@@ -39,13 +39,19 @@ export default defineConfig({
projects: [
{
name: "chromium",
- use: { ...devices["Desktop Chrome"] },
+ use: {
+ ...devices["Desktop Chrome"],
+ ...(process.env.CI && { channel: "chromium-headless-shell" }),
+ },
},
/* Test against mobile viewports. */
{
name: "Mobile Chrome",
- use: { ...devices["Pixel 5"] },
+ use: {
+ ...devices["Pixel 5"],
+ ...(process.env.CI && { channel: "chromium-headless-shell" }),
+ },
},
// Uncomment to test against additional devices