Skip to content

Fix E2E test broken logout navigation in dispute flow #473

Description

@dotunv

Description

The Playwright E2E test for the dispute flow navigates to a /logout route that does not exist in the React Router configuration. This would result in a 404 or the NotFound page being displayed instead of actually logging out.

Current Behavior

The test navigates to /logout expecting to log out, but this route is not defined in the router.

Expected Behavior

The test should use the actual logout mechanism:

  1. Click the user menu/avatar in the navbar
  2. Click the logout button
  3. Verify redirect to home/login page

Proposed Fix

  1. Update the dispute flow test to use the UI logout flow instead of direct navigation
  2. Alternatively, add a /logout route that triggers the logout action (if this is a desired pattern)

Affected File

Playwright E2E test file containing the dispute flow test.

Acceptance Criteria

  • Dispute flow E2E test uses valid logout mechanism
  • Test passes without navigation errors
  • Logout actually clears the session

Labels

testing frontend bug

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26bugSomething isn't workingfrontendFrontend / UI worktestingTests and test coverage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions