Commit Graph

133 Commits

Author SHA1 Message Date
Lachlan Miller 25f59d1353 fix(runner-ct): viewport scaling during screenshots (#16543)
* fix: correctly scale viewport

* correct height

* consider max width

* update tests

* remove unneeded css

Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-05-20 11:09:15 +10:00
Lachlan Miller 116fe649d7 fix: encodeURI to correctly load specs with white space (#16416)
* fix: encodeURI to correctly load specs with white space

* fix the tests

* allow refresh page when spaes are in the path

Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-05-11 11:01:07 +10:00
Adam Gastineau 55a446c363 fix: Properly retry fuzzy search test commands (#16423) 2021-05-10 08:10:24 -07:00
renovate[bot] 38ab170fea fix(deps): update dependency cypress-real-events to version 1.4.0 🌟 (#16363)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-06 14:48:39 -05:00
Adam Gastineau a15c455b00 fix: Prevent Firefox from opening custom search when pressing / (#16372) 2021-05-06 07:58:21 -07:00
renovate[bot] 9b75852151 chore(deps): update dependency classnames to version 2.3.1 🌟 (#8337)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2021-05-05 14:35:39 -05:00
Adam Gastineau a73adf2b49 feat(design-system): SpecList - FileTree - VirtualizedTree (#16179) 2021-05-03 15:42:38 -07:00
Ben Kucera b2ccd4d07c chore(ci): fix missing percy snapshots (#16240) 2021-04-30 16:47:45 -04:00
Ben Kucera 0fce48787c chore: upgrade percy (#16020)
* upgrade percy
* update yarn.lock
* remove percy/healthcheck
* reduce to one percy version
* fix percy for component testing - dont let component runner overwrite spec globals
* fix type-check
2021-04-26 17:40:33 -04:00
Lachlan Miller 10b89f8d58 fix(component-testing): correct imports for relative paths in cypress.json (#16056) 2021-04-21 05:13:25 -07:00
Adam Gastineau 6a32ee325b Fixed missing SearchInput and improved SpecList scrolling (#16090)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-04-21 13:30:00 +10:00
Adam Gastineau 9c81bcc690 chore: Design System Cleanup (#16077) 2021-04-20 10:42:55 -07:00
Adam Gastineau 8eaf4b478b feat: Design System Setup (#15776) 2021-04-14 07:03:36 -07:00
Dmitriy Kovalenko d32076be07 chore(component-testing): Show a hint if no specs were found in the list (#15696)
* Implement no specs found message

* Take care of config.projectRoot

* Update packages/runner-ct/src/app/RunnerCt.tsx

* Remove useless code

Co-authored-by: Adam Gastineau <adamg@cypress.io>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-04-07 14:35:03 +10:00
Jessica Sachs f888625f49 fix(runner-ct): fixing an exception and styling (#15833)
* patch: fixing an exception and styling

* reduce icon margin a bit more

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-04-07 11:31:24 +10:00
Zach Bloomquist 371dce4b69 Merge branch 'develop' into 7.0-release 2021-03-30 14:01:29 -04:00
Lachlan Miller 7c055d1ec2 fix(component-testing): perf on spec list (#15690)
* fix: perf on spec list

* do not scroll spec list on up/down

* do not scroll spec list on up/down
2021-03-30 23:56:35 +10:00
Zach Bloomquist 491e6e2286 Merge branch 'develop' into 7.0-release 2021-03-26 16:15:31 +00:00
Dmitriy Kovalenko d8fb895765 fix(component-testing): Align headers correctly (#15641)
* fix(component-testing): Align headers correctly

* fix(component-testing): Correctly exit process in run mode for compilation errors

* Revert "fix(component-testing): Correctly exit process in run mode for compilation errors"

This reverts commit 45f8e72101.

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-03-26 18:22:06 +10:00
Lachlan Miller 0864c90b61 fix(runner-ct): scale AUT correctly (#15649) 2021-03-25 11:37:47 -05:00
Dmitriy Kovalenko b1f831a86a fix(@cypress/react): Devtools unpredictable resets (#15612)
* fix: Devtools unpredictable resets

* Remove cleaning up from webpack-dev-server

* Fix lint errors

* Get back observer

* fix: bring back cleanup (#15634)

* fix: wait for fw teardown to do html teardown

* fix: port responsibility of teardown to frameworks

* chore: add comments

* fix: typings

* fix: react unmount cannot be called in the right hook

* run dtslint

Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
2021-03-25 10:43:34 +10:00
Zach Bloomquist 16e1577848 Merge remote-tracking branch 'origin/develop' into 7.0-release 2021-03-24 16:27:56 -07:00
Lachlan Miller 56234e52d6 fix(runner-ct): add highlighting to spec list fuzzy find (#15604)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-03-23 19:10:14 -05:00
Adam Gastineau 45f77a7469 Removed unnecessary useEffect to state 2021-03-23 07:38:59 -07:00
Adam Gastineau 23dfa5cb32 Fixed ugly text formatting 2021-03-22 10:04:36 -07:00
Adam Gastineau 32aef8711a Merge branch 'develop' of https://github.com/cypress-io/cypress into agg23/RunnerCTCleanup 2021-03-22 09:59:42 -07:00
Adam Gastineau ea1c817864 chore(component-testing): Stricter linting (#15588)
* Added more strict JSX rules

* Improved CT lint rules and fixed react-hooks

* Updated code to match linting rules in CT

* Added new linting rules to design-system

* Fixed funky text formatting within JSX

* Fixed missed text issue

* Added optional chaining to Babel config

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-03-23 01:34:14 +10:00
Adam Gastineau 808a4968d0 Properly clean up useScreenshotHandler 2021-03-19 10:07:33 -07:00
Adam Gastineau 0c0cd4d271 Cleaned up data building and callbacks in RunnerCt render 2021-03-19 09:43:42 -07:00
Jessica Sachs 8793d56cce Merge branch 'develop' into agg23/ESLintUpgrade 2021-03-19 11:26:30 -04:00
Adam Gastineau dddeef0be6 Fixed SpecContent due to react-split-pane not working with fragment 2021-03-19 06:47:17 -07:00
Dmitriy Kovalenko 9a1c8654ad fix(component-testing): Viewport resetting after applying snapshot (#15557) 2021-03-18 19:51:10 -04:00
Adam Gastineau cbda7bfae4 Began cleaning up RunnerCT.tsx 2021-03-18 13:43:36 -07:00
Adam Gastineau 7b4783b227 Updated code to match linting rules in CT 2021-03-18 10:55:53 -07:00
Adam Gastineau 81296c2109 Merge branch 'agg23/ESLintUpgrade' of https://github.com/cypress-io/cypress into agg23/CTLinting 2021-03-18 10:14:20 -07:00
Adam Gastineau 0b449fe058 Merge branch 'develop' into agg23/ESLintUpgrade 2021-03-18 09:47:55 -07:00
Jessica Sachs e60a02912f fix: specs overflow horizontally and z-index issues (#15547) 2021-03-17 18:29:30 -04:00
Jessica Sachs ecccf54440 fix: addressing style regressions in the CT runner (#15542)
Co-authored-by: Dmitriy Kovalenko <dmtr.kovalenko@outlook.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
2021-03-17 16:36:55 -04:00
Dmitriy Kovalenko 8c9cf19b5f fix(component-testing): Search spec overflowing (#15534) 2021-03-17 17:37:47 +02:00
Lachlan Miller f2b880c09d feat(design-system): FileExplorer (#15513)
* wip: cleaning up the specs list and swapping it to be a filetree

* wip: refactor

* wip: refactor

* wip: work on refactor

* chore: improve types

* styling

* chore: remove all references to Cypress in tree list

* chore: remove all references to Cypress in tree list

* extract spec list component

* write some tests

* correctly update state

* chore: refactor

* update test

* make props optional

* optimizations

* add back search

* use memo

* run spec

* run spec

* fix a11l nav

* add tests for spec list a11y nav

* fix tests:

* remove unused

* update version

Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2021-03-17 10:29:32 -04:00
Adam Gastineau adbd21d417 chore: Updated to latest ESLint and updated corresponding plugins 2021-03-16 13:59:24 -07:00
Zach Bloomquist 7f27100b44 fix node types 2021-03-16 16:24:19 -04:00
Zach Bloomquist 8286c0bfb3 Merge remote-tracking branch 'origin/develop' into 7.0-release 2021-03-16 16:02:33 -04:00
Adam Gastineau 319787bba4 Improved CT lint rules and fixed react-hooks 2021-03-16 12:04:19 -07:00
Adam Gastineau 5eec9114f6 Added more strict JSX rules 2021-03-15 14:00:21 -07:00
Lachlan Miller b8a360669d feat: persist pane sizes and fix resizing bug (#15480) 2021-03-15 12:06:27 -04:00
Ben Kucera c0d063c7dd feat: dashboard orchestration (#14925)
* test orchestration

* bump json-schemas

* fix unit

* fix server-ct build

* add @types/node

* add runtime to resolved config, send resolved config to postInstanceTests

* add missing fixture spec, support sending test config for skipped and proper title

* spec prior., refactor recording tests, update specs

* remove unneded utils, fix e2e_record_spec, rename testConfig, fix unit

* fix bug with spec SKIP not stopping test execution

* bump json-schemas

* bump json schemas 2

* refactor exit early and error logic, add runnerCapabilities + bump json schemas

* update yarn.lock

* fix referenceError

* fix: skipAction -> skipSpecAction, muteAction -> muteTestAction

* exit with non-zero for canceled runs, improve messaging for canceled runs

* fixup unit tests

* colorize run cancelation messages
2021-03-15 10:42:11 -04:00
Zach Bloomquist 20cd803ffd Merge branch 'develop' into 7.0-release 2021-03-12 19:34:39 +00:00
Lachlan Miller d291157f07 fix(runner-ct): open link in external browser (#15420)
* chore: refactor and improve type safety. Support target=blank

* chore: refactor navbar

* fix: launch docs link in external browser

Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-03-11 14:56:47 -06:00
Lachlan Miller af921f6a5c fix: default aut scale to 1 (#15422) 2021-03-11 10:02:33 -06:00