From ee32dedf61e2d2ab6704fd40eec2a9e436f2114f Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 5 Feb 2026 15:38:25 +0000 Subject: Enhance testing and integration for checkbox-list custom field - Updated Gitea workflow to trigger on pushes to the master branch and refined job configurations for testing and E2E processes. - Added Jest and Playwright configurations for integration and E2E testing. - Introduced new checkbox-item API with corresponding controller, service, and routes. - Created integration tests for the checkbox-list functionality, ensuring proper handling of required fields and default values. - Updated package.json and package-lock.json to include necessary dependencies for testing. --- playground/playwright.config.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 playground/playwright.config.ts (limited to 'playground/playwright.config.ts') diff --git a/playground/playwright.config.ts b/playground/playwright.config.ts new file mode 100644 index 0000000..0cc4d72 --- /dev/null +++ b/playground/playwright.config.ts @@ -0,0 +1,17 @@ +import { defineConfig } from '@playwright/test'; + +const baseURL = process.env.PLAYWRIGHT_BASE_URL ?? 'http://127.0.0.1:1337'; + +export default defineConfig({ + testDir: './e2e', + timeout: 120_000, + expect: { + timeout: 10_000, + }, + retries: process.env.CI ? 1 : 0, + use: { + baseURL, + headless: true, + trace: 'on-first-retry', + }, +}); -- cgit v1.2.3