Commit Graph

441 Commits

Author SHA1 Message Date
Emily Rohrbough 71dff8c56b pull cached state from backend 2022-08-29 13:45:54 -05:00
Emily Rohrbough 835d337103 round 1 2022-08-29 13:31:09 -05:00
Adam Stone 03182625cf feat: Enable create from Vue component for projects with custom spec patterns (#23298) 2022-08-18 11:00:29 -04:00
Kukhyeon Heo a27affe447 chore: refactor server/lib/config.ts to pkg/config (#22530)
Co-authored-by: Rachel <rachel@cypress.io>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Rachel <Raquel.rudermano@gmail.com>
2022-08-17 10:54:02 -07:00
Mike Plummer 741254803f feat: ACI Notification Banners (#23256) 2022-08-16 17:05:09 -05:00
Tyler Biethman 937d4e7f73 fix: ensure absolute directories in glob patterns are leading prior to removal (#23368)
* fix: ensure absolute directories in glob patterns are leading prior to removal

* Removing errant slash
2022-08-16 10:09:59 -05:00
Mike Plummer b91e4e3c2d feat: Flake Indicator ACI (#23049) 2022-08-15 11:12:09 -05:00
Rachel c40a120aa7 chore: skip or fix flaky tests (#23167) 2022-08-15 08:50:34 -07:00
Tyler Biethman e80e4e8334 fix: remove working directory from --spec glob patterns (#23296)
* fix: remove working directory from glob patterns

* Adding a few specs to FileDataSource

* Cleaning up leaky stubs

* Adding little system test

* Get mac binary too
2022-08-15 16:57:05 +10:00
rockindahizzy 2899b21642 feat: Auto select project when an organization only has one project (#23266)
* feat: Auto select project when an organization only has one project

* Fix failing e2e test

* Code review changes

* Resolve side effect of adding additional project to gql stub

* Fix issue with selected project not being set

* misc improvements to types

* Revert changes based on product decision

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-08-15 13:11:29 +10:00
Zachary Williams 17f442d592 feat: scaffold react18 projects in component setup (#23251)
* feat: scaffold react18 projects in component setup

* try catch semver.major

* address feedback
2022-08-12 09:19:38 +10:00
Mark Noonan 3d98f98136 fix: save spec filter term (#22755) 2022-08-09 12:44:35 -04:00
Adam Stone 7ef6f972aa feat: Create spec from Vue component (#22898)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-08-09 11:50:27 -04:00
Lachlan Miller ef9df8d8bf chore: simplify error/warning management in data context (#23034)
* chore: remove unused prop

* remove duplicate error and warning abstraction

* remove incorrect warning clobber

* do not clear warning on set project

* remove concept of currentProjectData

* collapse errors and warnings into diagnostics key

* remove TODO [ci skip]

* simplify code

* remove unused code
2022-08-08 10:16:49 +10:00
Lachlan Miller ee177195eb fix: windows CI with Vite 3 (#23052)
* chore: patch vite

* remove readJsonSync methods

* rename patch

* fix tests

* reduce flake by using a timeout

* update test

* do not build mac and linux binaries
2022-08-02 10:18:13 -05:00
Lachlan Miller cbb5e35762 feat: warn when detecting unsupported dependencies for component testing (#22964)
* wip: basic implementation

* update dependencies to have maxVersion

* handle promises correctly

* fix test

* update test project and styling

* only check for CT deps in CT

* install required deps

* revert

* rework detection and extend tests

* remove unused code

* remove more code

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-08-01 11:40:52 +10:00
Zachary Williams a7b140d438 feat: add angular-ct project setup (#22897) 2022-07-28 11:14:37 -05:00
rockindahizzy 72078ef3d2 fix: Throw error when custom config file does not return expected value (#22927)
* fix: Throw error when custom config file does not return expected value

* Improve test to avoid false positive

* Code review changes

* remove old code

* remove unused yarn.lock

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-07-28 10:19:39 +10:00
Mike Plummer 41a0271c34 feat: Add banners for incomplete project connection states (#22810) 2022-07-26 11:16:02 -05:00
Mike Plummer 36278fca01 feat: Add login state to manifest request for analytics (#22791) 2022-07-19 17:16:59 -05:00
Adam Stone 1b688694fe fix: Ensure that file watchers are closed before Electron exits (#22606)
* Adding prototype before-quit handler to handle async teardown.

* Getting binary builds

* Let's try this then

* Working the async changes backwards, hope I got them all. Unit tests will be a disaster currently.

* Actually getting build artifacts for testing

* Moving logic to server interactive/run

* fix: Fix some tests

* fix: Revert changes to circle config

* fix: Fix some tests

* fix: Fix more tests

* fix: Remove dead code comment

* fix: Fix ProjectDataSource tests

* fix: Add comment prefix

* fix: Remove comment and unnecessary async

* fix: Build Mac binary

* Reverting run changes

* Addressing PR comments. Cleaning up a few naming quibbles I had.

* Addressing TODO regarding onLoadError watcher cleanup.

* Correcting catch

* Fighting some unref errors on these catches

* Reverting making this private en lieu of binding

* Should have left these as instances, whoops

* Removing unnecessary test that was previously skipped

* Adding a couple cheap unit tests for the new interactive mode behavior

Co-authored-by: Tyler Biethman <tbiethman@gmail.com>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2022-07-17 15:57:10 -05:00
Mike Plummer 59c926ba77 fix: Resolve Git Info when using alternative shells or Windows (#22741) 2022-07-15 18:55:21 -05:00
Mark Noonan 9a1e73f127 fix: respect CYPRESS_NO_COMMAND_LOG in env (#22641)
* avoid throwing error if reporter is not found

* make it safe to call `empty` when no element is found

* don't set up reporter without reporter root el

* expose "no command log" in window config object

* set up noCommandLog in runner ui store

* handle noCommandLog in open mode

* handle noCommandLog in Run Mode

* handle noCommandLog in runner styles

* don't clean up reporter if there's no reporter

* remove left 1px border in run mode always, not just for screenshots

* fix missing export

* add run mode test

* add open mode tests

* tweak comment

* minor test updates

* change variable name

* don't render reporter-related elements if hidden

* allow runner to still be cleaned up

* fix resizable panel assertion

* swith back to v-show for panels

* update tests
2022-07-15 17:46:52 -04:00
Rachel 871e54fa6b fix: remove projects from breadcrumbs entirely for non-global mode projects (#22073)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: Mark Noonan <mark@cypress.io>
2022-07-11 11:02:54 -07:00
Adam Stone a80c863685 fix: Correctly catch and clear errors during resetErrorAndLoadConfig mutation (#22514) 2022-07-01 10:14:02 -04:00
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
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
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
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
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
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
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
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
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 600daef5cd fix: windows (#22234) 2022-06-10 09:04:43 -05: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
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
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
Tim Griesser 309c31f899 fix: changes to correct typescript detection behavior (#22058)
* fix: changes to correct typescript detection behavior, fixes #22034

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-06-02 17:23:58 -04:00
Alejandro Estrada e170d5d014 fix: do not watch specs on run mode (#22060) 2022-06-02 15:14:19 -05:00
Alejandro Estrada 9caf623531 fix: do not show incorrectly support file migration step (#22015)
* fix: do not show incorrectly support file migration step

* Add supportFile

* Delete supportFile

* Update regexp

* Update comment

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-06-01 18:15:07 -05:00
Blue F e12e0d96dd fix: Don't include defineConfig if cypress isn't available from project root (#22005)
* fix: Don't include defineConfig in generated config if cypress isn't available from project root

* Add e2e test

* Trying to figure out why test fails in CI

* Fix ts error, more specific timeout

* Once more with feeling

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-06-01 14:48:02 -07:00
Tim Griesser f33eca81bd fix: #22002 choikdar ignore EPERM issues (#22011)
* fix: #22002 choikdar ignore EPERM issues

* fix unit test

Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-06-01 16:49:15 -04:00
Alejandro Estrada e0e5a60ef6 fix: prevent adding default supportFile on migration (#21985)
* fix: prevent adding default supportFile on migration

* Update unit tests

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-06-01 09:26:18 -04:00
Tim Griesser ae8d4b2b05 fix: cleanup test flake (#21989)
* fix: test flake in e2e tests

* fix flake in GitDataSource.spec.ts
2022-06-01 09:24:41 -04:00
Tim Griesser 566a7b1feb fix: UNIFY-1774 error if component config is not sourced for webpack/vite (#21563)
* fix: UNIFY-1774, throw error if we do not detect a webpackConfig for the user

* remove dead code, rely on auto-sourcing webpack config

* fix error styles, exit the devServer process when config is missing, guard against empty remoteState

* Add missing webpack for todos project

* Update npm/webpack-dev-server/src/makeWebpackConfig.ts

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-05-31 14:34:05 -04:00