You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## PR summary
### What
Brings the **`cypress/`** tree in line with **`feat/refactor-scripts`**:
same files and content as on that branch, split into focused commits for
review.
### Why
- **Ruff** — sample `main.py` apps under `cypress/e2e/` follow current
lint/import rules.
- **Prettier** — formatting for JSX fixtures, theme JSON, markdown,
iframe HTML, support TS, and affected specs.
- **eslint-plugin-cypress** — safer patterns in specs (no unsafe chains,
clearer assertions).
- **Stability** — copilot e2e, `window_message` / `llama_index_cb`, and
`starters_categories` (fewer arbitrary `cy.wait`, visibility before
clicks).
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Stabilizes and cleans up the Cypress E2E suite to reduce flakiness and
align with the scripts refactor, preparing for Chainlit#2573. Applies `Prettier`
formatting, `Ruff` import rules, and `eslint-plugin-cypress` safe
patterns across tests and sample apps.
- **Bug Fixes**
- Window messaging: add on-chat-start readiness message, assert inside
the iframe, and send `postMessage` without sleeps.
- Copilot sidebar: deterministic thread ID checks via updated
`getCopilotThreadId`, drag-resize/margin assertions with
`cy.document().should`, no arbitrary waits.
- Replace brittle `cy.wait` with visibility/assertion-driven flows
across starters, chat profiles, command/elements/streaming, upload
attachments, and sidebar close.
- **Refactors**
- Run `Prettier` on JSX fixtures (`JiraTicket.jsx`, `Counter.jsx`),
theme JSON, iframe HTML, markdown, and affected specs/support TS.
- Align sample `main.py` apps with `Ruff` import order and spacing.
- Enforce `eslint-plugin-cypress` patterns: split chained commands, use
explicit `.should` assertions; test utils add optional assertion to
`getCopilotThreadId`.
<sup>Written for commit 42f83d7.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
---------
Co-authored-by: Cursor Agent <noreply@cursor.com>
0 commit comments