E2e tests#6
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds end-to-end testing infrastructure using Cypress to a Next.js portfolio site that mimics a code editor UI. It introduces Cypress as a dev dependency, creates comprehensive E2E test suites for three major UI components (Explorer, Command Menu, Status Bar), sets up a GitHub Actions CI workflow, and adds a Copilot instructions file documenting the project architecture.
Changes:
- Added Cypress 15.11.0 with configuration, support files, and three E2E test suites covering the Explorer panel, Command Menu dialog, and Status Bar theme/font toggles.
- Created a GitHub Actions workflow (
.github/workflows/e2e.yml) to run E2E tests on PRs and pushes tomain. - Updated source components with a
data-testidattribute on the active tab and an improvedaria-labelon the command menu button to support test selectors and accessibility.
Reviewed changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
cypress.config.ts |
Cypress configuration with baseUrl and allowCypressEnv |
cypress/e2e/explorer.cy.ts |
E2E tests for folder expand/collapse, file navigation, and active tab |
cypress/e2e/command-menu.cy.ts |
E2E tests for command menu open/close, search/filter, keyboard nav, mouse interaction |
cypress/e2e/status-bar.cy.ts |
E2E tests for theme and font toggle interactions |
cypress/support/e2e.ts |
Cypress support entry file (boilerplate) |
cypress/support/commands.ts |
Custom Cypress commands placeholder (boilerplate) |
cypress/fixtures/example.json |
Example fixture data (boilerplate) |
.github/workflows/e2e.yml |
GitHub Actions CI workflow for running E2E tests |
.github/copilot-instructions.md |
Documentation of project architecture and conventions |
src/components/explorer/command-menu/index.tsx |
Updated aria-label for command menu trigger button |
src/app/docs/[slug]/_components/current-file/index.tsx |
Added data-testid="active-tab" for E2E test targeting |
package.json |
Added Cypress dependency and cy:open/cy:run scripts |
package-lock.json |
Lock file updates for Cypress and its dependencies |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.