Skip to content

Playwright Setup#60

Open
kumaradityaraj wants to merge 21 commits intoserverlessworkflow:mainfrom
kumaradityaraj:playwright
Open

Playwright Setup#60
kumaradityaraj wants to merge 21 commits intoserverlessworkflow:mainfrom
kumaradityaraj:playwright

Conversation

@kumaradityaraj
Copy link
Copy Markdown
Contributor

@kumaradityaraj kumaradityaraj commented Apr 13, 2026

Close Set up Playwright end-to-end testing

For testing :-

  1. Navigate to the package
  2. run pnpm test-e2e or pnpm test-e2e:ui

Updated version of Setup:-

  1. The tests has been shifted in the package itself within tests-e2e directory.
  2. For e2e tests the file name must be named in this particular regex- fileName.e2e.ts
  3. Make sure in playwright.config.ts you set the above file structure for playwright to recognise it else it fails to start because vite tests are also present in the same directory.
    testDir: "./tests-e2e", testMatch: "**/*.e2e.ts"
  4. For CI, Playwright gets installed in the starting itself at the time of building which can be seen in base package.json

Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
Copilot AI review requested due to automatic review settings April 13, 2026 06:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a Playwright-based E2E testing package to the monorepo and includes an initial test validating the Diagram Editor Storybook render.

Changes:

  • Introduces a new @serverlessworkflow/playwright workspace package with Playwright config and scripts.
  • Adds an initial E2E spec for the Diagram Editor (Storybook iframe route).
  • Ignores Playwright output artifacts in .gitignore.

Reviewed changes

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

Show a summary per file
File Description
packages/playwright/tests/diagram-editor.spec.ts Adds an initial E2E test against the Diagram Editor Storybook iframe.
packages/playwright/playwright.config.ts Configures Playwright base URL and webServer startup for local runs.
packages/playwright/package.json Adds a new workspace package with Playwright dev dependency and scripts.
packages/playwright/README.md Documents how to run the Playwright tests in the monorepo.
.gitignore Ignores Playwright reports/results directories.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

Comment thread packages/playwright/package.json Outdated
Comment thread packages/playwright/playwright.config.ts
Comment thread packages/playwright/playwright.config.ts Outdated
Comment thread packages/playwright/tests/diagram-editor.spec.ts
Comment thread packages/playwright/README.md Outdated
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
@kumaradityaraj
Copy link
Copy Markdown
Contributor Author

@fantonangeli @lornakelly @handreyrc Please review this PR. Thank you.

Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
Copilot AI review requested due to automatic review settings April 14, 2026 09:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 11 changed files in this pull request and generated 7 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

Comment thread packages/playwright/package.json Outdated
Comment thread packages/playwright/tests/diagram-editor.spec.ts Outdated
Comment thread packages/serverless-workflow-diagram-editor/package.json Outdated
Comment thread packages/serverless-workflow-diagram-editor/package.json Outdated
Comment thread packages/serverless-workflow-diagram-editor/vitest.config.ts Outdated
Comment thread packages/serverless-workflow-diagram-editor/tests/e2e/diagram-editor.e2e.ts Outdated
Comment thread packages/serverless-workflow-diagram-editor/playwright.config.ts
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
Copilot AI review requested due to automatic review settings April 14, 2026 09:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

Comment thread packages/serverless-workflow-diagram-editor/tests/e2e/diagram-editor.e2e.ts Outdated
Comment thread packages/serverless-workflow-diagram-editor/package.json Outdated
Comment thread .github/workflows/ci_build.yaml Outdated
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
Copilot AI review requested due to automatic review settings April 14, 2026 09:29
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 6 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
@kumaradityaraj
Copy link
Copy Markdown
Contributor Author

@fantonangeli @lornakelly @handreyrc Please review this PR.

Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
Copilot AI review requested due to automatic review settings April 15, 2026 07:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 8 changed files in this pull request and generated 6 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

Comment thread packages/serverless-workflow-diagram-editor/package.json
Comment thread packages/serverless-workflow-diagram-editor/playwright.config.ts Outdated
Comment thread pnpm-lock.yaml
Comment thread package.json Outdated
Comment thread .github/workflows/ci_build.yaml Outdated
Copilot AI review requested due to automatic review settings April 15, 2026 11:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 8 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

Comment thread pnpm-lock.yaml
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
Copilot AI review requested due to automatic review settings April 15, 2026 12:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 8 changed files in this pull request and generated 2 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

Comment thread packages/serverless-workflow-diagram-editor/playwright.config.ts
Comment thread pnpm-lock.yaml
kumaradityaraj and others added 2 commits April 16, 2026 13:23
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
Signed-off-by: fantonangeli <fabrizio.antonangeli@gmail.com>
Copilot AI review requested due to automatic review settings April 16, 2026 08:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

Comment thread packages/serverless-workflow-diagram-editor/vitest.config.ts Outdated
Comment thread packages/serverless-workflow-diagram-editor/playwright.config.ts
Comment thread package.json
Comment thread pnpm-lock.yaml
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
@kumaradityaraj
Copy link
Copy Markdown
Contributor Author

@fantonangeli @lornakelly @handreyrc i think its ready for the final review.

@fantonangeli
Copy link
Copy Markdown
Member

@kumaradityaraj would you mind a last try with this: https://github.com/serverlessworkflow/editor/pull/60/changes#r3091910499 ?

Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
Copilot AI review requested due to automatic review settings April 16, 2026 09:07
@kumaradityaraj
Copy link
Copy Markdown
Contributor Author

@kumaradityaraj would you mind a last try with this: https://github.com/serverlessworkflow/editor/pull/60/changes#r3091910499 ?

Interesting it works now

Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 10 changed files in this pull request and generated 2 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

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.

Set up Playwright end-to-end testing

4 participants