diff --git a/.github/workflows/e2e-tests-split.yml b/.github/workflows/e2e-tests-split.yml index f6480e28..fab85ec3 100644 --- a/.github/workflows/e2e-tests-split.yml +++ b/.github/workflows/e2e-tests-split.yml @@ -236,7 +236,8 @@ jobs: npx playwright test \ --project=chromium \ - tests/security-enforcement/ + tests/security-enforcement/ \ + tests/security/ SHARD_END=$(date +%s) echo "SHARD_END=$SHARD_END" >> $GITHUB_ENV @@ -401,7 +402,8 @@ jobs: npx playwright test \ --project=firefox \ - tests/security-enforcement/ + tests/security-enforcement/ \ + tests/security/ SHARD_END=$(date +%s) echo "SHARD_END=$SHARD_END" >> $GITHUB_ENV @@ -566,7 +568,8 @@ jobs: npx playwright test \ --project=webkit \ - tests/security-enforcement/ + tests/security-enforcement/ \ + tests/security/ SHARD_END=$(date +%s) echo "SHARD_END=$SHARD_END" >> $GITHUB_ENV @@ -726,7 +729,6 @@ jobs: tests/integration \ tests/manual-dns-provider.spec.ts \ tests/monitoring \ - tests/security \ tests/settings \ tests/tasks @@ -852,6 +854,14 @@ jobs: - name: Install dependencies run: npm ci + - name: Install Playwright Chromium (required by security-tests dependency) + run: | + echo "📦 Installing Chromium (required by security-tests dependency)..." + npx playwright install --with-deps chromium + EXIT_CODE=$? + echo "✅ Install command completed (exit code: $EXIT_CODE)" + exit $EXIT_CODE + - name: Install Playwright Firefox run: | echo "📦 Installing Firefox..." @@ -882,7 +892,6 @@ jobs: tests/integration \ tests/manual-dns-provider.spec.ts \ tests/monitoring \ - tests/security \ tests/settings \ tests/tasks @@ -1008,6 +1017,14 @@ jobs: - name: Install dependencies run: npm ci + - name: Install Playwright Chromium (required by security-tests dependency) + run: | + echo "📦 Installing Chromium (required by security-tests dependency)..." + npx playwright install --with-deps chromium + EXIT_CODE=$? + echo "✅ Install command completed (exit code: $EXIT_CODE)" + exit $EXIT_CODE + - name: Install Playwright WebKit run: | echo "📦 Installing WebKit..." @@ -1038,7 +1055,6 @@ jobs: tests/integration \ tests/manual-dns-provider.spec.ts \ tests/monitoring \ - tests/security \ tests/settings \ tests/tasks diff --git a/tests/security/audit-logs.spec.ts b/tests/security/audit-logs.spec.ts index 6a5e9cee..604625da 100644 --- a/tests/security/audit-logs.spec.ts +++ b/tests/security/audit-logs.spec.ts @@ -14,7 +14,7 @@ import { test, expect, loginUser } from '../fixtures/auth-fixtures'; import { waitForLoadingComplete, waitForToast } from '../utils/wait-helpers'; -test.describe('Audit Logs', () => { +test.describe('Audit Logs @security', () => { test.beforeEach(async ({ page, adminUser }) => { await loginUser(page, adminUser); await waitForLoadingComplete(page); diff --git a/tests/security/crowdsec-config.spec.ts b/tests/security/crowdsec-config.spec.ts index 7f2ec0f7..fd637b5b 100644 --- a/tests/security/crowdsec-config.spec.ts +++ b/tests/security/crowdsec-config.spec.ts @@ -14,7 +14,7 @@ import { test, expect, loginUser } from '../fixtures/auth-fixtures'; import { waitForLoadingComplete, waitForToast } from '../utils/wait-helpers'; -test.describe('CrowdSec Configuration', () => { +test.describe('CrowdSec Configuration @security', () => { test.beforeEach(async ({ page, adminUser }) => { await loginUser(page, adminUser); await waitForLoadingComplete(page); diff --git a/tests/security/rate-limiting.spec.ts b/tests/security/rate-limiting.spec.ts index 1070fdd1..3b9abe2b 100644 --- a/tests/security/rate-limiting.spec.ts +++ b/tests/security/rate-limiting.spec.ts @@ -13,7 +13,7 @@ import { test, expect, loginUser } from '../fixtures/auth-fixtures'; import { waitForLoadingComplete, waitForToast } from '../utils/wait-helpers'; -test.describe('Rate Limiting Configuration', () => { +test.describe('Rate Limiting Configuration @security', () => { test.beforeEach(async ({ page, adminUser }) => { await loginUser(page, adminUser); await waitForLoadingComplete(page); diff --git a/tests/security/security-dashboard.spec.ts b/tests/security/security-dashboard.spec.ts index 66c9e30d..7918d5fd 100644 --- a/tests/security/security-dashboard.spec.ts +++ b/tests/security/security-dashboard.spec.ts @@ -22,7 +22,7 @@ import { CapturedSecurityState, } from '../utils/security-helpers'; -test.describe('Security Dashboard', () => { +test.describe('Security Dashboard @security', () => { test.beforeEach(async ({ page, adminUser }) => { await loginUser(page, adminUser); await waitForLoadingComplete(page); diff --git a/tests/security/security-headers.spec.ts b/tests/security/security-headers.spec.ts index 864e75df..3a6235fa 100644 --- a/tests/security/security-headers.spec.ts +++ b/tests/security/security-headers.spec.ts @@ -14,7 +14,7 @@ import { test, expect, loginUser } from '../fixtures/auth-fixtures'; import { waitForLoadingComplete, waitForToast } from '../utils/wait-helpers'; -test.describe('Security Headers Configuration', () => { +test.describe('Security Headers Configuration @security', () => { test.beforeEach(async ({ page, adminUser }) => { await loginUser(page, adminUser); await waitForLoadingComplete(page); diff --git a/tests/security/waf-config.spec.ts b/tests/security/waf-config.spec.ts index 83da17c7..1f70b176 100644 --- a/tests/security/waf-config.spec.ts +++ b/tests/security/waf-config.spec.ts @@ -15,7 +15,7 @@ import { test, expect, loginUser } from '../fixtures/auth-fixtures'; import { waitForLoadingComplete, waitForToast } from '../utils/wait-helpers'; import { clickSwitch } from '../utils/ui-helpers'; -test.describe('WAF Configuration', () => { +test.describe('WAF Configuration @security', () => { test.beforeEach(async ({ page, adminUser }) => { await loginUser(page, adminUser); await waitForLoadingComplete(page);