Commit Graph

22150 Commits

Author SHA1 Message Date
Alejandro Estrada 3909ed07a0 misc: Add more spec actions button and new back button for Studio mode (#32611)
* chore: Add more spec actions button

* Update styles, and update studio components

* Refactor Reporter components to streamline studio test handling

- Removed `displayStatsAndControls` prop from `Header` and adjusted rendering logic based on `isStudioSingleTest`.
- Updated `RunnableHeader` and `RunnablePopoverOptions` to conditionally render elements based on `isStudioSingleTest`.
- Improved code readability and maintainability by consolidating logic related to studio tests.

* Refactor Header and StudioTest components for improved styling and functionality

- Updated the `Header` component to remove the `isStudioSingleTest` prop from `RunnableHeader` rendering.
- Modified the `StudioTest` component to change the button styling from 'outline-dark' to 'outline-indigo' and updated the stroke color of the icon accordingly.

* Update tests

* Update tests

* Fix styles

* changelog entry

* Add all tests tooltip

* Update styles

* maybe make semantic-commit happy

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-10-03 10:52:02 -04:00
Mike McCready ac0ad316a6 chore(deps): update @testing-library/cypress to 10.1.0 (#32617)
* chore(deps): update @testing-library/cypress to 10.1.0

* update system-tests yarn.lock files
2025-10-03 10:50:35 -04:00
github-actions[bot] edb0512f2b chore: updating v8 snapshot cache (#32638)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-10-03 09:33:41 -04:00
github-actions[bot] bb2f603d60 chore: Update v8 snapshot cache - darwin (#32637)
* chore: updating v8 snapshot cache

* index on develop: 43404f1e92 internal: (studio) pass the getProjectOptions function (#32573)

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-10-03 09:33:28 -04:00
github-actions[bot] 6c2b892076 chore: Update v8 snapshot cache - linux (#32636)
* chore: updating v8 snapshot cache

* index on develop: 236c88ec59 chore: fix graphql yarn watch (#32578)

* index on develop: 236c88ec59 chore: fix graphql yarn watch (#32578)

* index on develop: 236c88ec59 chore: fix graphql yarn watch (#32578)

* index on develop: d048e46bc7 chore: convert `@packages/scaffold-config` tests from `mocha` to `vitest` (#32568)

* index on develop: 504b153005 chore: convert `@packages/data-context` from `mocha` to `jest` (#32598)

* index on develop: 7062573933 chore: make the @packages/scaffold-config an independent bundle without needed ts-node to register entrypoint. Both ESM and CJS distributions are built and types are used as source to be compatible with older styles of commonjs bundling. Types are not shipped with the package. (#32614)

* index on develop: 43404f1e92 internal: (studio) pass the getProjectOptions function (#32573)

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-10-03 09:33:09 -04:00
Jennifer Shehane 790fbf06b6 chore: merge updates during yarn watch (#32634) 2025-10-03 09:29:32 -04:00
Matt Schile 43404f1e92 internal: (studio) pass the getProjectOptions function (#32573) 2025-10-02 17:37:02 -06:00
Ryan Manuel 9837082fa4 internal: (studio) do not retry on cert failures (#32631)
* fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized

* fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized

* Fix SSL certificate verification for cloud requests

Fixed SSL certificate verification for Cypress cloud requests.

* fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized

* internal: (studio) do not retry on cert failures

* Update packages/server/test/unit/cloud/api/studio/post_studio_session_spec.ts

Co-authored-by: Matt Schile <mschile@cypress.io>

* Update packages/server/test/unit/cloud/api/studio/post_studio_session_spec.ts

Co-authored-by: Matt Schile <mschile@cypress.io>

* fix types

---------

Co-authored-by: Matt Schile <mschile@cypress.io>
2025-10-02 17:58:01 -05:00
Ryan Manuel 3b80385210 fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized (#32629)
* fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized

* fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized

* Fix SSL certificate verification for cloud requests

Fixed SSL certificate verification for Cypress cloud requests.

* fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized

* Update packages/data-context/src/sources/UtilDataSource.ts

* fix tests

* fix tests
2025-10-02 15:52:07 -05:00
Bill Glesias a4b7dcddc3 chore: convert @packages/network tests from mocha to vitest (#32630)
* start vitest convertion and convert connect spec to vitest

* chore: convert agent spec to vitest

* chore: convert block spec to vitest

* chore: convert client-certificates test to vitest and remove circular dependency on singletoon in agent and client certificats

* chore: convert the connect spec to vitest

* chore: convert cors spec to vitest

* chore: convert document domain spec to vitest

* chore: convert uri spec to vitest

* chore: cleanup files
2025-10-02 15:13:01 -04:00
Mike McCready 3f1a150ab3 chore(deps): update cypress-real-events to 1.15.0 (#32628) 2025-10-02 14:38:39 -04:00
Bill Glesias ca4f515290 chore: convert rewriter tests to vitest (#32615) 2025-10-02 14:05:00 -04:00
Jennifer Shehane ed157a3885 chore: give v8 snapshot action access to make pull requests (#32626)
* chore: give v8 snapshot action access to make pull requests

* index on v8-action-permissions-update: 9b701df01c chore: give v8 snapshot action access to make pull requests

* index on v8-action-permissions-update: 9b701df01c chore: give v8 snapshot action access to make pull requests

* index on v8-action-permissions-update: 9b701df01c chore: give v8 snapshot action access to make pull requests

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2025-10-02 11:54:54 -04:00
Cacie Prins 5f2cc5c4b8 chore: dynamically pack the circleci pipeline configuration (#32618)
* chore: dynamically pack the circleci pipeline configuration

The ./scripts/pack-ci.sh is the first workhorse, here. It uses the circleci
cli to pack any subdirectory of `.circleci/src` into a circleci config
using FYAML format. It can pack every subdirectory, a subsection of
subdirs that include changes, and use circleci cli to validate the
packed yml files.

Husky is set up to validate the packed yml file(s) on commit.

The packed yml file(s) should not be committed to source control. They
are build artifacts. They are configured to be ignored by git in
./.circleci/.gitignore.

./.circleci/config.yml is the second major change. This workflow is
modified such that:
- it uses workflow filtering to prevent the workflow from triggering unless at least
one of the following is true:
  - the workflow was triggered via api (the 'trigger workflows' button in circleci)
  - the branch is `develop`
  - the branch is `release/*`
  - the branch has an open pull request, and the pull request is not draft
- checks out the repository from the HEAD ref of the pr (the branch with the changes),
and calculates a checksum of the contents of ./.circleci/src. Packed workflow files
are cached by the checksum of the source files that were used to generate the packed
workflow. If the cache is restored, the packed pipeline.yml file is continued. If there
is no cache for the checksum, it uses ./scripts/pack-ci to pack the source yml files
and triggers a continuation with the resulting packed yml file.

* rm packed yml file

* revert to old draft detection :( other way is only avail on github app

* just fail instead of cancelling on drafts, more reliable even if not correct

* just halt, since draft->ready does not already trigger a ci run

* circleci agent -> circleci-agent

* validate main circleci yml file; correct entrypoint for pack workflows job

* workflows -> pipeline

* Update pack-ci.sh - newline at eof
2025-10-02 11:19:35 -04:00
Cacie Prins 14beae32dc feat: --posix-exit-codes cli flag in run mode (#32609)
* pass posix exit code to server

* return 1 if any tests fail and posix exit codes are enabled

* changelog

* rm .only

* snapshot

* changelog

* update typedef

* changelog

* Update cli/CHANGELOG.md

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

* lift disabled posix system test to different desc block

* add posix-exit-codes in lib/exec/run.ts#processRunOptions

* Apply suggestion from @jennifer-shehane

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-10-02 09:30:51 -04:00
Bill Glesias 7062573933 chore: make the @packages/scaffold-config an independent bundle without needed ts-node to register entrypoint. Both ESM and CJS distributions are built and types are used as source to be compatible with older styles of commonjs bundling. Types are not shipped with the package. (#32614) 2025-10-01 15:52:38 -04:00
Bill Glesias d0c4dd9972 chore: make the @packages/resolve-dist an independent bundle without needed ts-node to register entrypoint. Both ESM and CJS distributions are built and types are used as source to be compatible with older styles of commonjs bundling. Types are not shipped with the package. (#32613) 2025-10-01 15:51:20 -04:00
Bill Glesias 2e81887764 chore: make the @packages/config an independent bundle without needed ts-node to register entrypoint. Both ESM and CJS distributions are built and types are used as source to be compatible with older styles of commonjs bundling. Types are not shipped with the package. (#32612) 2025-10-01 15:49:17 -04:00
Bill Glesias bb8d9aebda chore: make the @packages/errors an independent bundle without needed ts-node to register entrypoint. Both ESM and CJS distributions are built and types are used as source to be compatible with older styles of commonjs bundling. Types are not shipped with the package. (#32610) 2025-10-01 15:45:44 -04:00
Bill Glesias 2cf1b06bf6 chore: make the @packages/types an independent bundle without needed ts-node to register entrypoint. Both ESM and CJS distributions are built and types are used as source to be compatible with older styles of commonjs bundling. Types are not shipped with the package. (#32608) 2025-10-01 15:41:08 -04:00
Bill Glesias 504b153005 chore: convert @packages/data-context from mocha to jest (#32598)
* start jest conversion and covnert authaction to jest

* chore: conver codegenaction to jest

* chore: convert cohorts action spec to vitest

* chore: convert dataEmitterActions to jest

* chore: convert event collector action to vitest

* chore: convert local settings action spec tojest

* chore: convert notification action to vitest

* chor: convert project actions to vitest and fix pretty-formnat

* chore: convert code-generator spec to jest

* chore: convert spec options spec to jest

* chore: convert project config ipc to jest

* chore: convert projectconfigmanager tests to jest

* chore: convert project lifecycle manager tests to jest

* chore: conver poller spec to jest

* chore: convert browser data source to jest

* chore: convert cloud dats source to jest

* chore: convert gitdatasource unit tests to jest

* chore: convert FileDataSource to jest

* chore: convert git data source to jest

* chore: convert graphql data source to jest

* chore: convert project data source to jest

* chore: convert revelvant runs data source to jest

* chore: convert relevant run specs data source to jest

* chore: convert remote request data source to jest

* chore: convert versions data source spec to jest

* chore: convert wizard data source spec to jest

* chore: convert document node builder to jest

* chore: convert has TypeScript to jest

* chore: convert test counts spec to jest

* chore: convert weighted choice spec to jest

* chore: convert config file updater to jest

* clean up files to allow tests to run in band but out of order, add README, cleanup unused scripts and dependencies

* fix deprecation warning from ts-jest via isolated modules

* chore: adjust expected result count

* chore: clean up types

* turn back on no implicit any and reinstall graphql package in frontend shared

* fix isFocusSupported mock

* chore: copy over the old data-context-helper into the server as the one in the data-context package is written in jest now

* chore: fix code review findings from cursor

* fix incorrect expect async throw

* chore: remove use of this in projectData source

* add docs to copied data-context helper and fix cursor detected issue
2025-09-30 17:16:17 -04:00
Bill Glesias f9c3f75563 chore: bundle the root package.json as an installable package (#32544)
* chore: bundle the root package.json as an installable package

* Update packages/root/README.md

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

* Update guides/esm-migration.md

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

* Update packages/root/README.md

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-09-30 17:15:18 -04:00
Ryan Manuel 96bd60de6b fix: ensure that code frames within cy.origin point to the right line of the code (#32597)
* fix: ensure that code frames within cy.origin point to the right line of the code

* additional tests

* additional tests

* changelog

* Apply suggestions from code review

* Update system-tests/projects/e2e/cypress/e2e/cy_origin_error.cy.ts

* fix tests

* fix tests

* clean up
2025-09-30 14:46:24 -05:00
Jennifer Shehane e1d92bfb28 chore: Removed unused / no longer needed errors (#32595)
* chore: Removed unused / no longer needed errors

* removed unused variables
2025-09-30 14:45:24 -04:00
Cacie Prins bde3fbc69a chore: rm undef is_contributor_pr param on unit test call (#32604)
* rm undef is_contributor_pr param on unit test call

* Update cache-version.txt
2025-09-30 10:00:12 -04:00
Bill Glesias d048e46bc7 chore: convert @packages/scaffold-config tests from mocha to vitest (#32568)
* chore: start vitest conversion and convertsupportFile to vitest

* chore: convert frameworks spec to vitest

* chore: convert detect spec to vitest

* chore: convert ct-detect-third-party spec to vitest

* chore: convert component index template to vitest

* chore: clean up scaffold-config as tests are now converted to vitest

* fix issue where projectRoot was passed inncorrectly in test
2025-09-29 19:47:59 -04:00
Matt Schile 942a71f0cd misc: fix studio panel resizing when dragging (#32584) 2025-09-29 14:58:24 -06:00
Bill Glesias cef5820ba9 chore: convert telemetry tests from mocha to vitest (#32577)
* chore: start vitest conversion

* convert githubActionsDetectorSync to vitest

* chore: convert on start span processor to vitest

* chore: convert cloud span exporter to vitest

* convert trace link exporter to vitest

* chore: convert ipc span exporter tests to vitest

* chore: convert websocket span exporter to vitest

* chore: convert browser spec to vitest

* chore: convert index spec to vitest

* chore: convert node spec to vitest

* clean up telemetry package after vite conversion

* add missing import

* change assertions to be not.toBeUndefined() to toBeDefined()

* correctly pack config

* chore: stub out the @opentelemetry/exporter-trace-otlp-http
2025-09-29 13:21:19 -04:00
Adam Stone-Lord 0ad725dc88 chore: (studio) AI status updates (#32511) 2025-09-29 12:21:27 -04:00
Bill Glesias b81c5a0a8e chore: convert tests in @packages/errors from mocha to vitest (#32572)
* start vitest convertion and convert errors spec to vitest

* chore: convert errTemplate to vitest

* convert stripIndent to vitest

* convert the visualsnapshoterrors spec to vitest

* chore: clean up errors package, update guide, and move snapshots

* move tests out of unit test directory as most tests are integration tests

* add to esm checklist and update workflow

* clean build and rebuild after test due to CI having built files

* Chore: fix bad test assertion in error spec

* Update guides/esm-migration.md

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* chore: remove unused FIREFOX_CDP_FAILED_TO_CONNECT error as it is no longer used and likely missed with the CDP removal for Firefox

* chore: fix missed imports

* remove system test code to check for CDP error in firefox

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2025-09-29 11:37:07 -04:00
Bill Glesias 236c88ec59 chore: fix graphql yarn watch (#32578) 2025-09-26 11:37:07 -04:00
Cacie Prins 48c2ba28e7 chore: upgrade cli eslint to 9 (#32446)
* chore: replace dtslint with eslint-plugin-expect-type

* update guide

* add lint-staged

* rm stale script

* modify cli eslint and tsconfigs to support ts migration

* separate expect-type files

* modifications to tsconfigs to make eslint a little easier

* revert workflow.yml

* further revision

* put tslint config for dtslint back in

* ensure false negative case is tested

* correct tsconfigs

* align dtslint tsconfig with eslint 9 config

* consolidate / DRY tsconfigs
2025-09-26 11:16:42 -04:00
Bill Glesias 9da952a64e chore: convert @packages/config tests to vitest from mocha (#32539)
* start vitest conversion

* convert utils to vitest

* convert index spec to vitest

* chore: convert utils spec to vitest

* chore: convert addToCypressConfig spect to vitest

* add plugin tests to vitest config

* chore: convert validation to vitest

* chore: clean up scripts after vitest conversion

* chore: remove check-more-types

* adjust expected mocha results to 17 and update esm migration
2025-09-25 15:42:03 -04:00
Bill Glesias cb6e509607 chore: combine the graphql package into the data-context package to avoid a cyclical dependency (#32566) 2025-09-25 15:40:24 -04:00
Cacie Prins cde3b2ba9e fix: strip dbus messaging from cli launcher stderr (#32547)
* fix: strip dbus messaging from cli launcher stderr

* persist prerelease binaries

* expand pattern

* chore: fix changelog (#32552)

* chore: release 15.3.0 (#32553)

* chore: add branches on semantic-pull-request workflow (#32560)

* chore: update validate changelog to pull target branch (#32561)

* chore: Update Chrome (stable) to 140.0.7339.207 (#32563)

* chore: Update Chrome (stable) to 140.0.7339.207

* empty commit

---------

Co-authored-by: cypress-bot[bot] <41898282+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>

* updates changelog

* Update CHANGELOG.md

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: cypress-bot[bot] <41898282+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-09-25 12:44:23 -04:00
github-actions[bot] e9fadf30bf chore: Update Chrome (stable) to 140.0.7339.207 (#32563)
* chore: Update Chrome (stable) to 140.0.7339.207

* empty commit

---------

Co-authored-by: cypress-bot[bot] <41898282+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-09-24 12:31:14 -04:00
Matt Schile 1aa9f90897 chore: update validate changelog to pull target branch (#32561) 2025-09-24 08:32:54 -06:00
Matt Schile 784a094918 chore: add branches on semantic-pull-request workflow (#32560) 2025-09-24 08:30:52 -06:00
Bill Glesias 556243acd7 chore: release 15.3.0 (#32553) v15.3.0 2025-09-23 12:51:17 -04:00
Jennifer Shehane 0c2bd49320 chore: fix changelog (#32552) 2025-09-23 11:25:24 -04:00
Cacie Prins 8755160a68 feat: escape key for cy.press (#32545)
* feat: escape key for cy.press

* changelog

* on-link to cy.press() in changelog
2025-09-23 10:48:12 -04:00
Bill Glesias 17c1ede5f6 chore: run battery of tests against @cypress/grep in CI to make sure we do not introduce regressions (#32522) 2025-09-22 19:00:43 -04:00
Bill Glesias 6eb1997df3 chore: put together phases of ESM conversion as well as each package into the monorepo (#32531) 2025-09-22 18:59:36 -04:00
Matt Schile daca9a316e docs: update URLs for cache purging in documentation (#32548) 2025-09-22 16:48:30 -06:00
Bill Glesias 7d5fd90721 fix: incorrect loading of ESM based configurations (#32515)
* add regression test

* fix: make sure esm configs are indeed loaded as ESM
2025-09-22 11:03:34 -04:00
kurekszymon a4b03b424c misc: make runnable headers semi-bold font weight (600) (#32491)
* chore: make runnable headers semi-bold font weight (600)

* changelog entry

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-09-22 10:32:53 -04:00
semantic-release-bot 113425c6cf chore: release @cypress/grep-v5.0.0
[skip ci]
@cypress/grep-v5.0.0
2025-09-19 16:46:48 -04:00
Bill Glesias c83df82db0 breaking: convert @cypress/grep to TypeScript and change what is exported
BREAKING CHANGE: @cypress/grep now exports a register function that can be imported from the users spec file. Additionally, the plugin can be imported via @cypress/grep/plugin.
2025-09-19 15:58:33 -04:00
github-actions[bot] d35349b2a3 chore: Update Chrome (stable) to 140.0.7339.185 and Chrome (beta) to 141.0.7390.30 (#32537)
* chore: Update Chrome (stable) to 140.0.7339.185 and Chrome (beta) to 141.0.7390.30

* empty commit

---------

Co-authored-by: cypress-bot[bot] <41898282+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2025-09-19 15:17:42 -04:00
Cacie Prins 03b066b0dc chore: install circleci cli on gh action that updates browser versions (#32538)
* chore: install circleci cli on browser version action so it can pack our ymls

* rm unnecessary env def
2025-09-19 13:00:29 -04:00