feat: enhance admin API helpers with CRUD operations for collections and seed data management

- Added functions for creating, updating, deleting, and listing collection entries in admin API.
- Introduced seed data management for consistent test content across tests.
- Updated global setup and teardown processes to ensure seeded content is created and cleaned up.
- Refactored existing tests to utilize seeded content for improved reliability and maintainability.
This commit is contained in:
2026-05-12 20:36:06 +00:00
parent 491f495c66
commit 1b24bb2157
17 changed files with 697 additions and 444 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import { defineConfig, devices } from "@playwright/test"
import { TEST_BASE_URL } from "./tests/fixtures/test-constants"
/**
* Playwright configuration for tibi-svelte projects.
@@ -42,7 +43,7 @@ export default defineConfig({
use: {
/* Read from .env PROJECT_NAME or override via CODING_URL env var */
baseURL: process.env.CODING_URL || "https://localhost:3000",
baseURL: TEST_BASE_URL,
headless: true,
ignoreHTTPSErrors: true,
trace: "on",