PHP Classes

File: playwright.config.js

Recommend this page to a friend!
  Packages of Alberto Arena   Laravel Truss   playwright.config.js   Download  
File: playwright.config.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Laravel Truss
View a diagram of a Laravel application models
Author: By
Last change:
Date: 9 days ago
Size: 755 bytes
 

Contents

Class file image Download
import { defineConfig, devices } from '@playwright/test'; // Drives the real client (resources/js/truss.js) in a headless browser against // a mocked /api/schema, verifying the browser-only concerns Vitest can't: // actual Mermaid rendering, filter/focus/label interaction, zoom, connection // switching, and the fallback / large-schema banners. export default defineConfig({ testDir: './tests/e2e', timeout: 30_000, fullyParallel: true, use: { baseURL: 'http://localhost:5178', }, webServer: { command: 'node tests/e2e/serve.mjs', url: 'http://localhost:5178/tests/e2e/harness.html', reuseExistingServer: true, timeout: 20_000, }, projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'] } }, ], });