Commit Graph

169 Commits

Author SHA1 Message Date
Tim Griesser 808b2c7002 Merge branch '10.0-release' into 10.0-release-merge-4b50f9ee
* 10.0-release:
  feat: Updating reporter panel's default width to match new designs (#20231)
  feat(unify): Login error states (#20204)
2022-02-21 20:17:37 -05:00
Tim Griesser 7e8370a2a5 working through mapping error cases from develop 2022-02-21 17:07:46 -05:00
Mark Noonan 2997e0e129 feat(unify): Login error states (#20204) 2022-02-21 12:42:02 -05:00
Brian Mann 6ed3540cd5 fix test importing wrong strip_indent 2022-02-18 16:36:00 -05:00
Brian Mann da48210216 Merge branch '10.0-release' into 10.0-release-merge-4b50f9ee 2022-02-18 15:11:59 -05:00
Mark Noonan 5d8f875a7d feat(unify): show spec runner header in run mode (#20189)
Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-02-18 09:41:17 -05:00
Barthélémy Ledoux 3fbed9b81c fix: refactor function getFilesByGlob to use concat instead of isArray (#20245)
* fix: avoid using Array.isArray when possible

* fix: add one more refactoring

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

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-02-18 10:14:21 +10:00
Tim Griesser 61e9f00517 fix: cleanup a few more tests/snapshot errors 2022-02-17 10:43:22 -05:00
Tim Griesser 6727893b1e fix: additional cleanup of errors following merge 2022-02-17 09:59:30 -05:00
Tim Griesser 9307dc01ec fix: types for config changes 2022-02-16 16:14:27 -05:00
Alejandro Estrada 8ab32a3855 fix: rename folder instead of skip on migration (#20145)
Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-02-16 09:12:40 -07:00
Zach Bloomquist 73e936e289 test: clean up scaffoldMigrationProject (#20203) 2022-02-15 18:07:27 +00:00
Barthélémy Ledoux 047a5a8faf fix: migration on windows (#20063)
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2022-02-15 09:51:38 -06:00
Cesar 3103442b92 fix: migration ui differences (#20134)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-02-14 14:00:48 -07:00
Barthélémy Ledoux e7718f7489 fix: remove phantom migration watchers (#20180) 2022-02-14 14:01:14 -06:00
Tim Griesser 6279a7dd10 wip: type fixes & changes after merge 2022-02-14 08:20:11 -05:00
Cesar 0708773fb0 fix: cleanup integration folder after moving specs to e2e (#20149)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
2022-02-11 17:12:49 -07:00
Ryan Manuel c52e07d576 feat: Update version checking logic to query the manifest and ensure ctx.util.fetch can handle a proxy (#20107)
Co-authored-by: Zach Bloomquist <git@chary.us>
2022-02-11 17:00:16 -06:00
Barthélémy Ledoux 759449c440 feat: detect component testing env (#20002)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-02-11 15:38:09 -06:00
Alejandro Estrada 5c5f5d5853 feat: reconfigure project from testing type card (#20109) 2022-02-11 09:31:28 -06:00
Tim Griesser 6b539b05f5 feat: graphql over websockets (#20108)
* feat: graphql over websockets

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-02-10 16:28:37 -05:00
Alejandro Estrada f1390f5200 feat: reconfigure project (#20077)
* feat: reconfigure project

* Clear state

* Add tests

* Update with feedback
2022-02-08 18:23:49 -05:00
Mark Noonan 3a83354aa3 feat: Spec Runnner Header updates (#20033)
Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-02-08 17:47:35 -05:00
Lachlan Miller ebb387938c docs: explain data, sources and actions (#20066) 2022-02-08 13:46:36 +10:00
Alejandro Estrada 6e803597a3 fix: update scaffold template to use correct path (#20047)
* fix: update scaffold template to use correct path

* Remove support for dynamic import on devServer

* Update scaffold template

* Update config files

* Update with feedback

* Rename cypressConfig to cypressDevServerConfig

* Update devserver link

* Update comment
2022-02-07 16:58:24 -05:00
Cesar dcc06de03d fix: typescript default plugin file (#20046) 2022-02-04 14:50:25 -07:00
Alejandro Estrada 5d52758d82 feat: validate specPattern root level (#19980)
* feat: validate specPattern root level

* Fix/add tests

* Fix test

* Update specExcludePattern

* Fix tests

* Fix/add tests

* Fix/add tests

* Fix tests

* Rename specExcludePattern to excludeSpecPattern

* Fix tests
2022-02-04 10:48:10 -05:00
Shawn Taylor 2856124fde feat(unify): unsupported browsers (#19997)
* Display a generic logo if the browser does not have one

* Display icon and tooltip for unsupported browsers and disable them
2022-02-04 08:59:18 -05:00
Alejandro Estrada 321ebd717b feat: add types for urqlCacheKeys (#20027) 2022-02-03 14:33:18 -05:00
Cesar d0b8105c85 fix: rename spec.js to spec.cy.js (#20029) 2022-02-03 09:01:53 -06:00
Barthélémy Ledoux ee08f4ae95 feat: waiting for dependencies to be installed in wizard (#19955) 2022-02-02 14:19:33 -06:00
Cesar b16eb65eb2 fix: migrate config fields to correct the location (#19940)
* testFiles

* ignoreTestFiles

* supportFile

* use utility functions

* remove setupNodeEvents and supportfile from component

* don't throw for supportFiles query

* custom integrationFolder default testFiles

* add default e2e directory to e2e specPattern

* add missing type import

* work on migration project docs

* update docs

* use prettier to run assertion

* add detailed breakdown of expected config and update code to correspond

* remove unused code

* update comment

* update component testing migration expected configurations

* wip: tests for edge cases

* make plugins require relative

* do not add defineConfig if they do not have cypress 10

* edge case of define config

* system test

* do not show supportfile for CT only project

* fix: set correct config file on migration (#19990)

* fix: set correct config file on migration

* add e2e test

* Fix test

Co-authored-by: Cesar Avitia <cesar@cypress.io>

* fix: allow default support file to be TS

* test: with a ts support file

* refactor: duplicate hasTypeScript in migration

* move migration utils files

* rename functions that returns globs with globs

* fix(launchpad): Support migrating projects w/o pluginsFile  (#19993)

* handle case of no plugins file

* fix readme

* style: add comments

* build: fix types

Co-authored-by: ElevateBart <ledouxb@gmail.com>

* fix types

* fix migration unit-tests

* fix: build for unit types

* fix shouldShowSteps unit tests

* fix: typo

* do not import from data-context in frontend test

* remove non-type import

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: Alejandro Estrada <estrada9166@gmail.com>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
2022-02-02 10:42:30 +10:00
Zachary Williams 02a669daae feat: relaunch browser when switching testing types from app (#19961)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-02-01 15:45:42 -06:00
Barthélémy Ledoux 11179609a0 feat: detect package manager in wizard (#19960) 2022-01-31 10:38:06 -06:00
Alejandro Estrada 805ed11345 fix: refactor set specs by specPattern (#19953)
* fix: refactor set specs by specPattern

* Update types

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-01-31 10:48:38 -05:00
Zach Bloomquist b12e3c622f fix: Windows e2e project scaffolding issues (#19938) 2022-01-28 16:10:50 +00:00
Lachlan Miller 97e937840a fix: correctly migrate projects with custom integration folder (#19929)
* repro bug

* write failing case

* remove junk file;

* fix custom integration folder logic

* types

* update readme

* add tests

* adding test for component spec migration

* rejig API

* fix tests

* fix types

* fixing tests

* Update system-tests/projects/migration/README.md

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

* remove old code

* tests

* work on tests

* fix tests

* more testing

* fix workflow

* edge case

* update

* update test

* remove old test

Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
2022-01-29 01:08:25 +10:00
Alejandro Estrada 910f88b328 fix: component spec creation with spec pattern (#19862)
* fix: component spec creation with spec pattern

* Update graphql type

* Create spec from app

* Update fetch policy

* Update spec creation

* Fix TS

* Add tests

* Remove flaky code

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-01-28 09:34:15 -05:00
Barthélémy Ledoux cec46dfc05 fix: seed examples files when no e2e directory is created (#19768) 2022-01-27 16:51:35 -06:00
Ryan Manuel 56626c62a8 feat: Focus browser from select browser screen and on dashboard login (#19842)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-01-27 12:04:15 -06:00
Lachlan Miller 371b0031c1 fix: correctly filter steps based on project migration requirements (#19909)
* refactor: add migration to util

* refactor: better typing for OldCypressConfig

* refactor: move Migration Step to the migration file

* refactor: expose all flags to GQL

* test: make sure e2e test see component testing

* test: improve tests for migration

* test: fix migration tests

* feat: filter explains for configFile

* fix: always get to the Welcome screen

* run init onbefore mount

* re-use the executeQuery

* work on test cases

* custom testfiles test case

* adde readme to project

* typo

* work on filtering steps logic

* add tests for component testing steps

* update tests to reflect correct state

* types

* fix test

* add tests

* remove old code

* refactor: remove double filtering

* fix: open is not referenced

* fix: less key warnings already

* remove the last big key warninng

* fix: remove useless warning

* remove RenameSupport warning

* clean up useless code

* fix: error message fix

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

* types

* make check for folders more explicit

* update readme

* update fixtures

* fix tests

* fix types

* add tests for CT

* refactor

Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: Emily Rohrbough  <emilyrohrbough@users.noreply.github.com>
2022-01-27 17:53:52 +10:00
Alejandro Estrada 1f3f548e79 feat: select e2e scaffold language (#19904)
* feat: select e2e scaffold language

* Use correct file language

* Add tests

* Update test
2022-01-26 22:04:24 -05:00
Zach Bloomquist dfd70445b1 test(app): fix EBUSY/EPERM errors when running e2e tests on Windows (#19848)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
2022-01-26 19:39:13 +00:00
Emily Rohrbough b5d3dae337 test(launchpad): add e2e tests for Project Setup - Round 3 (#19704)
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
Co-authored-by: Tyler Biethman <tbiethman@gmail.com>
2022-01-26 11:27:41 -06:00
Zachary Williams c49f045f82 feat: launchpad browser select (#19830)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-01-25 16:02:29 -06:00
Tim Griesser 4e067bc32e refactor: Remove connection on specs, increase pagination limits elsewhere (#19881) 2022-01-25 15:38:09 -05:00
Tyler Biethman 3bc529b5bb test(unify): Specs Page Workflows - E2E/Component (#19780)
* Adding component testing workflow coverage to specs (index) page.

* Adding e2e tests as well

* Fixing some component tests and types

* Adding test for spec page navigation

* Updating formatting

* Updating tests with flake

* Whoops wrong one

* Trying to hunt down some flakiness

* Still hunting.

* Reverting open IDE button change. Trying different selector for code test

* Skipping flaky code presentation

* Last couple changes

* Importing ref

Co-authored-by: Mark Noonan <oddlyaromatic@gmail.com>
2022-01-25 09:50:13 -06:00
Cesar 7b8e12eb06 feat: migration rename files (#19807)
* getSpecs

* move files

* move specs

* hook up gql and f/e components

* work on migration code

* update gql

* fix logic and update graphql

* wip: types

* connect removing files and write e2e test for it

* support renaming support file

* types

* feat: display migration errors

* fix types

* recursively move files

* fix types

* refactor: use "nextstep" instead of "setStep"

* add function to facilitate live component testing migration

* refactor: make steps filterable

* refactor: make migrationlistitem instead of slots

* test: make sure tests pass

* work on backend for component testing updates

* hook up emitter

* fix types

* types

* remove test

* move isomorphic migration code to separate file

* update imports

* fix test

* more idiomatic usage of gql codegen

* styling

* fix unit tests

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
2022-01-25 23:17:41 +10:00
Jennifer Shehane 3f8c0680b4 Merge pull request #19823 from cypress-io/1f70b21bc4-develop-into-10.0-release 2022-01-24 13:30:06 -06:00
Zach Bloomquist 3ea5171a82 test: run data-context unit tests in CI (#19844) 2022-01-24 17:43:27 +00:00