This directory contains 50 different Playwright tests designed to benchmark test runner performance. Each test is configured to take approximately 10-40 seconds to execute by performing various complex operations.
- 50 unique test files with varying complexity
- Each test performs a variety of operations including:
- DOM manipulations
- Network requests
- CPU-intensive computations
- Form interactions
- Canvas operations
- Large data set scrolling
- Resource loading simulations
Tests are organized into combinations of:
- Test types (api, ui, performance, interaction, navigation, form, accessibility, visual, component, e2e)
- Feature areas (dashboard, authentication, user-management, settings, reports, analytics, search, notifications, billing, profile)
Tests can be run using the standard Playwright commands:
# Run all tests
npx playwright test
# Run a specific test
npx playwright test test-001.spec.ts
# Run a subset of tests
npx playwright test test-0[1-5]*.spec.tsAll tests use the utility functions defined in test-utils.ts which provide common complex operations:
runComplexTestScenario: Main test scenario runner with configurable complexitysimulateNetworkDelay: Simulates network latencysimulateHeavyComputation: Performs CPU-intensive operationsperformComplexDOMOperations: Manipulates the DOMfillFormWithValidation: Simulates form interactionssimulateApiRequests: Mocks API requests with variable response timesperformCanvasOperations: Executes canvas drawing operationssimulateLargeDataInteraction: Creates and interacts with large datasetsloadHeavyResources: Simulates loading of heavy resources
If you need to regenerate the test files, run:
bun generate-test-files.tsTests have a complexity factor that scales based on the test number modulo 10 + 1 (values 1-10). This ensures a variety of test durations within the 20-90 second range.