Add High-Priority Playwright E2E Coverage for Trips #41
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Task: Add High-Priority Playwright E2E Coverage for Trips
Objective
Implement high-priority e2e scenarios in
tripsusing Playwright, with deterministic seeded data and optional one-off video capture for issue evidence.Existing Context
playwright.config.tse2e/e2e/setup/seed-db.tse2e/setup/test-users.tse2e_user/e2e-regular-password123e2e_admin/e2e-admin-password123e2e/auth.test.tse2e/trip-planning.test.tsRequirements
Add tests for:
Keep tests deterministic:
Date.now()) for usernames/emails/trip namesPrefer robust locators:
getByRole,getByLabel,getByText,aria-labelMaintain existing style:
Test Cases to Implement
A) Login callback/redirect regression
File:
e2e/auth-callback.test.ts(or fold intoe2e/auth.test.ts)Scenario:
/trips/upcoming./trips/login./trips/auth/...)./trips/dashboardor/trips/upcoming) and never auth callback endpoint.Goal:
B) Admin creates local user, new user signs in
File:
e2e/admin-local-user-flow.test.tsScenario:
e2e_admin)./trips/admin/users.Add User.e2e_new_user_${timestamp})/trips/admin/usersredirects away).Goal:
C) Auth source display + local credentials action visibility/behavior
File:
e2e/admin-auth-source.test.tsScenario:
/trips/admin/users.Auth sourcecolumn renders expected labels for local users.Set local passwordaction (aria-label="Set local password") for a user.Goal:
D) Future trip with unknown end date and plans visible
File:
e2e/trip-planning.test.ts(extend existing) ore2e/trip-planning-minimal-future.test.tsScenario:
Goal:
Refactoring Expectations
e2e/helpers/(optional, keep simple).trip-planning.test.tsalready covers D sufficiently, keep/clean it instead of creating duplicate scenario.Execution Commands
bunx playwright testPW_TRACE_MODE=on PW_VIDEO_MODE=on bunx playwright test e2e/admin-local-user-flow.test.tsbunx playwright show-reportAcceptance Criteria
--video=onCLI flag (unsupported here); must use env vars (PW_VIDEO_MODE,PW_TRACE_MODE).Deliverables
e2e/e2e/helpers/(if needed)test-results/.../video.webm)PR create attempt failed.
Command:
tea pulls create --login ai-agent --repo campbellwireless/trips --head "ai-agent/41-add-high-priority-playwright-e2e-coverage-for-trips" --base main --title "Add high-priority Playwright trips coverage" --body "## Summary\n- add auth callback redirect coverage for protected routes\n- add admin user provisioning flow with new user sign-in\n- validate auth source display and local password drawer behavior\n- clarify trip planning coverage for unknown end date\n\n## Video Evidence\n- Capture command: \n- Artifact path: \n\n## Testing\n- Not run (bunx not found in environment)" --assignees shaun
Stderr:
Incorrect Usage: flag provided but not defined: -body
Error: flag provided but not defined: -body
AI orchestration has started.
ai-agent/41-add-high-priority-playwright-e2e-coverage-for-tripsses_378c2065affevTJCQ4vgcH1FoQWhen the worker needs clarification, it should comment here and pause until a reply arrives.