Skip to content

test: add duplicate, export, delete and switch app mode E2E scenarios#35277

Merged
lyzno1 merged 2 commits intotest/e2e-app-management-p1from
test/e2e-app-management-p2
Apr 16, 2026
Merged

test: add duplicate, export, delete and switch app mode E2E scenarios#35277
lyzno1 merged 2 commits intotest/e2e-app-management-p1from
test/e2e-app-management-p2

Conversation

@Jingyi-Dify
Copy link
Copy Markdown
Contributor

Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

Adds four E2E scenarios covering the core app card operations in the
apps console. All scenarios use the API seeding pattern introduced in
the infrastructure PR (test/e2e-app-management-p1) — no UI flows are
used for preconditions.

  • Duplicate: asserts the copy appears in the apps console list
  • Export DSL: asserts a .yml file named after the app is
    downloaded; uses expect.poll to handle async blob timing
  • Delete: scoped to role="alertdialog" (Base UI), types the app
    name to unlock the confirm button, asserts card disappears
  • Switch to Workflow Orchestrate: only available for chat and
    completion modes; seeds a chat app, confirms via role="dialog"
    (Headless UI), asserts navigation to /app/{id}/workflow, and
    captures the new app ID for automatic cleanup

Test plan

  • pnpm -C e2e check passes
  • Depends on: test/e2e-app-management-p1
  • CI E2E covers @apps @core scenarios end-to-end

Screenshots

Before After
... ...

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran make lint && make type-check (backend) and cd web && pnpm exec vp staged (frontend) to appease the lint gods

@Jingyi-Dify Jingyi-Dify requested review from iamjoel and lyzno1 April 16, 2026 00:37
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 16, 2026
@lyzno1 lyzno1 changed the title test(e2e): add duplicate, export, delete and switch app mode E2E scenarios test(e2e): add duplicate, export, delete and switch app mode E2E scenarios Apr 16, 2026
@Jingyi-Dify Jingyi-Dify changed the title test(e2e): add duplicate, export, delete and switch app mode E2E scenarios test: add duplicate, export, delete and switch app mode E2E scenarios Apr 16, 2026
@lyzno1 lyzno1 merged commit 30af251 into test/e2e-app-management-p1 Apr 16, 2026
6 of 7 checks passed
@lyzno1 lyzno1 deleted the test/e2e-app-management-p2 branch April 16, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-revision size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants