Commit Graph

18746 Commits

Author SHA1 Message Date
Bill Glesias
cd2fde9047 fix: misc cy origin cleanup (#23914)
* chore: remove cannot_visit_previous_origin error message as it is no longer used

* fix: wrap MaybeEndRequestWithBufferedResponse fullCrossOrigin check around feature flag
2022-09-21 16:14:19 -04:00
github-actions[bot]
085bc1ebc0 chore: Update Chrome (stable) to 105.0.5195.125 and Chrome (beta) to 106.0.5249.30 (#23421)
Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
2022-09-21 11:55:09 -04:00
Jordan
3c8114027e Merge pull request #23878 from cypress-io/jordanpowell/cypress-xpath
feat(xpath): move cypress-xpath to @cypress/xpath
2022-09-21 08:20:05 -04:00
Rachel
070b3c9ba5 fix: relativeFile is now relative to repo root (#23833)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-09-20 13:52:24 -07:00
Bill Glesias
fd941023a2 fix: properly replace integrity tags in script resources when experimentalModifyObstructiveThirdPartyCode is true (#23820)
* test: add failing unit test for expected behavior

* fix: add regex to strip out dynamic setAttribute integrity setting when modifyObstructiveThirdPartyCode is enabled

* fix: properly replace integrity tags inside script resources when experimentalModifyObstructiveThirdPartyCode is true

* test: fix regex rewritter to handle a few other cases of rewriting
integrity. Now accurately applies to other broad strokes

* rename html integrity re to general as this replaces both html and javascript integrity tags in certain cases

* chore: rephrase comments in regex rewriter for MO third party code
2022-09-20 16:03:17 -04: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
Jordan
3547a0e73b Update npm/xpath/.releaserc.js
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-09-20 13:58:14 -04:00
Emily Rohrbough
6984a1aa7b Merge pull request #23899 from cypress-io/release-npm-from-develop 2022-09-20 12:41:39 -05:00
Emily Rohrbough
2c7bcc70c6 Apply suggestions from code review 2022-09-20 11:49:26 -05:00
Jordan
c6b423d80e Merge branch 'develop' into jordanpowell/cypress-xpath 2022-09-20 10:56:01 -04:00
Emily Rohrbough
86b02f3c96 chore: remove master branch from dev workflow 2022-09-20 08:45:38 -05:00
Lachlan Miller
11dc3c1f62 chore: update contributing guidelines (#23871)
* chore: update contributing guidelines

* Apply suggestions from code review [skip ci]

Co-authored-by: Blue F <blue@cypress.io>

Co-authored-by: Blue F <blue@cypress.io>
2022-09-20 10:23:11 +10:00
Jordan
e88089753c chore(xpath): add release settings 2022-09-19 17:08:12 -04:00
Jordan
066b56d0a7 chore(xpath): remove xpath from cli files array 2022-09-19 17:08:12 -04:00
Jordan
bd39b3f3ef chore(xpath): update author 2022-09-19 17:08:12 -04:00
Jordan
3bd0d8c750 chore: clean up PR 2022-09-19 17:08:12 -04:00
Jordan
ede8ba418f feat(xpath): move cypress-xpath to @cypress/xpath @cypress/xpath-v2.0.1 2022-09-19 17:08:12 -04:00
Bill Cheng
8748588f8f fix: update fileContents to contents (#23869) 2022-09-19 16:03:19 -04: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
Adam Stone
466be9f1f0 fix: force Webpack to emit assets on error (#23844)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Stokes Player <stokes@cypress.io>
2022-09-16 16:43:07 -04:00
Emily Rohrbough
a7945e835a Merge pull request #23602 from cypress-io/sessions-instrument-panel 2022-09-16 12:11:07 -05:00
Emily Rohrbough
a1faac76fd Merge branch 'develop' into sessions-instrument-panel 2022-09-16 11:04:56 -05:00
Emily Rohrbough
fac44fa699 Merge pull request #23600 from cypress-io/cache-sessions-server 2022-09-16 11:03:48 -05:00
Emily Rohrbough
8f402854f5 Update packages/server/lib/experiments.ts
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2022-09-16 10:35:37 -05:00
Emily Rohrbough
4004d851b9 Merge branch 'develop' into cache-sessions-server 2022-09-16 10:35:12 -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
Stokes Player
314a0b2e0d feat: add cohorts for A/B testing in Specs List Banners (#23735) 2022-09-15 22:20:30 -04: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
f49884fc46 Matts PR that just merged removed these tests 2022-09-15 13:52:38 -05:00
Emily Rohrbough
344ee2145e Merge branch 'develop' into cache-sessions-server 2022-09-15 13:08:47 -05:00
Emily Rohrbough
ec9539c284 fix test 2022-09-15 13:02:07 -05:00
Emily Rohrbough
ce0bcdb1ff Merge branch 'develop' into sessions-instrument-panel 2022-09-15 12:45:47 -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
c0278fc9ae Merge branch 'develop' into cache-sessions-server 2022-09-15 10:11:43 -05:00
Zach Bloomquist
12406c4e26 chore: use a file for cache versioning and not env (#23811)
Co-authored-by: Rachel <Raquel.rudermano@gmail.com>
2022-09-15 14:59:18 +00:00
Emily Rohrbough
4e22b4b587 apply pr feedback 2022-09-14 15:35:58 -05:00
Emily Rohrbough
1b566fc4cc Merge branch 'develop' into sessions-instrument-panel
# Conflicts:
#	packages/reporter/src/sessions/sessions.tsx
2022-09-14 15:22:33 -05:00
Emily Rohrbough
81f24cb2ea and this was removed / unused 2022-09-14 15:15:11 -05:00
Emily Rohrbough
df456e0efc whoops 2022-09-14 15:14:27 -05:00
Emily Rohrbough
07e56612d3 fix types 2022-09-14 12:52:34 -05:00
Emily Rohrbough
1e4a50c055 fix tests 2022-09-14 12:16:53 -05:00
Emily Rohrbough
821150517d Merge branch 'develop' into cache-sessions-server
# Conflicts:
#	packages/app/src/runner/event-manager.ts
#	packages/runner/src/studio/studio-recorder.js
#	packages/types/src/driver.ts
2022-09-14 11:49:59 -05:00
Emily Rohrbough
ec73258db6 Merge branch 'cache-sessions-server' of https://github.com/cypress-io/cypress into cache-sessions-server 2022-09-14 11:45:10 -05:00
Emily Rohrbough
5ce5f38b98 rename for clarity per feedback 2022-09-14 11:44:27 -05:00
Emily Rohrbough
880c9b7731 Update packages/app/src/runner/event-manager.ts
Co-authored-by: Matt Schile <mschile@cypress.io>
2022-09-14 10:01:30 -05:00
Emily Rohrbough
1fc740eb3f Update packages/app/src/runner/event-manager.ts
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2022-09-14 10:01:24 -05:00
Adam Stone
fada0be117 chore: fix flake for experimentalStudio config error test (#23800) 2022-09-13 15:14:27 -04:00
Rachel
1190c3ef0a chore: various flaky + a11y improvements (#23745)
Co-authored-by: Mark Noonan <mark@cypress.io>
2022-09-13 12:02:17 -07:00
Emily Rohrbough
bc804f8671 chore: bump to 10.8.0 [skip ci] (#23816) v10.8.0 2022-09-13 13:27:19 -05:00
Emily Rohrbough
864ab8ebf2 chore: merge master into develop for release (#23803) @cypress/schematic-v2.1.1 2022-09-13 10:49:01 -05:00