Commit Graph

5501 Commits

Author SHA1 Message Date
Adam Stone 6fefe7d48b fix: Require react-dom as a dependency for React projects (#22572)
* fix: Require react-dom as a dependency for React projects

* fix: Update tests

* fix: Add react-dom as required dependency for Nextjs projects

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-06-30 08:05:36 +10:00
Blue F d378ec423a chore: Refactor chainer / Commands.add for readability (#22571)
* Refactor chainer / Commands.add for readability

* Fix invoking wrong function, add comment
2022-06-29 12:43:31 -07:00
Buluc-Celik-Ozbul b1a51f9b49 fix: Proxy-Authorization: Basic (#22471)
Co-authored-by: buloheart <buloheart@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-06-29 16:17:02 +10:00
Tyler Biethman 9658e9f4a6 test: Addressing yet more flaky windows tests (#22569)
* test: Updating more flaky windows tests

* Adding the missing context to the windows builds that I missed earlier
2022-06-29 09:01:52 +10:00
kemptosa d7218aab7e docs: Fix links to kitchensink examples (#22464)
* Fix links

* docs: Fix links to kitchensink examples

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-06-28 16:06:44 -05:00
Kukhyeon Heo 54e31e3243 chore: Improve pkg/driver types part 2 (#21610)
* keyboard.ts

* mouse.ts

* chai.ts

* xhr.ts

* snapshots.ts

* overrides.ts

* command_queue.ts

* fix errors.

* fix tests.

Co-authored-by: Blue F <blue@cypress.io>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Zach Bloomquist <git@chary.us>
2022-06-28 09:09:51 -07:00
Lachlan Miller c0ea9bdaa5 fix: use posix path for ts-node loader (#22550)
* fix: distribute files to machines for external contributors. (#22326)

* fix: distribute files to machines for external contributors.

* fix path

* fix

* fix glob

* fix

* fix glob pattern spec->cy.

* fix

* echo things.

* test

* use cd.

* fix component tests.

* test

* test

* fix

* refactor

* test distribut-step

fix error
fix
fix
test
TEST

* Revert "test distribut-step"

This reverts commit 15c36065ca.

* Revert "refactor"

This reverts commit 21a8ad9211.

* reduce flake by increasing viewport height

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

* fix: add baseUrl to TestConfigOverrides (#22445)

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

* handle white space when registering ts-node using --require

* update test project

* move config

Co-authored-by: Kukhyeon Heo <sainthkh@naver.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Ishan Madhusanka <ahtimadhusanka@gmail.com>
2022-06-28 09:00:06 -05:00
Kukhyeon Heo 9101a9066c fix: distribute files to machines for external contributors. (#22326)
* fix: distribute files to machines for external contributors.

* fix path

* fix

* fix glob

* fix

* fix glob pattern spec->cy.

* fix

* echo things.

* test

* use cd.

* fix component tests.

* test

* test

* fix

* refactor

* test distribut-step

fix error
fix
fix
test
TEST

* Revert "test distribut-step"

This reverts commit 15c36065ca.

* Revert "refactor"

This reverts commit 21a8ad9211.

* reduce flake by increasing viewport height

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-06-28 09:22:43 +10:00
Muaz Othman 4726ea90a9 feat: Display Cypress Dashboard metrics in the Specs Explorer (#21250)
Co-authored-by: Muaz Othman <muazweb@gmail.com>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: Mike Plummer <mikep@cypress.io>
Co-authored-by: Peter Stakoun <peter@stakoun.com>
Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-06-27 17:37:36 -05:00
Tyler Biethman 24052eb62a test: Addressing launchpad test flake in Windows (#22536)
* test: Bumping timeout on breadcrumb state checks for Windows

* todos project was missing component index but has component testing configured

* Adding key to links to ensure attrs are cleaned up/reset

* Coercing boolean keys to strings to match vue key types
2022-06-27 14:24:33 -05:00
renovate[bot] fac83fd451 chore(deps): update dependency semantic-release to v19 [security] (#22238)
* chore(deps): update dependency semantic-release to v19 [security]

* chore: try moving to semantic-release 18

* chore: update jasmine-core to 3.8.0

* chore: update semantic version 19.0.3

* fix: update test to deal with npm obscuring internal error code

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2022-06-27 12:35:58 +10:00
Adam Stone 22d2c31d85 chore: Address skipped specs in server package (#22356)
* chore: Un-skip some tests

* chore: Unskip more tests

* chore: Use exec rather than spawn

* chore: Fix test

* chore: Remove events_spec tests

* chore: Add defaultValue for specPattern option

* chore: Remove default value

* chore: Use os to determine system arch and platform during testing

* chore: Add comment for specPattern defaultValue

* chore: Remove comment
2022-06-27 12:34:51 +10:00
Lachlan Miller c7f63e1f29 fix: handle case of implicit plugins/index.js files during migration (#22501)
* handle case of implicit index.js

* fix test error message

* fix test
2022-06-24 09:48:42 -05:00
Blue F 172c364021 fix: Time out unmatched prerequests in proxy to avoid leaking memory (#22462)
* fix: Time out unmatched prerequests in proxy to avoid leaking memory (and generally improve proxy performance)

* Fix types, whoops

* More type fixes? Plz?

* One more TS attempt.

* Revert GQL changes that break TS

* Revert accidental config change

* Rewrote debug messages for clarity

* One more logging change

* Add test around pre-request garbage collection

* Add test around pre-request garbage collection

* Typo

* Typo again

* Apply suggestions from code review

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>

* Apply suggestions from code review

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

* Clean up interval in prerequest tests

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2022-06-23 10:12:49 -07:00
Blue F 120052680c fix: Sort results in findCrossOriginLogs test helper to deterministic (#22481)
* fix: Sort results in findCrossOriginLogs test helper to make return value deterministic

* Add comment about why the sort is there
2022-06-23 09:51:13 -07:00
Dylan Schlabach 75a5daf9d5 fix: memory leak caused by storing base64 encoded files recieved by CDP Network.requestWillBeSent (#22460)
* filtering out data urls from networkRequestWillBeSent CDP requests

* fix: memory leak caused by storing base64 encoded files recieved by CDP Network.requestWillBeSent

* Update packages/server/lib/browsers/cdp_automation.ts

grammar :)

Co-authored-by: Sam Tsai <samtsai@gmail.com>

* Update packages/server/lib/browsers/cdp_automation.ts

grammar :)

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>

* added unit tests

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Sam Tsai <samtsai@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-06-23 09:35:49 -07:00
Chris Breiding a21c942ee4 fix: Improve cross-origin cookie handling (#22320) 2022-06-23 11:00:52 -04:00
Mike Plummer b678b14877 feat: Add button to clear value from search fields (#22202)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-06-22 18:42:46 -05:00
Adam Stone 0dc1f268c1 chore: Add test to verify settings panels are collapsed by default (#22382) 2022-06-22 17:11:06 -04:00
Tyler Biethman defde91f2a fix: process_profiler follow up work for v10 (#22363)
* fix: process_profiler follow up work for v10

* Converting index file to ts
2022-06-22 11:44:58 -05:00
Barthélémy Ledoux a8f5e59b7d refactor: use design system windicss config (#21503)
* chore: use design system windi config

* fix: windi config should have colors in the right place

* fix: remove direct dependencies to old windi

* upgrade css plugin for types

* update windi plugin

* refactor: update without the safelist

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-06-22 10:35:55 -05:00
Barthélémy Ledoux 6d34fd33ac fix: clean up some unexpected behavior and designs (#21551)
* refactor: try removing the safelist

* fix open browser bugs

* add ts in windi observed files

* resolve typescript issue

* remove markdown code class

* fix automation disconnected button color

* fix disabled card

* fix retry button

* fix config warning test

* fix color of topnav

* fix browser dropdown header text

* remove the removing

* revert unwanted change to card

Co-authored-by: Mark Noonan <mark@cypress.io>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-06-21 10:00:12 -05:00
kshastri 4319daa7f4 fix: cypress removes custom status text/reason phrase from http response (#22061) 2022-06-16 14:19:05 -04:00
Zach Bloomquist d01932bf75 fix: retry on EMFILE always, lint sync FS calls (#22175)
* fix: use graceful-fs always, warn in development on sync calls

* skip prop linting in some dirs

* eslint rules

* use AST-based lint rule instead

* comment

* ignore existsSync

* run without nextTick

* remove dev warning code

* fix order

* register TS first

* fix tests

* fix test

* cover new call site

* fix new test
2022-06-16 14:35:31 +10:00
Lachlan Miller e87c492479 chore: make spec migration screen text more generic (#22325)
* chore: make spec migration screen text more generic

* update language
2022-06-16 12:14:33 +10:00
Adam Stone 32ad438346 feat: Auto-focus and select file name for create new spec modal (#22284)
* feat: Auto-focus and select file name for create new spec modal

* feat: Add comment for regex

* feat: Remove comma; add new line

* feat: Remove unnecessary function

* feat: Remove unnecessary logic

* feat: Reference prop value rather than input ref value

* feat: Add component test for unhappy path

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-06-16 10:59:19 +10:00
Adam Stone 9a5a4b2a4c fix: Truncate spec directories and file names instead of wrapping (#22226) 2022-06-15 14:09:08 -04:00
Kukhyeon Heo ad7668e5e3 fix: make the file name in <BaseError> wrap anywhere. (#22271)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-06-15 09:00:20 -05:00
Alejandro Estrada 2a276978de fix: handle cloud error/no internet error (#21526)
* feat: handle cloud error/no internet error

* Update error handling

* Add tests

* Fix TS

* Revert change

* fix: update gql error handler (#21542)

* fix: update gql error handler

* Add failing test

* Fix test

* Update with code review

* Update with code review

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

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>

* Add tests

* Prevent showing toaster

* Upodate with feedback

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: Mark Noonan <mark@cypress.io>
2022-06-14 13:28:57 -05:00
Lachlan Miller 380f4e7d60 chore: add component testing metadata to manifest fetch request (#22270) 2022-06-14 11:57:39 +10:00
Bill Glesias a481dbb682 chore: document internal vite options (#21667)
* chore: document internal vite options

* try to make pertinant internal dev options more discoverable

* move vite internal references to contributing guide and rebuild references

* fix typo

* Update npm/vite-dev-server/README.md

* add enabling flag for cypress internal vite inspect

* update contributing guide to follow similar wording for internal vite envs
2022-06-13 16:07:18 -04:00
Mike Plummer 474f026980 fix: Time out loading embed html for migration video, stub in e2e tests (#22165) 2022-06-13 12:00:23 -05:00
Tyler Biethman f8f2418a07 fix: Don't include project path with supportFile glob (#22222)
* fix: Don't glob project path in supportFile lookup

* Updating unit tests around supportFile 'isFolder'

* Adding unit test to validate the projectRoot isn't globbed

* Adding system test to validate successful run

* This is more accurate

* Updating snapshot to reflect now missing absolute path from the supportFile value

* Adding e2 launchpad test

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-06-10 10:50:53 -05:00
Ryan Manuel 1e6192364f fix: restart Cypress server and browser on baseUrl change (#22154)
* fix: restart server on baseUrl change

* Rework how baseUrl works

* Refactor how we determine if we should ping the base url

* Fix test

* Update packages/launchpad/cypress/e2e/choose-a-browser.cy.ts

* Update packages/launchpad/cypress/e2e/choose-a-browser.cy.ts

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-06-10 10:11:15 -05:00
Ryan Manuel 203758f708 fix: properly run multiple specs in run and headed mode on linux and windows in chrome (#22168)
* fix: properly run multiple specs in run and headed mode on linux and windows

* fix: properly run multiple specs in run and headed mode on linux and windows

* Update test

* Update test

* Fix issue with running headed in linux and windows

* Improve test

* Update packages/server/lib/browsers/browser-cri-client.ts

* PR comments

* PR comments

* Fix test failure due to refactor

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-06-10 09:38:06 -05:00
Ryan Manuel 600daef5cd fix: windows (#22234) 2022-06-10 09:04:43 -05:00
Adam Stone 85f002fa39 fix: AUT URL in runner header links to application URL (#22171)
* Add failing test

* Update AUT URL display to link

* fix: Fix header AUT URL truncation

* fix: Adjust line height so that lower-hanging characters don't get cut off
2022-06-10 16:31:07 +10:00
Adam Stone 7a0baf976b chore: Update Volar identifier for VSCode Marketplace (#22189)
* Update Volar identifier for VSCode Marketplace

* chore: Update Volar identifier for VSCode Marketplace

Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-06-10 16:09:29 +10:00
Bill Glesias 9b965c5e31 create cross origin serialization explainer to fully explain our serialization process (#22101)
* create cross origin serialization explainer to fully explain our serialization process

* Update packages/driver/src/util/serialization/README.md

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>

* Update packages/driver/src/util/serialization/README.md

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>

* Update packages/driver/src/util/serialization/README.md

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>

* Update packages/driver/src/util/serialization/README.md

Co-authored-by: Matt Schile <mschile@gmail.com>

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Co-authored-by: Matt Schile <mschile@gmail.com>
2022-06-09 16:19:31 -04:00
Lachlan Miller abd986aa41 fix: support ESM projects using TypeScript with ts-node/esm (#22118)
* fix: support ESM projects using TypeScript with ts-node/esm

* better error handling

* fix test

* indentation

* register ts-node via --require hook

* be less aggressive with erroring

* update fix system tests

* remove obsolete test

* handle case of not using typescript

* replicate 9.x behavior for legacy plugins w/ ts-node

* make test project valid and adjust tests accordingly

* use ts-node/esm transpile only

* dummy

* extract util function

* merge in refactor using projectFixtureDirectory

* fix test
2022-06-09 21:20:26 +10:00
Kukhyeon Heo 406a19303b fix: Remove period in "learn more." button (#21935)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-06-08 15:40:58 +00:00
Mike Plummer 0298b97477 fix: Make spec row clickable across entire width (#22105)
* fix: Make spec row clickable across entire width

* Move click-sensitive row action wrapper to surround entire row
* Add styles to highlight spec icon on hocus to match Figma
* Small text highlight style change to match Figma

* Add missing data-cy selector

* Add tests for row expansion behaviors

* Fix directory row styling issues
2022-06-08 15:35:37 +10:00
Alejandro Estrada e5c1f91652 feat: show better error message if testing type is not configured (#22000)
* feat: show better error message if testing type is not configured

* Add tests

* Update tests

* Fix some tests

* Fix some tests

* Fix test

* Fix tests

* Update packages/errors/src/errors.ts

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

* Update with code review

* Fix test

* Add on link

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2022-06-07 15:47:24 -05:00
Lachlan Miller a264373df7 chore: do not ship source for app and launchpad in binary (#22033) 2022-06-07 10:47:19 +10:00
Zachary Williams e58ec7a688 fix: selector playground copy full command (#22097) 2022-06-06 17:37:59 -05:00
Alejandro Estrada 91ba9c70d5 fix: watch only specs matching specPattern (#22067)
* fix: watch only specs matching specPattern

* Fix test for _makeSpecWatcher

* Fixes to accommodate chokidar weirdness, better tests

* Add extra safe to ignore node_modules

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-06-06 13:31:07 -04:00
Tim Griesser 333e25d576 fix: #22081 Cypress crashing behind proxy (#22099) 2022-06-06 12:35:57 -04:00
Swaana f987981d46 fix: prevent Cypress from crashing when getting machine-id fails (#22119) 2022-06-06 12:35:16 -04:00
Rachel 64ea96b1e0 fix: For E2E scaffolded blank specs, scaffold a spec that passes instead of fails (#22070) 2022-06-06 12:16:47 -04:00
Bill Glesias e18819d6a0 chore: remove old runIsolated in the runner, as well as clean up old runner related dependencies (#21638) 2022-06-06 11:16:15 -04:00