Commit Graph

406 Commits

Author SHA1 Message Date
Lachlan Miller 91beb9012c feat: experimental single tab run mode for component testing (#23104)
* revive logic to run CT in a single tab

* add feature flag: experimentalSingleTabRunMode

* remove log

* reset browser state between tests

* document single tab run mode experiment;

* add system test for experimental run mode

* fix snapshots

* use more simple project for testing

* additional guard;

* fix test

* Apply suggestions from code review

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

* destroy aut after each spec

* update snapshot

* fix types

* add experiment flag error

* add warning when using experimental flag with e2e

* build binaries for experimentalSingleTabRunMode feature

* build binaries take 2

* make error message more open ended

* destroy AUT later in run mode lifecycle

* add additional assertion around experimental flag

* simplify error

* remove test code from production code

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-08-16 10:44:14 +10:00
Kukhyeon Heo 0aa89fa5b3 chore: add check-ts command to pkg/driver (#22912)
Co-authored-by: Blue F <blue@everblue.info>
Co-authored-by: Rachel <Raquel.rudermano@gmail.com>
Co-authored-by: Rachel <rachel@cypress.io>
2022-08-15 09:46:24 -05:00
Emily Rohrbough 0729a6833b feat: add testIsolation option and support describe-only overrides (#23040)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-08-12 11:56:39 -05:00
Zachary Williams 94e78eba04 feat: enable Angular CT support (#23089) 2022-08-03 17:21:34 -05:00
Zachary Williams ecad07e27b chore: remove angular integration (#23004) 2022-07-29 10:01:01 -05:00
Jordan 4131b1fa84 feat(angular): angular mount (#22858)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-07-26 17:44:44 -05:00
Jordan dc5d9de290 feat(webpack-dev-server): add angular handler (#22314)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-07-22 13:41:23 -05:00
Bill Glesias 5ff15046e2 feat: add experimentalModifyObstructiveThirdPartyCode flag for regex rewriter (#22568) 2022-07-22 08:30:20 -06:00
Puranjay Jain 198b28d1d7 fix: for hosts typing in cypress.d.ts (#22718)
* Update cypress.d.ts

Fix the hosts typing in cypress typings file

* fix: Add ts type for hosts in a server base file
2022-07-14 22:30:55 -07:00
Ishan Madhusanka 5d5574e1bb fix: add baseUrl to TestConfigOverrides (#22445)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-06-28 11:14:38 +10:00
Zachary Williams 868081a976 test: update dev-server types and add tests 2022-06-13 12:06:26 -05: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
Tim Griesser 0cbf3dfeb5 fix: UNIFY-1611, add next to framework options & add tests (#21557)
* fix: UNIFY-1611, add next to framework options & add tests
2022-05-19 10:31:19 -04:00
Zach Bloomquist 8043405688 Merge remote-tracking branch 'origin/develop' into 10.0-release 2022-05-19 09:56:39 -04:00
Tyler Biethman 33a60f8521 Merge branch '10.0-release' into tbiethman/develop-into-10-with-electron 2022-05-16 09:20:27 -05:00
Matt Schile fdaf5fb22f chore: deprecate Cypress.Cookies.preserveOnce and Cypress.Cookies.defaults (#21455) 2022-05-16 08:15:31 -06:00
Alejandro Estrada 3274da7842 fix: terminal error message for non migrated config (#21467)
* fix: terminal error message for non migrated config

* fix: terminal error message for non migrated config
2022-05-13 16:56:01 -05:00
Tyler Biethman 74fa12ab11 Merge branch 'develop' of https://github.com/cypress-io/cypress into tbiethman/develop-into-10-with-electron
# Conflicts:
#	circle.yml
#	packages/driver/cypress/integration/commands/actions/trigger_spec.js
#	packages/driver/cypress/integration/commands/actions/type_spec.js
#	packages/driver/cypress/integration/commands/files_spec.js
#	packages/electron/package.json
#	packages/launcher/lib/darwin/util.ts
#	packages/launcher/package.json
#	packages/server/__snapshots__/args_spec.js
#	packages/server/__snapshots__/cypress_spec.js
#	system-tests/projects/non-proxied/cypress/fixtures/cy-non-proxied.png
#	yarn.lock
2022-05-12 12:51:59 -05:00
Kukhyeon Heo 9b11e2ceef fix: remove unnecessary eventemitter2 type definitions from cy, Cypress (#21286)
* fix: remove unnecessary eventemittor2 type definitions from cy, Cypress

* feedback.

* fix trailing whitespace error.

Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2022-05-11 11:05:53 -05:00
Bill Glesias d782cfc3f7 remove trailing white spaces in cypress.d.ts cli types 2022-05-02 15:48:03 -04:00
Bill Glesias bd7d2285f4 fix typings errors introduced by the multi-domain merge 2022-05-02 15:35:59 -04:00
Bill Glesias 373ed05298 Merge branch 'develop' into md-10.0-merge 2022-05-02 12:26:58 -04:00
Bill Glesias 7e79860466 Merge branch '10.0-release' of github.com:cypress-io/cypress into md-10.0-merge 2022-04-29 10:41:47 -04:00
Bill Glesias bbd9e7f1b2 Merge branch 'develop' into md-10.0-merge 2022-04-29 10:39:54 -04:00
Tim Griesser 598d94c62a feat: Auto-merge config when adding new testing type (#21152)
* wip on AST merging Cypress Config

* Adding test coverage & better implementation for config merging

* fix types, use new addToCypressConfig for projectId

* refactor: separate export for browser

* printing w/ recast

* don't remove prettier in this PR

* Update packages/config/src/ast-utils/addToCypressConfig.ts

* make comment more robust

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2022-04-25 18:58:44 -04:00
Chris Breiding 3e6d6bfe15 chore: Updates based on PR feedback (#21137)
* add generic to cy.origin type

* fix log type, update/add comments

* fix comment indentation

* specific generic

* move RemoteState to internal types

* add on links to experimental flag descriptions

* chore: reduce nesting by flipping condition

* fix test title

* simplify failing log

* rename variable

* delete error property

* fix types

* fix type

* remove unnecessary todo

* update wait test

* jquery -> this

* update comment

* remove vestigial autoRun

* use finally

* re-throw non-security errors

* move back getting index

* add new state types

* remove unnecessary export

* startsWith -> includes

* it -> them

* update system test

* remove use of promise constructor

* Revert "remove use of promise constructor"

This reverts commit 35ccc28b6f.

* log errors from Page.getFrameTree

* test if anything breaks when removing optional chaining operator

* remove vestigial file

* handle queue ending in cross-origin driver

* fix coordinates spec

* improve chrome/firefox check in extension

* improve secure cookie regex

* use production mode for cross-origin driver bundle

* adding remoteStates.getPrimary

* catch and ignore queue errors

* remove optional chaining in postMessage handler

* removed unnecessary async

* update frame tree on cri client reconnect

* fix formatting

* renaming remoteStates variable

* prevent requests from being paused if experimentalSessionAndOrigin flag is off

Co-authored-by: Matt Schile <mschile@cypress.io>
2022-04-22 14:58:02 -05:00
Matt Henkes ebaaf18268 Merge branch 'develop' into feature-multidomain 2022-04-22 09:31:41 -05:00
Kukhyeon Heo 0bb655e379 chore: remove command type todos (#20601)
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Rachel <rachel@cypress.io>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2022-04-22 14:28:13 +00:00
Matt Henkes f1644045fc Merge branch 'develop' into feature-multidomain 2022-04-21 16:36:40 -05:00
Ahmed Tarek 342bc06ae3 fix: prevObject types (#21106)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Rachel <rachel@cypress.io>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2022-04-21 15:54:50 -05:00
Zach Bloomquist 79267ddc0f fix: revert "fix: types for Cypress.Commands.add (#20376)" (#21104) 2022-04-15 19:03:36 +00:00
Ahmed Tarek 92d94252ca fix: types for Cypress.Commands.add (#20376) (#20377)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-04-15 15:35:45 +00:00
Matt Schile 27e1afbdd7 chore: (multi-domain) renaming flag to experimentalSessionAndOrigin (#21053) 2022-04-13 10:50:17 -06:00
Emily Rohrbough 38d860ca97 Merge branch '10.0-release' into merge-develop-4-12 2022-04-13 10:53:35 -05:00
Tim Griesser 001a7244f8 fix: add possible frameworks to object API config (#21056) 2022-04-13 08:41:19 -04:00
Matt Schile d98d0e1e79 chore: (multi-domain) add experimentalLoginFlows to the settings page (#21030) 2022-04-12 09:23:58 -06:00
David Munechika ccae965edc fix merge conflicts 2022-04-12 08:52:19 -04:00
Matt Henkes 65d75ddf1d Merge branch 'develop' into feature-multidomain 2022-04-11 14:07:08 -05:00
Kukhyeon Heo 4815a5644f fix: add missing Cypress.Commands.addAll() types (#20894)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-04-11 12:25:11 -05:00
Chris Breiding f6975f8caa chore: audit cross-origin related TODOs/FIXMEs (#20975)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-04-08 15:11:10 -04:00
Matt Schile 782d89f94a chore: (multi-domain) update to support path and hash (#20953) 2022-04-07 14:23:24 -06:00
Matt Henkes c68692212a chore: [Multi-domain] Rename the last of the domain/multi-domain to origin type names. (#20965)
* chore: [Multi-domain] Rename the last of the domain/multi-domain to origin type names.

* oops

* typo

* Update packages/driver/cypress/integration/e2e/multi-domain/multi_domain_validation_specs.ts

Co-authored-by: Matt Schile <mschile@gmail.com>

* Update packages/driver/cypress/integration/e2e/multi-domain/multi_domain_validation_specs.ts

Co-authored-by: Matt Schile <mschile@gmail.com>

Co-authored-by: Matt Schile <mschile@gmail.com>
2022-04-07 12:30:06 -05:00
Tim Griesser 53cc72c4a2 feat: add new vite-dev-server package based on object API & bundling (#20925)
* improve error experience for cy-in-cy

* feat: Adding vite-dev-server-fresh w/ react tests against 2.8.6 & 2.9.1

* add system tests for vite-dev-server-fresh

* cleanup a bit

* Add snapshots

* Update system-tests/project-fixtures/react/cypress-vite.config.ts

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* add comments

* Update npm/vite-dev-server-fresh/src/devServer.ts

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* fix: update logLevel for snapshots

* fix logging of vite inspect URL

* add experimentalSessionSupport per @brian-mann suggestion to clear state between tests

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-04-07 12:48:29 -04:00
Emily Rohrbough 0caba93a7a chore: merge dev into 10.0 release (#20950)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-04-07 09:40:25 -05:00
Matt Schile dcbc68b8e7 chore: (multi-domain) updating experimental flag to experimentalLoginFlows (#20942) 2022-04-06 15:08:18 -06:00
Matt Henkes 17e6bf431e chore: [Multi-domain] Rename switchToDomain to origin (#20927)
* chore: [Multi-domain] Rename switchToDomain to origin

* Regenerate system tests snapshots

* Update cli/schema/cypress.schema.json

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>

* Update cli/types/cypress.d.ts

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2022-04-06 11:26:03 -05:00
mjhenkes 0772f8557b Merge branch 'develop' into feature-multidomain 2022-04-06 09:51:49 -05:00
Emily Rohrbough d0fc93b0dc chore: add internal log group API and update log group styles (#20857)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-04-05 17:18:39 -05:00
Mark Noonan 8039be1157 Merge branch 'develop' into marktnoonan/merge-develop-2022-4-5 2022-04-05 17:32:47 -04:00
Matt Henkes 81e9283c7a Merge branch 'develop' into feature-multidomain 2022-04-05 11:40:02 -05:00