Skip to content

feat: Review and increase E2E test coverage#247

Open
kumaradityaraj wants to merge 5 commits into
open-workflow-specification:mainfrom
kumaradityaraj:e2eTests
Open

feat: Review and increase E2E test coverage#247
kumaradityaraj wants to merge 5 commits into
open-workflow-specification:mainfrom
kumaradityaraj:e2eTests

Conversation

@kumaradityaraj

@kumaradityaraj kumaradityaraj commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Closes #98

Description

Expanded the Playwright end-to-end test coverage for workflow diagram rendering and validation scenarios.

Added diagram rendering tests

  • Verify rendering of Start and End nodes.
  • Verify rendering of workflow task nodes (e.g. Raise, Listen).
  • Verify rendering of container nodes (e.g. For).
  • Verify node metadata such as labels, types, and badges.
  • Verify diagram edges are rendered correctly.
  • Verify validation/error indicators are displayed on nodes when applicable.

Added validation tests

  • Verify document-level validation errors are displayed in the sidebar.
  • Verify container-level validation errors are displayed, including:
    • Error count
    • Validation messages
    • Associated field information

To test it

run pnpm test-e2e

Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Expands Playwright E2E coverage for the Serverless Workflow diagram editor by adding new Storybook-driven scenarios around node rendering and validation error presentation.

Changes:

  • Added new E2E specs for conditional task, for-loop container rendering, and listen/foreach variants.
  • Added an E2E spec asserting document-level validation errors are shown in the sidebar.
  • Added a Changesets entry for @serverlessworkflow/diagram-editor.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/serverless-workflow-diagram-editor/tests-e2e/validation-error.spec.ts New E2E test for document-level validation errors in the sidebar.
packages/serverless-workflow-diagram-editor/tests-e2e/forever-foreach.spec.ts New E2E test for listen node rendering with validation error indicator/badge.
packages/serverless-workflow-diagram-editor/tests-e2e/for-loop.spec.ts New E2E test for for container rendering and nested listen node/badge.
packages/serverless-workflow-diagram-editor/tests-e2e/conditional-task.spec.ts New E2E test for conditional workflow rendering, start/end nodes, and edge label.
.changeset/e2e-tests.md Versioning/release-note entry for the diagram-editor package.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/serverless-workflow-diagram-editor/tests-e2e/for-loop.spec.ts Outdated
Comment thread packages/serverless-workflow-diagram-editor/tests-e2e/validation-error.spec.ts Outdated
Comment thread .changeset/e2e-tests.md Outdated
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>

@fantonangeli fantonangeli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description should start with:

Closes https://github.com/open-workflow-specification/editor/issues/98

so GH will automatically connect the PR to the issue

Comment thread .changeset/e2e-tests.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR introduces tests but has no changes for the user, so I don't think we should add this changeset.
Wdyt?

Comment thread packages/serverless-workflow-diagram-editor/tests-e2e/conditional-task.spec.ts Outdated
Comment thread packages/serverless-workflow-diagram-editor/tests-e2e/validation-error.spec.ts Outdated
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
@netlify

netlify Bot commented Jul 13, 2026

Copy link
Copy Markdown

Deploy Preview for swf-editor ready!

Name Link
🔨 Latest commit 44ce1de
🔍 Latest deploy log https://app.netlify.com/projects/swf-editor/deploys/6a54d9149a905d00085dd887
😎 Deploy Preview https://deploy-preview-247--swf-editor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Review and increase E2E test coverage

3 participants