Skip to content

Enhance E2E tests feature coverage#178

Closed
RickBarretto wants to merge 7 commits into
mainfrom
code-coverage
Closed

Enhance E2E tests feature coverage#178
RickBarretto wants to merge 7 commits into
mainfrom
code-coverage

Conversation

@RickBarretto

@RickBarretto RickBarretto commented Jun 30, 2026

Copy link
Copy Markdown
Member

Summary

This PR expands the Playwright E2E test suite across the public site, authentication flows, password recovery, signup validation, and the passenger app.

It also adds a reusable authenticated page fixture to reduce duplicated login setup across tests and updates Playwright timeout/worker settings to improve reliability locally and in CI.

image

Changes

  • Added E2E tests for the passenger app dashboard, profile, trip pages, settings modal, logout, and civil servant trip requests.
  • Added reusable authenticated Playwright fixture with loginAs helper.
  • Added login error coverage for invalid credentials.
  • Added password recovery flow tests, including cancellation, unknown account handling, PIN confirmation, and invalid PIN validation.
  • Added signup validation tests for mismatched passwords, missing legal consent, and non-institutional student emails.
  • Added public page tests for landing, project, team, legal documents, and not-found page recovery actions.
  • Updated Playwright config with longer global/assertion timeouts and controlled local/CI worker counts.

Testing

  • Added new Playwright E2E coverage under e2e/app, e2e/auth, and e2e/public.
  • Existing authentication and signup tests were extended.

@RickBarretto

Copy link
Copy Markdown
Member Author

Please, re-run the trigger tomorrow in other time.
I think this fails due to the time.

Notice the error is:

=========================== short test summary info ============================
FAILED apps/trips/tests/trips_tests.py::TripAPITestCase::test_cannot_create_trip_for_past_time_today - AssertionError: 201 != 400
FAILED apps/trips/tests/trips_tests.py::TripAPITestCase::test_cannot_create_trip_in_previous_days - AssertionError: 'trip_date' not found in {'route': [ErrorDetail(string='Não é possível agendar uma viagem para um horário que já passou hoje.', code='invalid')]}
FAILED apps/trips/tests/trips_tests.py::TripAPITestCase::test_driver_can_list_and_retrieve_own_in_progress_trip - AssertionError: 1 not found in []
FAILED apps/trips/tests/trips_tests.py::TripAPITestCase::test_driver_can_list_but_not_retrieve_another_occupied_trip - AssertionError: 1 not found in []
FAILED apps/trips/tests/trips_tests.py::TripAPITestCase::test_driver_list_contains_only_today_trips - AssertionError: 1 not found in []
================== 5 failed, 118 passed, 97 warnings in 3.66s ==================

I'm at 21h51 (GMT-3) right now. Do the math: 24h - 21h = 3h...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant