Skip to content

Fix cypress index test broken by #484's truncate wrapper - #510

Merged
psugihara merged 1 commit into
mainfrom
gh/fix-cypress-index-assertions
Jul 10, 2026
Merged

Fix cypress index test broken by #484's truncate wrapper#510
psugihara merged 1 commit into
mainfrom
gh/fix-cypress-index-assertions

Conversation

@psugihara

Copy link
Copy Markdown
Collaborator

packages/cli/cypress/e2e/index.cy.js (the repo-level cypress spec) had the same brittle cy.contains("preview") / cy.contains("Emails") assertions that #508 hardened in the e2e copy — but this file was missed. #484's truncate <div> wrapper makes cy.contains match the wrapper (which lacks role/aria-expanded), so the cypress workflow started failing on main.

Scopes the assertions to cy.contains('[role="treeitem"]', ...) (same fix as #508) and drops a stray unused require("typescript"). Test-only — no published code changes, so no re-release needed.

packages/cli/cypress/e2e/index.cy.js had the same brittle
cy.contains("preview")/("Emails") assertions that #508 fixed in the e2e
copy, but this repo-level copy was missed — so #484's truncate <div> made
cy.contains match the wrapper (no role/aria-expanded) and the "cypress"
workflow failed. Scope to cy.contains('[role="treeitem"]', ...) like #508.
Also drop a stray unused `require("typescript")` at the top of the file.
@changeset-bot

changeset-bot Bot commented Jul 10, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0d5d93e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
mailing-web Ignored Ignored Jul 10, 2026 5:50pm

@psugihara
psugihara merged commit 4eb288f into main Jul 10, 2026
17 of 19 checks passed
@psugihara
psugihara deleted the gh/fix-cypress-index-assertions branch July 10, 2026 17:53
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.

1 participant