[5573] fix(frontend): Prevent agent app leaks in E2E tests - #5600
[5573] fix(frontend): Prevent agent app leaks in E2E tests#5600Jonesxq wants to merge 2 commits into
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@Jonesxq is attempting to deploy a commit to the agenta projects Team on Vercel. A member of the Team first needs to authorize it. |
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe Playwright API helpers now select current app revisions, exclude agent apps from app matching, and archive workflows. The skill-folder upload acceptance test registers created workflows for cleanup. Unit tests cover revision classification and selection. ChangesApp fixture hygiene
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 6d83ad4e-31d9-4078-b43f-94325739f110
📒 Files selected for processing (4)
web/oss/tests/playwright/acceptance/agent-skills/skill-folder-upload.spec.tsweb/oss/tests/playwright/unit/api-helpers.spec.tsweb/tests/tests/fixtures/base.fixture/apiHelpers/index.tsweb/tests/tests/fixtures/base.fixture/apiHelpers/types.d.ts
Summary
The delete-app acceptance test could select an agent app left behind by the skill-folder-upload test. Agent apps do not render on
/prompts, so the test timed out while waiting to hover a row that could never appear.This change isolates both sides of that failure:
getApp()queries each workflow's latest non-v0 revision and merges its flags before classifying completion, chat, and custom apps. Agent workflows are rejected first, so stale agents cannot enter prompt-only tests.Closes #5573.
Testing
Verified locally
pnpm lint-fixAdded or updated tests
The existing skill upload E2E now includes automatic workflow teardown. A focused unit spec verifies that revision-derived agent flags take precedence over completion, chat, and custom matching, covers prompt-app classification from latest revision flags, ignores v0 revisions, and retains valid revisions whose version is omitted.
QA follow-up
e2e-skill-upload-*workflow should remain active afterward..tsextension, and DOM library errors unrelated to this change.Demo
N/A. This changes test infrastructure only.
Checklist
Contributor Resources