Context
The @playwright/test bump from 1.59.1 → 1.60.0 (merged in PR #1511) added several APIs that could simplify or improve our E2E coverage.
Opportunities
test.abort() — cleaner way to bail out of a test on a fatal precondition than throwing.
locator.drop() — first-class file-drop interaction. Replace any manual dataTransfer orchestration in photo upload / drag-and-drop tests.
tracing.startHar() — capture network HAR within a trace; useful when diagnosing slow E2E flakes that involve API timing.
boxes option on aria snapshots — include bounding-box data in aria snapshots, helpful for responsive-layout assertions.
description option on getByRole() — improves test readability when multiple same-role locators need disambiguating.
pseudo option on toHaveCSS() — assert against ::before / ::after CSS without falling back to evaluate().
Suggested code paths
- File-drop / upload assertions in photo-related E2E tests → adopt
locator.drop().
- Flake diagnostics in
e2e/tests/budget/budget-source-move.spec.ts and photoAnnotation.spec.ts → consider tracing.startHar() to root-cause timing issues.
References
🤖 Filed by `/dependabot`
Context
The
@playwright/testbump from 1.59.1 → 1.60.0 (merged in PR #1511) added several APIs that could simplify or improve our E2E coverage.Opportunities
test.abort()— cleaner way to bail out of a test on a fatal precondition than throwing.locator.drop()— first-class file-drop interaction. Replace any manualdataTransferorchestration in photo upload / drag-and-drop tests.tracing.startHar()— capture network HAR within a trace; useful when diagnosing slow E2E flakes that involve API timing.boxesoption on aria snapshots — include bounding-box data in aria snapshots, helpful for responsive-layout assertions.descriptionoption ongetByRole()— improves test readability when multiple same-role locators need disambiguating.pseudooption ontoHaveCSS()— assert against::before/::afterCSS without falling back toevaluate().Suggested code paths
locator.drop().e2e/tests/budget/budget-source-move.spec.tsandphotoAnnotation.spec.ts→ considertracing.startHar()to root-cause timing issues.References
🤖 Filed by `/dependabot`