Commit Graph

474 Commits

Author SHA1 Message Date
Emily Rohrbough 75cce8187c fix(testIsolation): improve the behavior, clarify config options and sync with session command (#24316)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2022-10-24 18:05:58 -05:00
Matt Henkes 382e0b525d fix: detect chrome browser process and tab crashes to no longer hang in CI (#24338)
* Handle chrome tab and browser crashes.

* handle process crashes and add system tests

* handle crashing on windows

* updating comment

* update unit tests

* Update packages/server/lib/browsers/index.ts

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

* Apply suggestions from code review

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

* fix flaky system test probably

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2022-10-21 15:10:26 -05:00
Chris Breiding 1b29ce74aa feat: Enable requiring cy.origin dependencies with require() and import() (#24294) 2022-10-18 16:52:57 -04:00
GitStart f73aef54b0 fix: clean up inconsistencies in UI between sentence case and title case (#23681)
Co-authored-by: Rachel <Raquel.rudermano@gmail.com>
Co-authored-by: Rachel <rachel@cypress.io>
2022-10-14 12:54:59 -07:00
Emily Rohrbough c48b1e0145 fix: browser-skipped tests are correctly recorded to the dashboard (#24217) 2022-10-14 09:54:24 -05:00
Kukhyeon Heo 0bb705c185 chore: Migrate react Highlight component to Vue (#23973)
* add test.

* Add Highlight vue component + remove react component.

* Remove floating-ui dependency.

* fix test failure

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-10-11 14:41:54 -04:00
Zachary Williams 53eef4fbd7 fix: angular and nuxt ct tests now fail on uncaught exceptions (#24122) 2022-10-11 10:21:32 -04:00
amehta265 5af6b27ed9 fix: CSS import in CT Support file is not working (#24117) 2022-10-07 11:24:54 -05:00
Jordan 139046619b test(webpack-dev-server): add more angular mount tests (#23569) 2022-10-06 10:44:58 -05:00
Bill Glesias 695dd275bc feat: same origin spec bridges (#23885)
* chore: enforce strict origin spec bridges

chore: refactor spec bridges to strictly enforce same origin

fix: wrap fullCrossOrigin injection around feature flag inside buffered response

* fix: do NOT set the initial cypress cookie inside the spec bridge as it is sending unecessary cookies

* chore: simplify the finding cypress in the injection code

* chore: change order in which callback fn is declared

* chore: add spec bridge performance issue to validation tests
2022-10-04 18:26:04 -04:00
Jordan c18678381c fix(angular): set webpack base so angular assets load (#24106)
* fix(angular): set webpack base so angular assets load
2022-10-04 10:46:42 -04:00
Jordan 670d438309 fix(angular): call ngOnChanges after mount (#23596)
* fix(angular): call ngOnChanges after mounting
2022-10-03 18:17:46 -04:00
Colum Ferry 0976034225 fix(webpack-dev-server): handle polyfills array for upcoming angular 15 change (#24064)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-10-03 15:49:13 -05:00
Emily Rohrbough b26544cb73 Merge branch 'develop' into sessions-handle-setup-err 2022-09-30 12:51:13 -05:00
Matt Schile f9ef9600fb chore(deps): upgrade electron to v21.0.0 (#23881) 2022-09-30 08:35:24 -06:00
Emily Rohrbough 2a0fc472e6 Merge branch 'develop' into sessions-handle-setup-err 2022-09-30 08:42:33 -05:00
Lachlan Miller 2e363d98a1 fix: do not double handle errors in component testing (#23957)
* fix: do not double catch errors and unhanded exceptions in component testing

* add test fixtures

* revert whitespace

* snaps

* better types

* improve types

* do not double capture errors

* add test

* adding tests

* updates

* revert

* update

* types

* give up on types, it is impossible

* snaps

* fix

* remove link
2022-09-30 09:28:52 +10:00
Emily Rohrbough c99e09b98b Merge branch 'develop' into sessions-handle-setup-err 2022-09-27 12:50:15 -05:00
Mike Plummer bf590eba3f feat: CT stack traces (#23916)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
Co-authored-by: astone123 <adams@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-09-26 17:31:46 -05:00
msebas 6a40936604 fix: allow asynchronous vue cli init phase (#23936)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-09-26 16:04:48 -05:00
Emily Rohrbough 3b7a397528 Update system-tests/projects/session-and-origin-e2e-specs/cypress/e2e/session/errors.cy.js
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2022-09-26 12:35:49 -05:00
Emily Rohrbough 842be2e200 fix: correctly fail session when setup func has failing command or assertion 2022-09-26 11:52:37 -05:00
Emily Rohrbough be73359437 Merge branch 'develop' into cache-sessions 2022-09-23 11:12:14 -05:00
Emily Rohrbough ca0fe1caf6 fix broken system -test and improve error handling I spent 3 hrs debugging 2022-09-23 11:05:12 -05:00
Ryan Duffy acc1050dd2 feat: Add support for optional env key to browser launch options (#23624)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-09-22 16:44:58 -05:00
Emily Rohrbough 77c5ebfeb9 Merge branch 'develop' into cache-sessions 2022-09-22 15:05:28 -05:00
Emily Rohrbough a1b5db6c5c Apply suggestions from code review
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2022-09-22 13:52:03 -05:00
Lachlan Miller 4c647f6d5b feat: allow vite/webpack config to be an async function (#23605)
* vite dev server async fn

* test projects

* update types

* simplify setup

* fix tests

* types

* remove junk file

* update comments

* add more tests

* fix system tests
2022-09-22 14:11:04 +10:00
Emily Rohrbough 37ed973118 okay -- fix all the test (hopefully) 2022-09-21 12:07:04 -05:00
Emily Rohrbough f45d607a92 fix system tests and bug found for recreating global session after failed with validation 2022-09-21 07:40:17 -05:00
Chris Breiding c48b80a0df feat: Support dependencies in cy.origin() callback (#23283)
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2022-09-20 14:04:24 -04:00
Emily Rohrbough 9e2c15d23a Merge branch 'develop' into cache-sessions 2022-09-20 08:09:19 -05:00
Emily Rohrbough 8c3a68d80a fix tests 2022-09-20 08:08:44 -05:00
Emily Rohrbough 6968c8ea7a tests 2022-09-19 15:18:21 -05:00
Casey Holzer 823ffd0ca9 fix: Webpack 5 automatic publicPath error (#23760)
* fix: Webpack 5 automatic publicPath error

* update webpack-preprocessor test

* fix: disable webpack-preprocessor chunking

* stub LimitChunkCountPlugin

Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-09-19 11:35:09 +10:00
Emily Rohrbough d00dd12d5a Merge branch 'develop' into cache-sessions 2022-09-16 11:07:46 -05:00
Lachlan Miller b9fec60604 fix(server): use correct property for spec name in CLI (#23794)
* use correct property in CLI

* use longer spec name everywhere in report

* snapshots
2022-09-16 16:39:28 +10:00
Mike Plummer 64c0f45182 fix: Fix missing it.skip function in Angular tests (#23829)
* fix: restore mocha methods

* Simplify `it.skip` patch, add tests

* Consolidate test runs for perf

* Add tests to validate `skip` and `only` behaviors

Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-09-16 09:42:01 +10:00
Emily Rohrbough b0c8bc5c0e fix 2022-09-15 15:41:24 -05:00
Emily Rohrbough f459b21fc0 Merge branch 'develop' into cache-sessions
# Conflicts:
#	packages/server/lib/remote_states.ts
#	packages/server/lib/socket-base.ts
#	packages/server/test/unit/socket_spec.js
2022-09-15 13:10:52 -05:00
Matt Henkes 6ee305ba41 feat: Allow cy.visit to visit cross origin sites. (#23297)
* Initial async changes

* Small fixes and test updates.

* updating tests

* Fixes for cookie login tests

* remove the onlys

* Most tests passing

* Fix driver tests?

* fix firefox test?

* fix unit tests

* fix tests??

* a better check

* fix integration tests

* minor cleanup

* Comment out tyler fix for 10.0 origin issue

* also fix integration tests

* remove fixmes

* Adding Retries for cookie actions. May break other error tests.

* Address (some) PR comments

* update to warn about cross origin command AUT in assertions

* Fix type errors

* Move document.cookie patch to injection

* Adding iframe patching.

* forward errors prior to attaching

* Add error message when using visit to visit a cross origin site with the onLoad or onBeforeLoad options.

* Attempt to fix test errors.

* more fixes, but not all

* use the origin policy

* Fix types

* more fixes

* consider chromeWebSecurity when checking if you can communicate with the AUT

* firefox

* prevent hangs if before unload happens after on load.

* Fix some ToDos

* code cleanup

* remove quotes

* Code review changes

* more cr changes

* fix tests possibly

* for realz this time

* roll back change

* Fix some flake

* Fix flakey xhr test hopefully.

* oops, forgot communicator changes. need those.

* modify error message to not lose the original error

* read config right derp

* simpler check

* no unused vars

* don't put config on window

* Make isRunnerAbleToCommunicateWithTheAUT a util function instead of attaching it to cypress.

* fix a race condition maybe

* clear document when window is cross origin... we'll see if this breaks anything.

* Retry if querying against the wrong AUT

* use timeout

* Don't print the retrying string unless you're retrying due to command aut origin mismatch

* try handling undefined document

* Code review updates. What could go wrong??

* Apply suggestions from code review

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* minor fixes

* try aut location and move the async state collection.

* fix flake around the loading message, probably

* Fix system tests and some flake around redirect counts.

* Improve error handler prior to attaching.

* Code review suggestions

* use a generated ID when promisifying post message

* clean up promise helper

* skip xhr test until issue is resolved.

* Apply suggestions from code review

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

* use state directly

* Apply suggestions from code review

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* Update packages/driver/src/cypress/error_messages.ts

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

Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2022-09-15 12:28:27 -05:00
Emily Rohrbough 13e986dfd5 Merge branch 'develop' into cache-sessions
# Conflicts:
#	packages/app/src/runner/event-manager.ts
#	packages/driver/cypress.config.ts
#	packages/driver/src/cy/commands/sessions/index.ts
#	packages/reporter/src/sessions/sessions.tsx
#	packages/server/lib/project-base.ts
#	packages/server/lib/server-base.ts
#	system-tests/test/session_spec.ts
2022-09-15 11:19:14 -05:00
Adam Stone fada0be117 chore: fix flake for experimentalStudio config error test (#23800) 2022-09-13 15:14:27 -04:00
Zach Bloomquist 566a1a208c feat: gate WebKit behind experimentalWebKitSupport in prod (#23711) 2022-09-13 01:56:13 +00:00
Zachary Williams 96b03abc74 fix(svelte): default mount log to true (#23771) 2022-09-12 17:20:02 -05:00
Tyler Biethman 405e7f7ccb chore(webkit): update error stack parsing and related system tests (#23730)
* chore(webkit): update error stack parsing and related system tests

* Adding better comment

* Putting column back. Indexing at 1.

* Let's wait for WebKit fixes to land for this

* Using default name/location values already used in stack enhancing logic

* Incorrect bracket in regex

* Trying without location, as the fake location causes more problems downstream.

* Loosening regex around locations in stack replacement

* Defaulting location sans row/column

* Parsing stack lines for reporter with unique regex

* D'oh

* Making the validation against '<unknown>' more specific

* Don't want a capture group here

* Updating spec_isolation system tests

* Consolidating regex pattern to errors package

* Can just keep this global now

* Simplifying regex. Removing lineAndColumn numbers from unknown locations.

* Updating system test stack regex

* Getting better baseline

* Revert "Updating system test stack regex"

This reverts commit 2b91eff369.

* Forking normalization for webkit to track down diffs

* Ensure line or column are set before rendering in enhanced stack

* Need to be a little more flexible

* Tweaking leading newline detection

* Trying out new composed regex

* Few more tweaks for multiple leading newlines and file locations without function name

* Updating remainderOfStack pattern with proper escaping

* Cleaning up comments

* Filtering native code from absolute path logic

* Rebuild CI after outage
2022-09-12 15:40:12 -05:00
Lachlan Miller a2170ac1ff chore: add regression test (#23695) 2022-09-12 10:21:13 +10:00
Rachel 406eb069a6 fix: issue-7715 (#23575)
Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
2022-09-09 11:36:19 -07:00
Emily Rohrbough e32e3638df fix: suite-level-only configuration does not throw when config is restored (#23646) 2022-09-08 21:19:04 -05:00
Emily Rohrbough 38412925ba fix: correct dashboard result when successful spec run and videoUploadOnPasses=false (#23660) 2022-09-07 19:42:34 -05:00