- Use data-testid attributes to target specific day cards in availability tests - Wait for networkidle before interacting with page elements - Set up PUT and GET response listeners before triggering actions - Add retry logic for availability API in booking tests - Fix appointments test to handle multiple 'Booked' elements with .first() - Increase parallel workers to 12 for faster test execution
18 lines
410 B
TypeScript
18 lines
410 B
TypeScript
import { defineConfig } from "@playwright/test";
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
// Run tests sequentially to avoid database conflicts
|
|
workers: 12,
|
|
// Ensure tests within a file run in order
|
|
fullyParallel: false,
|
|
webServer: {
|
|
command: "npm run dev",
|
|
url: "http://localhost:3000",
|
|
reuseExistingServer: true,
|
|
},
|
|
use: {
|
|
baseURL: "http://localhost:3000",
|
|
},
|
|
});
|
|
|