Skip to content

Conversation

@snomiao
Copy link
Member

@snomiao snomiao commented Jun 3, 2025

  • Setup Playwright E2E Test
  • and add basic e2e tests

…odes functionality to ensure application reliability

chore(playwright): create Playwright configuration file for test setup and execution
chore(workflow): add GitHub Actions workflow for running Playwright tests on push and pull request events
chore(package): add Playwright as a dependency and update scripts for running e2e tests
chore(gitignore): update .gitignore to exclude Playwright reports and test results
Copilot AI review requested due to automatic review settings June 3, 2025 12:57
@vercel
Copy link

vercel bot commented Jun 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
registry-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2025 2:59pm

@socket-security
Copy link

socket-security bot commented Jun 3, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​playwright/​test@​1.52.01001001009980

View full report

Copy link
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

Adds end-to-end Playwright tests for authentication, navigation, and nodes pages, along with necessary config, scripts, and CI workflow to run them.

  • Introduce playwright.config.ts for test settings and browser projects
  • Add E2E test suites under e2e/ covering nodes, navigation, and auth flows
  • Update package.json scripts and GitHub Actions workflow for running Playwright tests

Reviewed Changes

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

Show a summary per file
File Description
playwright.config.ts Defines test directory, timeouts, reporters, browsers, and web server settings
package.json Adds test:e2e* scripts and Playwright dependency
e2e/nodes.spec.ts Tests navigation and node detail page interactions
e2e/navigation.spec.ts Tests home page navigation and registry component visibility
e2e/auth.spec.ts Tests sign-in page elements and redirection behavior
.github/workflows/playwright.yml CI job to install deps, browsers, and run Playwright tests
Comments suppressed due to low confidence (2)

e2e/nodes.spec.ts:30

  • If no node cards exist, this test will silently pass. It’s better to assert that at least one node card is present before interacting, e.g., await expect(nodeCard).toHaveCountGreaterThan(0).
if (await nodeCard.count() > 0) {

e2e/auth.spec.ts:55

  • Key authentication flows (successful and failed logins) are commented out. Consider adding mocked or stubbed auth tests to cover these important scenarios.
// test('should successfully log in with Google and redirect to home')

@github-actions
Copy link

github-actions bot commented Jun 3, 2025

🎨 Chromatic Visual Testing Results

Resource URL
🔍 Build Results Chromatic Build
📚 Storybook View Storybook

Check the visual changes and approve or request changes as needed.

@github-actions
Copy link

github-actions bot commented Jun 3, 2025

🎨 Chromatic Visual Testing Results

Resource URL
🔍 Build Results Chromatic Build
📚 Storybook View Storybook

Check the visual changes and approve or request changes as needed.

@snomiao snomiao marked this pull request as draft June 13, 2025 16:29
@snomiao
Copy link
Member Author

snomiao commented Jul 11, 2025

close this as storybook 9.0 have a new feat: "test"

@snomiao snomiao closed this Jul 11, 2025
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