-
Notifications
You must be signed in to change notification settings - Fork 8
feat(e2e): add Playwright tests for authentication, navigation, and n… #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…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
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this 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.tsfor test settings and browser projects - Add E2E test suites under
e2e/covering nodes, navigation, and auth flows - Update
package.jsonscripts 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')
🎨 Chromatic Visual Testing Results
Check the visual changes and approve or request changes as needed. |
Co-authored-by: Copilot <[email protected]>
🎨 Chromatic Visual Testing Results
Check the visual changes and approve or request changes as needed. |
|
close this as storybook 9.0 have a new feat: "test" |
Uh oh!
There was an error while loading. Please reload this page.