test: Cypress en Playwright e2e-suites voor login, agenda, cortex en verpleegrapportage
Configs voor beide runners, login via session caching, AI-chat mocks (SSE) voor deterministische Cortex-tests. Supabase local config toegevoegd. Auth-state en reports zijn gitignored. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
25
cypress.config.ts
Normal file
25
cypress.config.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { defineConfig } from 'cypress';
|
||||
import { config } from 'dotenv';
|
||||
|
||||
config({ path: '.env.local' });
|
||||
|
||||
export default defineConfig({
|
||||
e2e: {
|
||||
baseUrl: 'http://localhost:3000',
|
||||
specPattern: 'tests/cypress/**/*.cy.ts',
|
||||
supportFile: 'tests/cypress/support/e2e.ts',
|
||||
videosFolder: 'tests/cypress/videos',
|
||||
screenshotsFolder: 'tests/cypress/screenshots',
|
||||
viewportWidth: 1280,
|
||||
viewportHeight: 800,
|
||||
video: true,
|
||||
screenshotOnRunFailure: true,
|
||||
defaultCommandTimeout: 10000,
|
||||
pageLoadTimeout: 30000,
|
||||
experimentalModifyObstructiveThirdPartyCode: false,
|
||||
},
|
||||
env: {
|
||||
TEST_EMAIL: process.env.TEST_EMAIL,
|
||||
TEST_PASSWORD: process.env.TEST_PASSWORD,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user