Commit Graph

177 Commits

Author SHA1 Message Date
Ryan Manuel bd4774fb57 chore: pass file preprocesor override to protocol as debug data (#31171)
* chore: set up sharing of react via module federation in studio

* chore: add ability to load types from the studio bundle

* fix build

* fix build

* fix build

* chore: pass file preprocesor override to protocol as debug data

* fix tests

* PR comments

* PR comment

* update types
2025-03-03 12:52:01 -06:00
Bill Glesias 5e7982d3d0 chore: automatically infer cypress major version from package.json version and error when no splash page exists for said major version (#30911) 2025-01-22 16:21:57 -05:00
Jennifer Shehane 2e5af1e624 merge develop 2024-12-11 11:09:56 -05:00
Ryan Manuel 73de0a8d4d fix: error loading config file with node 22.12.0 (#30730) 2024-12-10 19:36:17 -07:00
Jennifer Shehane 636bed9cf7 merge develop 2024-12-02 09:42:47 -05:00
Bill Glesias 53b24b1be2 chore: update system tests to use react 18 and install latest dependencies for applicable system tests. use react18 harness before removal [run ci] (#30614) 2024-11-14 16:12:36 -05:00
Alex Schwartz 82f45c51d6 feat: added ability to specify the default browser in cypress config (#30517) 2024-11-14 12:49:32 -07:00
Bill Glesias c695f5fa16 breaking: remove support for @vue/cli-serivce from Cypress Component Testing [run ci] (#30585) 2024-11-12 14:13:36 -05:00
Bill Glesias 37b944f9b4 breaking: remove support for create react app for component testing as it is no longer maintained [run ci] (#30558) 2024-11-07 18:02:04 -05:00
Bill Glesias ccb6e28fe0 breaking: Cypress Component Testing no longer supports vue2 [run ci] (#30502) 2024-11-05 08:55:19 -05:00
Bill Glesias bc39cb1103 breaking: remove nuxt2 support from Cypress Component Testing [run ci] (#30499) 2024-11-03 16:07:41 -05:00
renovate[bot] 619a9ab511 dependency: update dependency simple-git to v3.25.0 (#30076)
* empty commit

* fix(deps): update dependency simple-git to v3.25.0

* cli entry

* yarnlock

* mock out simple-git for failing unit tests

* fix yarn lock merge

* changelog

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Cacie Prins <cacie@cypress.io>
2024-10-02 10:02:22 -04:00
Bill Glesias 5a6b8c49cf fix: Typescript config invalid with node v22.7.0 with ESM (#30099)
* add failing system binary test [run ci]

* fix: leverage the --no-experimental-detect-module when node 22.7.0 and above is detected [run ci]

* Update cli/CHANGELOG.md

* use environment variable to mock stubbing out of typescript install in order to unit test as mocking the module seems near impossible to do correctly given the context [run ci]

* update changelog to include mention of experimental-detect-module

* make sure node version is set before comparing versions

* Revert "update changelog to include mention of experimental-detect-module"

This reverts commit 5ef8ef0e4c.

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-08-27 09:03:41 -04:00
boforetech 37394ce0c0 chore: fix some comments (#30053)
Signed-off-by: beforetech <mail@before.tech>
2024-08-19 10:28:46 -04:00
qwazimoda ef3f04fbfd fix: do not ignore node_modules if it is specified by an user #23616 (#28456)
* FileDataSource: do not ignore node_modules if it is spicified by an user

* extra empty commit

* update changelog

* update the changelog

* add x.x.x version to  the changelog

* change version location in the changelog

* provide an exact version and a release date, since it is checkec by regex in the parse-changelog.js

* add unit tests

* Fix changelog

---------

Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2023-12-28 17:21:31 -05:00
Ryan Manuel c8c5b51d82 dependency: packages/data-context/package.json to reduce vulnerabilities (#28063)
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2023-10-16 14:16:48 -05:00
Jim Hays 34c8b1f884 refactor: Spellcheck (#27964)
Co-authored-by: Matthew Schile <mschile@cypress.io>
2023-10-11 10:06:10 -04:00
Ryan Manuel 228a117e82 feat: swap websocket transport with cdp add binding/evaluate (#27592)
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2023-08-25 21:05:33 -05:00
Stokes Player eca37aec74 chore: record event gql mutation (#27416)
* feat: record event gql mutation

* Allow projectSlug to be optional

* Do not start source in run mode

* Fix unit test

* ts linting fix

* Adding test

* Adding test

* refactor

---------

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2023-08-07 09:45:37 +10:00
Stokes Player a3e4a8a606 fix: correct invalid stored preference for in-app notifications (#27237) 2023-07-07 16:36:28 -04:00
Lachlan Miller 0107efbc3e feat: In-App Run Notifications (#27078)
Co-authored-by: Stokes Player <stokes@cypress.io>
Co-authored-by: astone123 <adams@cypress.io>
2023-06-28 10:23:21 -04:00
Stokes Player 15efb64854 fix: stop subscription race condition error on debug page (#27134) 2023-06-28 09:00:25 -04:00
Stokes Player 9cb7e1f915 feat: Cypress Cloud data on Specs page and Runs page use local Git data if available (#26991) 2023-06-15 20:02:17 -04:00
Jordan 3fc17c25ac chore(data-context): update runSpec mutation to support absolute spec path (#26973)
* fix(data-context): update runSpec mutation to support absolute spec path

* test(app): add currentProject to failin e2e runSpec test

* chore(data-context): use path.relative

* chore(graphql): update runSpec specPath description
2023-06-13 16:38:41 +10:00
Dave Kasper 9c4d5f7db6 chore: add browser state action for debug (#26884)
* chore: add browser state action for debug (#26763)

* Address PR comments
- remove unneeded async and test context
- genericize openProject function

* Revert route change, update spec description
2023-06-02 14:40:12 -05:00
Mike Plummer 58b9ccc0a8 chore: Implement runSpec mutation (#26782) 2023-05-24 07:32:49 -05:00
Adam Stone-Lord 6df7a709c3 chore: capture versions of relevant dependencies with x-dependencies header (#26814) 2023-05-22 15:59:27 -04:00
Mike Plummer adc4c5e32c feat: Component Testing banner (#26625)
Co-authored-by: elevatebart <bart@cypress.io>
2023-05-05 16:07:41 -05:00
Mike Plummer 6209b91865 chore: Check project dependencies for CT compatibility (#26497)
* chore: Check project dependencies for CT compatibility

* Cleanup
2023-04-17 18:05:02 +10:00
Lachlan Miller 24194da8e2 feat: Debug run navigation (#26017)
Co-authored-by: Adam Stone-Lord <adams@cypress.io>
Co-authored-by: Stokes Player <stokes@cypress.io>
2023-03-27 20:10:17 -04:00
Mike Plummer 91cc2e22f2 fix: Use resolved git root on Windows (#26179) 2023-03-27 12:30:04 -05:00
Adam Stone-Lord a77dd0709a fix: use --first-parent when loading Git hashes in GitDataSource (#26135)
Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
2023-03-20 17:08:01 -04:00
Adam Stone-Lord cfd40887d5 chore: ensure that current version is loaded before taking snapshot of launchpad migration screen (#26105) 2023-03-15 17:37:06 -04:00
Stokes Player 434e6eec6e feat: show running builds in the Debug page (#25936)
* update format for duration less than 1 sec

* Move DebugNewRelevantRunBar above header

* Adding link to switch runs when running

* Update DebugPendingRunSplash

* New DebugTestingProgress component

* Adding DebugTestingProgress to DebugContainer

* Adding test for showing failed tests for running

* Update mutation for moving relevant runs

* Fix typescript

* Type fix

* Fix for Mac OS

* Watch total tests in relevant run specs data source

* Schema change missed earlier

* Adding transitions to UI

* Caching gql results between changes to remove UI flicker

* Correcting application of attributes

* Modify StatsMetadata to incorporate ResultCounts

* Adding transition to width

* Update mountFragment and test to match

* Adding changelog

* Update changelog

* Make use of useIntervalFn

* Add interval to timing display in header

* Rename variable

* Fixing GQL warnings from test

* Adding entry for Chrome Beta

* Update polling behavior for stopping and fix test for changes in RelevantRunSpecsDataSource

* Poller updates to tracking start/stop

* Add scheduled to complete message to run splash

* Update Sidebar badge to support running builds

* fix tracking of completion date in data source

* Updating isLoading logic

* Add missing field to test data

* Update formatting of time remaining

* Test refactoring

* Fixing types

* Update link to show previous

* Update runs after a status change

* Update method documentation

* Update cli/CHANGELOG.md

Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>

* Remove console.log

* Better checks for numbers

* Rename moveToNext to moveToRun

* Simplify check

Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>

* Simplify check

* Fixing document name

* Update logic for when to move runs

---------

Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
2023-03-07 09:56:55 +10:00
Lachlan Miller faba531c64 fix: handle testFiles array in migration (#25969)
* handle testFiles as array

* update project

* macos build

* use castArray
2023-03-01 11:25:36 +10:00
Zach Bloomquist 4a47081c68 test: clean up skipped flaky tests (#25671) 2023-02-22 15:56:33 +00:00
Lachlan Miller 1d3aab9d70 feat: Public API for CT Framework Definitions (#25780)
* chore: rework component onboarding in launchpad (#25713)

* chore: refactoring and types

* rework source of frameworks

* revert rename

* fix tests

* fix more tests

* types

* update code

* use same public API internally

* rename interfaces

* rename

* work on dev server api

* fix types

* fix test

* attempt to support getDevServerConfig

* tests

* add function to define framework [skip ci]

* rework a lot of types

* fix test

* update tests and types

* refactor

* revert changes

* lint

* fix test

* revert

* remove

* add "community" label [skip ci]

* refactor

* types

* lint

* fix bug

* update function name

* address feedback

* improve types with Pick

* refactor using type guard

* correct label

---------

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>

* chore: typing error

* feat: scan for 3rd party ct plugins (#25749)

* chore: refactoring and types

* rework source of frameworks

* revert rename

* fix tests

* fix more tests

* types

* update code

* use same public API internally

* rename interfaces

* rename

* work on dev server api

* fix types

* fix test

* attempt to support getDevServerConfig

* tests

* add function to define framework [skip ci]

* rework a lot of types

* fix test

* update tests and types

* refactor

* revert changes

* lint

* fix test

* revert

* remove

* add "community" label [skip ci]

* refactor

* types

* lint

* fix bug

* update function name

* address feedback

* feat: scan for 3rd party ct plugins

* add e2e test

* unit tests [run ci]

* tweak resolution

* rebase, address comments

* fix windows paths

* remove .gitignore

* fix test

---------

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* lint config

* spacing

* try fix race cond

* fix import error

* build binary

* try update snapshot

* try using require

* support namespaced definitions (#25804)

* remove category

* add icon prop

* support esm -> cjs compiled typescript

* fix test

* misc: add CTA footer to launchpad framework dropdown (#25831)

* remove test project dependencies

* rebase

* windows

* windows again

* add changelog entry

* changelog

* revert workflow

* remove worklfow

---------

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Adam Stone-Lord <adams@cypress.io>
2023-02-21 17:43:20 +10:00
Zachary Williams 470ee84284 test: skip flaky GitDataSource test (#25825) 2023-02-15 10:48:03 -08:00
Mike Plummer 2c35510938 fix: Suppress filesystem errors during glob search (#25774) 2023-02-13 16:21:41 -06:00
Mark Noonan 2bfeb5302c fix: implement new graphql fields for spec counts (#25757)
Co-authored-by: Stokes Player <stokes@cypress.io>
Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
2023-02-13 11:12:25 -05:00
Stokes Player 660ff67578 feat: Debug page [IATR] (#25488)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Ankit <ankit@cypress.io>
Co-authored-by: Stokes Player <stokes.player@gmail.com>
Co-authored-by: elevatebart <bart@cypress.io>
Co-authored-by: Rocky <25568640+rockindahizzy@users.noreply.github.com>
Co-authored-by: Stokes Player <stokes@cypress.io>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Mark Noonan <mark@cypress.io>
Co-authored-by: Mike Plummer <mikep@cypress.io>
Co-authored-by: amehta265 <65267668+amehta265@users.noreply.github.com>
Co-authored-by: Adam Stone-Lord <adams@cypress.io>
Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2023-01-31 10:00:03 -05:00
Emily Rohrbough b50714108d chore: update packages/example deployment script and cleanup package/example (#25091)
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2023-01-27 11:59:55 -06:00
Mike Plummer acd14a8967 feat: Use JSX/TSX in generated spec filenames (#25318) 2023-01-06 10:34:07 -06:00
Manuel Abascal c12a7e37c7 fix: change wording for spec creation (#25271)
Co-authored-by: Emily Rohrbough <emilyrohrbough@yahoo.com>
Closes undefined
2023-01-03 10:19:36 -06:00
Zach Bloomquist ebf57a82e6 test: change some skipped tests to use retries (#24124)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-12-20 01:56:10 +00:00
Adam Stone-Lord 166b69414c feat: create from React component (#25168)
* feat: server logic for create from React component (#24881)

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* fix: add default export detection (#24954)

Co-authored-by: astone123 <adams@cypress.io>

* update cache

* update yarn.lock to fix builds

* fix: compilation with webpack preprocessor

* feat: create from React component UI (#24982)

* feat: WIP server logic for create from React component

* feat: add more tests; error handling

* feat: WIP create from React UI

* feat: PR feedback [run CI]

* feat: try committing snapshot cache changes [run ci]

* feat: try re-generating snapshot [run ci]

* fix build

* regenerate cache on darwin

* update caches

* Revert "feat: try re-generating snapshot [run ci]"

This reverts commit d763e1f7a4.

* fix typing error

* types

* fix test

* chore: try using react-docgen@6.0.0-alpha.3

* update test

* regen linux snapshot

* update snapshots for darwin

* re-gen linux snapshot

* yarn install

* update snapshots

* update snapshot metadata

* update snapshots due to babel deps changing slightly

* make react docgen a dep

* update tests

* revert

* snapshots again??

* revert

* update

* update

* try change snapshot

* change snap

* update snap

* feat: remove unnecessary ts-ignore

* feat: add more test cases

* feat: create CodegenActions; other minor refactors

* feat: continue UI work

* feat: ignore config and Cypress-related files

* feat: PR feedback

* update Vue component link

* merge in default export work

* consolidate graphql queries

* other misc feedback

* use network-only policy to fetch files; include cypress/ dir for code gen candidates; fix type error

* add basic e2e test

* fix app integration tests

* refactor and fix app component and webpack dev server tests

* add error state; fix unit tests [skip ci]

* simplify generator show logic [skip ci]

* more testing

* fix types

* style updates [skip ci]

* fix error state [skip ci]

* fix list padding [skip ci]

* use slots (#25079)

* add more tests; fix unit tests

* fix types

* fix test describe

* add percy snapshots for new list

* update trouble rendering banner link [skip ci]

* use collapsible component

* use button for component list items

* fix tests

* build binaries

* revert changes to circle config

* remove eslintignore and extra loading div [skip ci] because we know it will fail

* revert changes to framework glob patterns [skip ci]

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* feat: pass parser options to allow parsing of tsx files (#25145)

* fix create from component e2e test

* build binaries [run ci]

* fix component tests [run ci]

* regen windows snapshot

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-12-19 12:42:14 +10:00
Mike Plummer 7e67841c76 fix: Display correct major version in migration wizard (#25146) 2022-12-15 15:37:51 -06:00
Emily Rohrbough 05530ce531 chore(12): merge develop into release/12.0.0 (#24927)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Mark Noonan <mark@cypress.io>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Feng Yu <abcfy2@users.noreply.github.com>
2022-12-01 19:33:44 -06:00
Chris Breiding e4be9697bd Merge branch 'develop' into merge-develop-v12-2022-11-14-take-2 2022-11-14 13:57:38 -05:00
Mark Noonan 191552322c feat: in-app information about new major versions (#24541) 2022-11-04 16:25:38 -04:00