(fix): use test.skip in beforeEach for CI-skipped E2E tests

This commit is contained in:
Jake Barnby
2026-04-01 18:18:47 +13:00
parent c78d2b37ac
commit 52ab027cc3
+4 -5
View File
@@ -1,8 +1,4 @@
import { test as base, expect, type Page } from '@playwright/test';
// @todo These tests require a pre-seeded project with dedicated database support.
// Skip in CI until a dedicated test environment is available.
const test = process.env.CI ? base.skip : base;
import { test, expect, type Page } from '@playwright/test';
const PROJECT_ID = '69c5061ee68ebce1a541';
const REGION = 'fra';
@@ -120,6 +116,9 @@ async function navigateToFirstDatabase(page: Page): Promise<boolean> {
test.describe('Dedicated databases', () => {
test.beforeEach(async ({ page }) => {
// @todo These tests require a pre-seeded project with dedicated database support.
// Skip in CI until a dedicated test environment is available.
test.skip(!!process.env.CI, 'Requires pre-seeded dedicated database environment');
await authenticate(page);
});