Skip to content

feat: Review and increase E2E test coverage#247

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

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

Conversation

@kumaradityaraj

Copy link
Copy Markdown
Contributor

Closes - Review and increase E2E test coverage

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>
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.

2 participants