test: add API seeding infrastructure and app creation E2E scenarios#35276
Merged
test: add API seeding infrastructure and app creation E2E scenarios#35276
Conversation
0749abd to
cd8b989
Compare
- delete: use getByTitle to avoid strict mode violation from closing AlertDialog span
- duplicate: remove getByRole('dialog').toBeVisible() - HeadlessUI Dialog wrapper has
zero height (fixed-position children), Playwright sees it as hidden; click button directly
- switch: same HeadlessUI dialog visibility fix; click 'Start switch' button directly
- export: use chat app in Given step - new workflow apps have no draft, causing
fetchWorkflowDraft to return 404 and silently abort the export
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
180a639 to
d0c06a0
Compare
lyzno1
approved these changes
Apr 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Fixes #<issue number>.Summary
e2e/support/api.tswithcreateTestApp/deleteTestApphelpers that call the console API directly using the stored Playwright
session, enabling fast and isolated test-data setup without UI flows
DifyWorldwith per-scenario state for app name tracking,seeded app ID cleanup, and download capture
Afterhook so every seeded app isdeleted after each scenario, regardless of pass/fail
modes: Agent, Chatflow (Advanced Chat), and Text Generator (Completion)
Test plan
pnpm -C e2e checkpasses (type-check + lint)@apps @coretag scenariosScreenshots
Checklist
make lint && make type-check(backend) andcd web && pnpm exec vp staged(frontend) to appease the lint gods