Commit Graph

154 Commits

Author SHA1 Message Date
Barthélémy Ledoux
6d6623c1b5 fix: make sure to go back to no-specs when delete spec file (#17760)
* fix: make sure to go back to no-specs when delete spec file

closes #16553

* refactor extract functino
2021-10-28 11:48:28 +10:00
Kukhyeon Heo
af472b6419 fix: revive type checker (#18172)
Co-authored-by: Zach Bloomquist <github@chary.us>
2021-10-13 23:51:38 +00:00
Ben Kucera
9f9cf9e8b6 chore: fix broken firefox focus tests, bump resource class of chrome-beta job (#18133) 2021-09-21 09:34:48 -04:00
Jessica Sachs
901338866a chore: converting packages/driver to be esm 2021-09-07 13:28:16 -04:00
Chris Breiding
55ef4c3a11 chore: Prevent unnecessary files from being included in the binary (#17957) 2021-09-06 21:00:30 -04:00
Zachary Williams
16e4759e01 feat: support webpack-dev-server v4 (#17918)
* feat: migrate to new webpack-dev-server public api

* fix: extract version check, and disallow minor releases matching `/3\./` with a starts with req.

* feat: support webpack-dev-server v4

* fix webpack warning causing overlay and types

* pin test dependency

* fix tests that were using incorrect wewbpack configuration

Co-authored-by: Ollie Relph <ollie@relph.me>
2021-08-30 17:42:17 -04:00
Lachlan Miller
ea287d7a23 fix(server): use run#run instead of run#ready to replicate e2e exit behavior in CT (#17894)
Co-authored-by: Zach Bloomquist <git@chary.us>
2021-08-26 15:57:26 +00:00
Lachlan Miller
ab401ecd35 chore: use import type syntax (#17864)
* chore: use import type across repo

* chore: use import type across repo

* chore: use import type across repo

* chore: use import type across repo

* update exports

* update test

* update import type

* update types

* use import type in driver

* correctly export function

* revert test

* remove unrelated code

* revert code

* improve type imports

* override for reporter
2021-08-25 09:11:56 +10:00
Ben Kucera
6f32561d6f feat: add session support (#14350) 2021-08-04 10:23:45 -04:00
Lachlan Miller
257ff95dcb chore: change ct -> component, projectType -> testingType everywhere for consistency (#17461)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-07-26 11:11:56 -05:00
Zach Bloomquist
97c03c1f4d chore: remove Firefox < 80 auto garbage collection (#17368) 2021-07-19 14:11:29 +00:00
Jennifer Shehane
5ced6abb2d docs: Add README for some newly added packages (#17283)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-07-14 09:38:38 -05:00
Tim Griesser
e3a5bdf111 refactor: add @packages/resolve-dist to isolate client/server code (#17109) 2021-06-29 12:54:29 -04:00
Lachlan Miller
0b19da80e1 chore(runner): render spec list inline (behind feature flag) (#17069)
* move spec list to shared package

* render and hydrate spec list

* share base store

* deps

* set current spec

* render spec list in e2e runner

* lint

* add design system import

* add deps

* wip: layout

* use dynamic spec list width

* remove debugging code

* feature flag

* fix tests

* do not emit event when feature flag is OFF

* revert CSS

* revert more changes

* whitelist specListWidth

* add test selector

* update feature flag

* improve feature flag

* add tests for inline spec list

* allow using real onSpecWindow in runner integration tests

* update tests

* improve tests

* make feature flag more explicit
2021-06-29 17:11:08 +10:00
Lachlan Miller
1907299319 chore(server): collapse project-ct and project-e2e into project-base (#17115)
* collapse project-ct and project-e2e into project

* remove project specific classes

* add projectType property

* fix imports

* remove projectType getter

* fix test

* fix imports

* add CT tests

* update test

* fix test

* add import helpers

* add tslib deps

* add tslib
2021-06-29 09:38:59 +10:00
Tim Griesser
02257b0fe1 chore: Move runner-ct dependencies to devDependencies (#17100) 2021-06-24 13:03:01 -04:00
Lachlan Miller
8e11b2d3b2 chore(server,server-ct): share initPlugins and spec watcher via Server Base class #16974 (#16981)
* move specs store to server

* customize spec directory in store

* share plugins via project base

* shared updated config

* share spec finding logic

* fix test

* share spec store code

* remove comment

* try fixing test

* move code around

* move more code

* share sendSpecList

* comment out line

* comments

* logs

* stub chokidar

* remove stub

* move spec watcher to later in the lifecycle

* refactor watcher

* stub out chikidar

* remove old code

* refactor

* update server-ct

* fix implementation

* fix implementation

* fix test

* update types

* add back check for config

* add comment

* make server base abstract

* fix type

* export interface

* move routes to TS

* update types

* types

* fix types

* correctly pass specs store in test

Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-06-23 10:35:12 +10:00
Lachlan Miller
929cac807a chore(runner,runner-ct): reduce duplication with packages/runner-shared (#16866)
* move snapshot-controls to shared package

* share visit-failure component

* share blank-contents

* share message component

* move message styling to shared

* stub scss in unit tests

* remove whitespace

* make dup files match

* share selector playground

* share script error

* share automation-disconnected

* remove old file

* share no-automation

* share error messages

* share errors

* make iframe model files similar

* share iframe-model

* share selector playground

* share style

* share highlight in selector playground

* share dom file

* update import

* share aut-iframe

* wip: shared event manager

* remove CT event manager

* move studio to shared runner package

* fix tests

* use shared event manager in CT runner

* comment back in code

* rename viewporth width/height to width/height

* fix ts errors

* share viewport info

* share header

* revert changed test

* remove old code

* fix tests and move test to shared package

* move tests to shared package

* make container files similar

* share container in runner

* share container

* move test

* move spec

* update tsconfig]

* update headeR

* fix styling

* style

* refactor

* refactor

* reduce public modules

* Update packages/runner-shared/src/event-manager.js

Co-authored-by: Zach Bloomquist <github@chary.us>

* fix percy regression

* fix regression in style

* improve types, try reverting style

* add runner-shared tests to pipeline

Co-authored-by: Zach Bloomquist <github@chary.us>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-06-16 10:22:09 +10:00
Zach Panzarino
400567e8b0 chore: switch fonts to use @fontsource rather than locally maintained version (#16678)
* chore: switch fonts to use @fontsource rather than local version

* Use fontsource for fira instead of custom repo

* Update font weights in reporter

* Update runner ct for fonts

* Fix some issues with runner header

* Update non proxied image

* Try that

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2021-06-08 08:54:40 -05:00
Lachlan Miller
6384b5d928 chore(runner-ct): TS and React improvements (#16614) 2021-05-25 01:53:34 -04:00
Lachlan Miller
c0fc23a052 feat(npm/webpack-dev-server,runner-ct): Normalize webpack errors + general React/TS improvements (#16613)
* feat: normalize webpack errors

* move some files to TS

* add tests

* simplify test

* improve types

Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2021-05-24 17:40:36 -04:00
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