Commit Graph

17 Commits

Author SHA1 Message Date
Matt Schile 69873ae988 chore: remove experimentalSessionAndOrigin flag (#24340)
BREAKING CHANGE: removed experimentalSessionAndOrigin flag. testIsolation defaults to strict
2022-10-24 08:49:13 -06:00
Bill Glesias a7ecbec2a3 fix: do not allow experimentalSessionAndOrigin to be available in CT … (#21588)
* fix: do not allow experimentalSessionAndOrigin to be available in CT per https://github.com/cypress-io/cypress/issues/21573

* remove experimentalSessionAndOrigin config as it is read only

* move runner session tests under own system test project to turn on experimentalSessionAndOrigin flag

* refactor session ui runner tests to point to runner-session-e2e-specs folder

* fix cypress_spec.js to account for experimentalSessionAndOrigin options

* remove experimentalSessionAndOrigin from env args
2022-05-23 13:55:15 -04:00
Alejandro Estrada fbe645224e fix: handle errors on plugins migration child process (#21442)
* fix: handle errors on plugins migration child process

* Update error handler

* Remove console.log
2022-05-13 16:04:35 -05:00
Lachlan Miller e218cd8ed5 fix: better language detection in migration/setup workflow (#21220)
* add function to detect lang

* update test files

* update pkg.json

* remove concept of lang from wizard

* update tests

* fix tests and add debugging

* update test

* fix test

* add ts to ts project deps

* update assertion

* empty commit to trigger CI

* fix ts

* add debug log
2022-05-09 12:56:11 +10:00
Blue F c7ffaaee44 Merge pull request #20568 from cypress-io/UNIFY-1291-remove-old-schema
chore: Remove old config schema
2022-03-16 09:28:25 -07:00
BlueWinds 3a053a3727 Remove additional references to deleted schema file 2022-03-15 10:53:37 -07:00
BlueWinds 0114a59e86 Merge remote-tracking branch 'origin/10.0-release' into UNIFY-1302-slowTestThreshold-by-testing-type 2022-03-14 11:13:53 -07:00
Lachlan Miller 742f261a1b fix(launchpad): correctly migrate projects settings config in plugins (#20509)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-03-11 13:04:06 -06:00
BlueWinds 95b9fc7e73 Move slowTestThreshold into testing type specific configuration 2022-03-10 14:28:16 -08:00
Alejandro Estrada d69e26fd58 fix: remove mileading comment (#20448)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-03-02 13:59:26 -05:00
Lachlan Miller 7a029256e8 fix(launchpad): support default export (#20383)
Co-authored-by: David Munechika <david.munechika@gatech.edu>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2022-03-01 17:33:44 -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
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
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
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
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
Cesar bdc7c01d62 feat: convert cypress.json to cypress.config.js (#19748)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
2022-01-20 15:43:09 -06:00