Skip to content

Adopt new @playwright/test 1.60.0 APIs in E2E suite #1572

@steilerDev

Description

@steilerDev

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`

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions