Implement Low-Priority E2E Coverage (Regression Nets + Evidence Workflow) #45
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: Implement Low-Priority E2E Coverage (Regression Nets + Evidence Workflow)
Objective
Add low-priority Playwright coverage focused on:
Do this with strict state isolation and robust selectors, applying lessons learned from recent flaky failures.
Scope
A) Cross-role smoke pack
Create a small, fast suite that validates core access and navigation behavior for:
e2e_user)e2e_admin)Recommended file:
e2e/smoke-cross-role.test.tsScenarios:
/trips/admin/usersis accessibleB) Video evidence workflow check
Create one tiny tagged test proving the “record + attach” path works for AI-agent evidence.
Recommended file:
e2e/evidence-workflow.test.tsScenario:
@evidencein titleCritical Reliability Rules (Non-Negotiable)
e2e_user/e2e_admin.Date.now()+ random short suffix..check()pitfalls.check()./new.waitForTimeout.expect(...).toBeVisible(),toHaveURL,waitForResponse, etc.Selector Guidelines
getByRolegetByLabelgetByTextexact: trueonly when truly unambiguous.AddvsAdd item), disambiguate with exact role/name or context-scoped locator.Helper Reuse
Use existing helpers in:
e2e/helpers/auth.tse2e/helpers/trip.tsIf helper changes are needed, keep them backward compatible and verify impacted tests.
Commands
Run low-priority tests only
bunx playwright test e2e/smoke-cross-role.test.ts e2e/evidence-workflow.test.tsOne-off evidence run with artifacts
PW_TRACE_MODE=on PW_VIDEO_MODE=on bunx playwright test e2e/evidence-workflow.test.ts -g "@evidence"Open report
bunx playwright show-reportEvidence Upload Workflow (manual/agent follow-up)
After running evidence test:
test-results/**/video.webmteaor API)Acceptance Criteria
PR create failed.
Command:
tea pulls create --login ai-agent --repo campbellwireless/trips --head "ai-agent/45-implement-low-priority-e2e-coverage-regression-nets-evidence-workflow" --base main --title "trips) add low-priority e2e smoke coverage" --body "$(cat <<'EOF'
Summary
Testing
Notes
PW_TRACE_MODE=on PW_VIDEO_MODE=on bunx playwright test e2e/evidence-workflow.test.ts -g \"@evidence\"test-results/**/video.webmEOF
)" --assignees shaun
Stderr:
Incorrect Usage: flag provided but not defined: -body
Error: flag provided but not defined: -body
AI orchestration has started.
ai-agent/45-implement-low-priority-e2e-coverage-regression-nets-evidence-workflowses_3781c7220ffeQjLQwWc4Gj4kN9When the worker needs clarification, it should comment here and pause until a reply arrives.