Skip to content

E2e tests#6

Merged
ClodoaldoDantas merged 8 commits into
mainfrom
e2e-tests
Mar 5, 2026
Merged

E2e tests#6
ClodoaldoDantas merged 8 commits into
mainfrom
e2e-tests

Conversation

@ClodoaldoDantas
Copy link
Copy Markdown
Owner

No description provided.

@ClodoaldoDantas ClodoaldoDantas requested a review from Copilot March 5, 2026 12:33
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clodoaldo-dev Ready Ready Preview, Comment Mar 5, 2026 0:39am

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

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 to main.
  • Updated source components with a data-testid attribute on the active tab and an improved aria-label on 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.

Comment thread .github/workflows/e2e.yml Outdated
Comment thread .github/workflows/e2e.yml Outdated
ClodoaldoDantas and others added 2 commits March 5, 2026 09:38
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ClodoaldoDantas ClodoaldoDantas merged commit b753a6c into main Mar 5, 2026
3 checks passed
@ClodoaldoDantas ClodoaldoDantas deleted the e2e-tests branch March 5, 2026 12:40
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