-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Cross Origin Testing Support #18075
Commits on May 26, 2021
-
chore: Initial work on creating a multidomain bundle (#16230)
* add multidomain bundle * add a spec for manually testing and experimenting with multidomain bundle * get cy.now('get') functioning * move majority of multidomain entry point into driver
Configuration menu - View commit details
-
Copy full SHA for 6b827dd - Browse repository at this point
Copy the full SHA 6b827ddView commit details
Commits on May 27, 2021
-
Merge branch 'feature-multidomain' of github.com:cypress-io/cypress i…
…nto feature-multidomain
Configuration menu - View commit details
-
Copy full SHA for f5ec36e - Browse repository at this point
Copy the full SHA f5ec36eView commit details
Commits on Jun 2, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 8bc9b5d - Browse repository at this point
Copy the full SHA 8bc9b5dView commit details
Commits on Jun 4, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 6400e81 - Browse repository at this point
Copy the full SHA 6400e81View commit details
Commits on Jun 7, 2021
-
Configuration menu - View commit details
-
Copy full SHA for d028437 - Browse repository at this point
Copy the full SHA d028437View commit details
Commits on Jun 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 2caa04c - Browse repository at this point
Copy the full SHA 2caa04cView commit details -
Merge branch 'feature-multidomain' of github.com:cypress-io/cypress i…
…nto feature-multidomain
Configuration menu - View commit details
-
Copy full SHA for b42e418 - Browse repository at this point
Copy the full SHA b42e418View commit details
Commits on Jun 9, 2021
-
2
Configuration menu - View commit details
-
Copy full SHA for 1014523 - Browse repository at this point
Copy the full SHA 1014523View commit details
Commits on Jun 14, 2021
-
1
Configuration menu - View commit details
-
Copy full SHA for 69deb3e - Browse repository at this point
Copy the full SHA 69deb3eView commit details
Commits on Jun 15, 2021
-
1
Configuration menu - View commit details
-
Copy full SHA for b8658cf - Browse repository at this point
Copy the full SHA b8658cfView commit details
Commits on Jun 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for afc39e9 - Browse repository at this point
Copy the full SHA afc39e9View commit details
Commits on Jun 24, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 5d24a55 - Browse repository at this point
Copy the full SHA 5d24a55View commit details
Commits on Jul 6, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 64250be - Browse repository at this point
Copy the full SHA 64250beView commit details
Commits on Jul 7, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 12da3bd - Browse repository at this point
Copy the full SHA 12da3bdView commit details
Commits on Jul 12, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e1f3a43 - Browse repository at this point
Copy the full SHA e1f3a43View commit details
Commits on Jul 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for da6fa94 - Browse repository at this point
Copy the full SHA da6fa94View commit details -
Merge branch 'feature-multidomain' of github.com:cypress-io/cypress i…
…nto feature-multidomain
Configuration menu - View commit details
-
Copy full SHA for 66d947d - Browse repository at this point
Copy the full SHA 66d947dView commit details
Commits on Jul 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 700636a - Browse repository at this point
Copy the full SHA 700636aView commit details
Commits on Jul 16, 2021
-
Configuration menu - View commit details
-
Copy full SHA for b36fdff - Browse repository at this point
Copy the full SHA b36fdffView commit details -
Merge branch 'feature-multidomain' of github.com:cypress-io/cypress i…
…nto feature-multidomain
Configuration menu - View commit details
-
Copy full SHA for 51dea49 - Browse repository at this point
Copy the full SHA 51dea49View commit details
Commits on Jul 20, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 4288ce6 - Browse repository at this point
Copy the full SHA 4288ce6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53cd6d1 - Browse repository at this point
Copy the full SHA 53cd6d1View commit details
Commits on Aug 9, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 548db6e - Browse repository at this point
Copy the full SHA 548db6eView commit details -
Merge branch 'feature-multidomain' of github.com:cypress-io/cypress i…
…nto feature-multidomain
Configuration menu - View commit details
-
Copy full SHA for 31e6d3f - Browse repository at this point
Copy the full SHA 31e6d3fView commit details
Commits on Aug 20, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 617f321 - Browse repository at this point
Copy the full SHA 617f321View commit details
Commits on Aug 31, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a3930c2 - Browse repository at this point
Copy the full SHA a3930c2View commit details
Commits on Sep 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 4323215 - Browse repository at this point
Copy the full SHA 4323215View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5d326a - Browse repository at this point
Copy the full SHA f5d326aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ad6c36 - Browse repository at this point
Copy the full SHA 3ad6c36View commit details
Commits on Sep 9, 2021
-
Configuration menu - View commit details
-
Copy full SHA for fef49f4 - Browse repository at this point
Copy the full SHA fef49f4View commit details
Commits on Sep 10, 2021
-
chore: Run command queue in secondary domain and sync up command stat…
…e between domains (#17942)
Configuration menu - View commit details
-
Copy full SHA for 16ad6b4 - Browse repository at this point
Copy the full SHA 16ad6b4View commit details
Commits on Sep 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 4e140a2 - Browse repository at this point
Copy the full SHA 4e140a2View commit details -
Merge branch 'feature-multidomain' of github.com:cypress-io/cypress i…
…nto feature-multidomain
Configuration menu - View commit details
-
Copy full SHA for 92932c5 - Browse repository at this point
Copy the full SHA 92932c5View commit details
Commits on Sep 16, 2021
-
Configuration menu - View commit details
-
Copy full SHA for cc66129 - Browse repository at this point
Copy the full SHA cc66129View commit details
Commits on Sep 21, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 416aabe - Browse repository at this point
Copy the full SHA 416aabeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2aea225 - Browse repository at this point
Copy the full SHA 2aea225View commit details -
Merge branch 'feature-multidomain' of github.com:cypress-io/cypress i…
…nto feature-multidomain
Configuration menu - View commit details
-
Copy full SHA for fb5ff06 - Browse repository at this point
Copy the full SHA fb5ff06View commit details
Commits on Sep 29, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 9503b40 - Browse repository at this point
Copy the full SHA 9503b40View commit details
Commits on Oct 5, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 8f11635 - Browse repository at this point
Copy the full SHA 8f11635View commit details
Commits on Oct 19, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 516100b - Browse repository at this point
Copy the full SHA 516100bView commit details
Commits on Nov 1, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c6d2918 - Browse repository at this point
Copy the full SHA c6d2918View commit details
Commits on Nov 2, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 2c28961 - Browse repository at this point
Copy the full SHA 2c28961View commit details
Commits on Dec 7, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 8ac1ff0 - Browse repository at this point
Copy the full SHA 8ac1ff0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0eeb442 - Browse repository at this point
Copy the full SHA 0eeb442View commit details
Commits on Dec 9, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 10264e6 - Browse repository at this point
Copy the full SHA 10264e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5a135d - Browse repository at this point
Copy the full SHA b5a135dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 37b881e - Browse repository at this point
Copy the full SHA 37b881eView commit details -
Configuration menu - View commit details
-
Copy full SHA for cd77e08 - Browse repository at this point
Copy the full SHA cd77e08View commit details -
Configuration menu - View commit details
-
Copy full SHA for dacf0a5 - Browse repository at this point
Copy the full SHA dacf0a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for f716178 - Browse repository at this point
Copy the full SHA f716178View commit details
Commits on Jan 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f2c6069 - Browse repository at this point
Copy the full SHA f2c6069View commit details
Commits on Jan 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for ee6e105 - Browse repository at this point
Copy the full SHA ee6e105View commit details
Commits on Jan 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for a42e601 - Browse repository at this point
Copy the full SHA a42e601View commit details -
Configuration menu - View commit details
-
Copy full SHA for a408b36 - Browse repository at this point
Copy the full SHA a408b36View commit details
Commits on Jan 12, 2022
-
chore: Remove hardcoded domain for multi-domain (#19323)
Co-authored-by: Chris Breiding <chrisbreiding@gmail.com> Co-authored-by: Bill Glesias <bglesias@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2ee9893 - Browse repository at this point
Copy the full SHA 2ee9893View commit details
Commits on Jan 13, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 8e0770f - Browse repository at this point
Copy the full SHA 8e0770fView commit details -
Configuration menu - View commit details
-
Copy full SHA for cc08d12 - Browse repository at this point
Copy the full SHA cc08d12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e5fbad - Browse repository at this point
Copy the full SHA 2e5fbadView commit details
Commits on Jan 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d8fa85d - Browse repository at this point
Copy the full SHA d8fa85dView commit details
Commits on Jan 18, 2022
-
fix: secondary domain command state (#19661)
* chore: fix rerunning multidomain tests * remove need for anticipateMultidomain * remove anticipateMultidomain from rerun spec * use the domain * use this.debug * create new signal for multidomain that doesn't abuse stability * fix types and tests * fix typo from merge conflict * chore: remove hard-coded domain for multi-domain * fix proxy tests * only delay cross-domain requests for the AUT * mark frame request as is-aut instead of is-nested * add unit tests for adding aut frame header * chore: fix server unit tests running on mac by using actual tmp dir * fix specs * use cdp for adding is-aut header for chrome-like browsers * add timeout and fail if no switchToDomain after cross-domain navigation * refactor multiple events into single event * fix random cdp crash * fix * fix tests and refactor a bit * fix confusing window:load handlers errors for cross-origin errors * fix * fix failing on cross-origin error * wrap errors from window:load handlers * don't signal stable if cross-origin w/o multi-domain api use * fix type issue * revert window:load error wrapping * fix reference * update comment * chore: refactor cross domain communications (#19430) Co-authored-by: Chris Breiding <chrisbreiding@gmail.com> * fix flakey downloads spec * chore: Finish switchToDomain implementation (#19577) Co-authored-by: Bill Glesias <bglesias@gmail.com> * add/improve comments * remove aut iframe header before request is sent * remove comment it's in another branch, but we're always injecting now * move Page.enable so only chrome uses it * remove unused reference * use frame events to get frame tree instead of on prerequest * allow logs to be deferrable to allow updates to stream in for commands that have just finished * wrap cleanup code in finally block * split out log:added log:changed and command:update into separate methods (still broken) * command and log syncing should now work correctly * clean up implementation of logChanged to make code more readable * chore: Convert multi-domain file to TS and rename for consistency (#19601) * WIP: multi domain refactor event bus * refactor multidomain setup so cy/cypress are created once and not on every page load * use unique ids per origin for logs instead of trying to sync the counter * refactor postMessage/eventBus methods into the multidomain communicator to consolidate messaging logic. Add basic JSDocs to classes and methods within the communicator. * fix issue where event data being fed into the message listener is undefined * remove forgot about commented out code * use debug to log unexpected post messages * refactor and update types * move internal:window:load to internal types * accept data argument in switchToDomain and validate arguments * add experimentalMultiDomain flag and fail switchToDomain if not enabled * add types for switchToDomain * fix types * add experimental flag * remove comment * update config suite titles and snapshots * use message in error, update test for browser family * remove unnecessary return * convert src/multidomain/index.js to typescript * use consistent naming for multi-domain * remove some data * Multidomain -> MultiDomain * address PR feedback Co-authored-by: Bill Glesias <bglesias@gmail.com> * feat: support done callback (#19465) Co-authored-by: Chris Breiding <chrisbreiding@gmail.com> * remove unused log messages * update documentation within the multidomain primary * correct done test error name * remove redundant done commment in primary * add stubbed out tests for cy-in-cy and correct documentation * add lodash import to primary * refactor cleanup to async/await and update comments * add verification tests to make sure all logs stream in and there are no pending commands * address comments left in code review * address refactoring comments brought up in code review * address code changes needed to address comments in code review * attempt at improving log types for Cypress.Log LogConfig * change command:update to command:end * refactor onLogChanged conditional to be more readable * make sure we have a reference to the changed log before trying to destructure object Co-authored-by: Chris Breiding <chrisbreiding@gmail.com> Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 0601570 - Browse repository at this point
Copy the full SHA 0601570View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b39332 - Browse repository at this point
Copy the full SHA 0b39332View commit details
Commits on Jan 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d3601f6 - Browse repository at this point
Copy the full SHA d3601f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ef104e - Browse repository at this point
Copy the full SHA 7ef104eView commit details
Commits on Jan 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c84ace4 - Browse repository at this point
Copy the full SHA c84ace4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1faed02 - Browse repository at this point
Copy the full SHA 1faed02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89a497f - Browse repository at this point
Copy the full SHA 89a497fView commit details
Commits on Jan 24, 2022
-
feat: [multi domain] enable window:before:load event (#19828)
* window:before:load:event * Tests updates * type checking * Update packages/driver/src/multi-domain/communicator.ts Co-authored-by: Matt Schile <mschile@gmail.com> * Moved the window events to their own spec file. * Rename global variable in html to better tie it back to tests. * changes to test Co-authored-by: Matt Schile <mschile@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3295adf - Browse repository at this point
Copy the full SHA 3295adfView commit details
Commits on Jan 25, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2475b5a - Browse repository at this point
Copy the full SHA 2475b5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d69100 - Browse repository at this point
Copy the full SHA 1d69100View commit details -
Configuration menu - View commit details
-
Copy full SHA for fdb0c96 - Browse repository at this point
Copy the full SHA fdb0c96View commit details
Commits on Jan 26, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b50fe56 - Browse repository at this point
Copy the full SHA b50fe56View commit details
Commits on Jan 27, 2022
-
feat: multi domain handle command failures (#19805)
* Implement skeleton for communicating errors in multi-domain * add standard serialization to postMessage bus to handle generic types being returned to the primary * enhance multi domain communicator to take custom errors as well as standard errors * Implement basic command failures back into the primary domain. Still in needs of stack trace support * Remove onError handler and opt for rejecting command instead to prevent AUT/spec unhandled rejections * clean up changed files, add basic comments and remove now redundant comments * address PR comments, removing serializeCrossDomainErrorsFrom Object and making correctStackForCrossDomainError simpler * fix missing import * address comments from code review to simplify code Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for bab8496 - Browse repository at this point
Copy the full SHA bab8496View commit details -
feat: implement uncaught:exception and error in spec bridge (#19922)
* implement uncaught:exception and error in the spec bridge with supporting tests * ignore docUrl type on error * remove describe block as it provided little to no value * improve uncaught error test assertions * allow for error name to be preserved when deserializing errors to the primary through postMessage * add assertion for when uncaught:exception returns true from the secondary that the correct error is returned to the primary
Configuration menu - View commit details
-
Copy full SHA for fe03453 - Browse repository at this point
Copy the full SHA fe03453View commit details
Commits on Feb 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4070270 - Browse repository at this point
Copy the full SHA 4070270View commit details
Commits on Feb 3, 2022
-
feat: [Multi-domain]: Yield subject from
switchToDomain
(#19936)* first pass at yielding a subject * Remove logs and add comments * remove duplicate test * Add debug logging for aborted * Apply suggestions from code review Co-authored-by: Bill Glesias <bglesias@gmail.com> * New strategy for serializing subjects * handle 'ran:domain:fn' event * Fix lint * Now with proxy error handling! * Break yields tests out into their own file. * updated test * Update packages/driver/src/cy/multi-domain/failedSerializeSubjectProxy.ts Co-authored-by: Matt Schile <mschile@gmail.com> * add a param for the malformed should * Apply suggestions from code review Co-authored-by: Matt Schile <mschile@gmail.com> * update test to work cross browsers * fix test strings * Update packages/driver/src/util/queue.ts Co-authored-by: Matt Schile <mschile@gmail.com> * optional chaining ! * Apply suggestions from code review Co-authored-by: Bill Glesias <bglesias@gmail.com> * code review changes * Whoops * whoops, renamed the wrong test file * Update packages/driver/src/cy/multi-domain/failedSerializeSubjectProxy.ts Co-authored-by: Matt Schile <mschile@gmail.com> Co-authored-by: Bill Glesias <bglesias@gmail.com> Co-authored-by: Matt Schile <mschile@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c58a0ee - Browse repository at this point
Copy the full SHA c58a0eeView commit details
Commits on Feb 8, 2022
-
Configuration menu - View commit details
-
Copy full SHA for dc9b694 - Browse repository at this point
Copy the full SHA dc9b694View commit details -
Configuration menu - View commit details
-
Copy full SHA for c198372 - Browse repository at this point
Copy the full SHA c198372View commit details
Commits on Feb 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 92bf23c - Browse repository at this point
Copy the full SHA 92bf23cView commit details
Commits on Feb 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0639d14 - Browse repository at this point
Copy the full SHA 0639d14View commit details -
feat: [Multi-Domain] Ensure runner shows correct url (#20096)
* Appropriately log navigation events to the run log * remove test tests lol * enable reload command test * fix typescript error that seems totally random * update comment * code review changes * A bunch of updates and tests * lint fixes * add url:changed events * update test to check that we're on the new page * PR updates * session tests fail in ci * PR updates, make url:changed from secondary domain to be private
Configuration menu - View commit details
-
Copy full SHA for 191dc92 - Browse repository at this point
Copy the full SHA 191dc92View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d54632 - Browse repository at this point
Copy the full SHA 8d54632View commit details -
Merge branch 'feature-multidomain' of github.com:cypress-io/cypress i…
…nto feature-multidomain
Configuration menu - View commit details
-
Copy full SHA for 89ea47d - Browse repository at this point
Copy the full SHA 89ea47dView commit details
Commits on Feb 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b6e1c30 - Browse repository at this point
Copy the full SHA b6e1c30View commit details
Commits on Feb 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5f905ee - Browse repository at this point
Copy the full SHA 5f905eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5269f4f - Browse repository at this point
Copy the full SHA 5269f4fView commit details
Commits on Feb 22, 2022
-
feat: sync config and env (#20102)
* sync Cypress.config() from primary over to secondary domain * skip async tests until refactoring changes are released * attempt to sync config and env to secondary domain * fix cy.pause() in run mode now that configs are synced properly * fix issue where video is being turned on twice in firefox, causing multi-domain tests to fail in firefox run mode * remove iframe before multi domain sync spec runs to allow for determinisitc testing of big Cypress config/env changes * remove isDocument and isWindow checks from omitUnserializableValues fn * change spec bridge removal code inside multi domain sync test * Implement bi-directional syncing of config and env * remove preprocessing of thrown errors in secondary domain (meant to remove this) * skip structuredClone test for firefox versions below 94 * delete half of test code with same value as env and config are very similar * address comments in code review to improve tests * rename config_utilities to config since util is implied by directory name * simplify config utils and preprocess functions * wrap read only config test in promise to prevent false negatives * make code review comments to fix coding errors and improve tests/documentation * cut over env/config test to exclusively use promises over done * reset config and env after multi domain env/config tests * namespace env/config keys to prevent any overlap in tests. Deleting env keys persist through test due to known bug on soft reruns. Also doctored spies tests to not directly assert on the values of env.
Configuration menu - View commit details
-
Copy full SHA for 288f6bd - Browse repository at this point
Copy the full SHA 288f6bdView commit details -
feat: support cypress api (#20022)
* forbid use of Cypress.Server.*, Cypress.Cookies.*, cy.route, and cy.server within multi-domain * support Cypress.* commands and isCy commands * support currentTest property within multi-domain * remove server/route tests from network_requests.spec.ts as those methods are not supported * attempt to 'fix' Cypress.config() multi domain test * only forbid use of preserveOnce in multi-domain due to little cy cookie methods needing access to Cypress.Cookies * condensed unsupported multi domain commands into a single spec file * add preserveOnce namespace to error messages * update error messages to be more accurate and less dramatic * remove Cypress.config and Cypress.env testing methods in big cypress spec as the syncing is tested elsewhere * provide better return types for config preprocessing * update test description for unsupported commands * rename config_utilities to config since util is implied by directory name * deserialize runnable titlePath as function in secondary over mutating core to account for serialization * address comments in code review to make tests cleaner and add comments for future updates needed * add unsupported_apis.ts to move unsupported apis into to prevent more code from being in the setup fn * don't wrap cypress command with cy.wrap and just return string to make test simpler
Configuration menu - View commit details
-
Copy full SHA for 5b4feaa - Browse repository at this point
Copy the full SHA 5b4feaaView commit details
Commits on Feb 23, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0e942ed - Browse repository at this point
Copy the full SHA 0e942edView commit details -
Configuration menu - View commit details
-
Copy full SHA for fc7149e - Browse repository at this point
Copy the full SHA fc7149eView commit details -
chore: [Multi-domain] Validate domain name (#20321)
* basic domain name validation * tests and an updated message * Apply suggestions from code review Co-authored-by: Bill Glesias <bglesias@gmail.com> * pr changes * skip flaky tests for now * Apply suggestions from code review * support localhost and ip addresses Co-authored-by: Bill Glesias <bglesias@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b6243f5 - Browse repository at this point
Copy the full SHA b6243f5View commit details -
chore: [Multi-domain] Clean up basic login spec to look like what we …
…discussed. (#20322) * Add multi-domain auth workflow, add idp.com as host * no onlys * ignore typescript for this file since it has not yet created functions. * Apply suggestions from code review Co-authored-by: Bill Glesias <bglesias@gmail.com> * CR updates Co-authored-by: Bill Glesias <bglesias@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c8c2046 - Browse repository at this point
Copy the full SHA c8c2046View commit details
Commits on Feb 24, 2022
-
chore: [Multi-domain]: Support multiple multi-domain commands in a si…
…ngle test (#20354) * multi-multi-domain changes * tests * line it up! * trim tests * try skipping unicode test * Pr Updates * support unicode domain names
Configuration menu - View commit details
-
Copy full SHA for a0c6f00 - Browse repository at this point
Copy the full SHA a0c6f00View commit details
Commits on Feb 25, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4c36cf9 - Browse repository at this point
Copy the full SHA 4c36cf9View commit details
Commits on Mar 4, 2022
-
fix: ensure multi domain passivity (#20442)
* add experimentalMultiDomain config flag check on middleware. Add SetInjectionLevel tests * Move navigation spec that was skipped to validate cross origin errors to system test * fix issues with web security spec having a false negative * remove unecessary config values / assertions from system tests
Configuration menu - View commit details
-
Copy full SHA for ae65ae6 - Browse repository at this point
Copy the full SHA ae65ae6View commit details
Commits on Mar 7, 2022
-
chore: [Multi-Domain] enable commands in switchToDomain to use the de…
…fault timeout (#20489) * allow timeouts for commands run within multi-domain * Fix breaking test * adding default test * pr updates
Configuration menu - View commit details
-
Copy full SHA for 1eb5ab7 - Browse repository at this point
Copy the full SHA 1eb5ab7View commit details
Commits on Mar 8, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 74dea89 - Browse repository at this point
Copy the full SHA 74dea89View commit details
Commits on Mar 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for ca1857f - Browse repository at this point
Copy the full SHA ca1857fView commit details
Commits on Mar 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for ca510ce - Browse repository at this point
Copy the full SHA ca510ceView commit details -
chore: (multi-domain) url:changed fix, revert about:blank, use Cypres…
…s.specBridgeCommunicator, Cypress.isMultiDomain (#20571)
Configuration menu - View commit details
-
Copy full SHA for cd7f99d - Browse repository at this point
Copy the full SHA cd7f99dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 892d8d9 - Browse repository at this point
Copy the full SHA 892d8d9View commit details -
fix: standardize error and object serialization (#20520)
* Refactor error serialization to rely on structuredClone over clone and other means. * add system test to verify stack trace is corrected for multi-domain errors * remove redundant code and update documentation/tests * address comments from code review * remove 'to map' from serialization error message * make all errors truthy before emitting through spec bridge to prevent sending unecessary values through postMessage * fix falsy error serialization in firefox * move reify errors into the primaryDomainCommunicator * address comment made in review #20520 (comment) * update switchToDomain to contain fully qualified URL to be compatible with #20564
Configuration menu - View commit details
-
Copy full SHA for d1c3e4e - Browse repository at this point
Copy the full SHA d1c3e4eView commit details
Commits on Mar 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 46c0c75 - Browse repository at this point
Copy the full SHA 46c0c75View commit details -
chore: [Multi-domain] Enable tests, stability and fail appropriately (#…
…20561) * chore: Lots of stability Fixes * define done * pre-pr fixes * clean up test comments * Some test fixes * Whoops, the right event is kind of important * nav error handling * Try to be less invasive with error handling. * actually clean up * moar test fixes * set is stable on primary load * new new way of handling errors * not pending * testing in ci * more detail * add www * Test a couple more errors, add TODOS * comment test, fix typo * Apply suggestions from code review Co-authored-by: Bill Glesias <bglesias@gmail.com> * Add back missing full page test * Apply suggestions from code review Co-authored-by: Matt Schile <mschile@gmail.com> * Pull request updates * Fill edge case. * ignore error for now * clean up window logic * Apply suggestions from code review Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com> * Clean up commenting * prevent another test from running on firefox... * more firefox * clean up code * Update packages/driver/cypress/integration/e2e/multi-domain/commands/multi_domain_viewport.spec.ts Co-authored-by: Matt Schile <mschile@gmail.com> Co-authored-by: Bill Glesias <bglesias@gmail.com> Co-authored-by: Matt Schile <mschile@gmail.com> Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 7f3a649 - Browse repository at this point
Copy the full SHA 7f3a649View commit details
Commits on Mar 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for bc30c68 - Browse repository at this point
Copy the full SHA bc30c68View commit details -
Configuration menu - View commit details
-
Copy full SHA for 326fc19 - Browse repository at this point
Copy the full SHA 326fc19View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cc3108 - Browse repository at this point
Copy the full SHA 9cc3108View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e8c511 - Browse repository at this point
Copy the full SHA 0e8c511View commit details -
fix: prevent serialization issues with retries using multi-domain (#2…
…0628) * fix: prevent serialization issues with retries using multi-domain by sanitizing data sent to spec bridges * recursively map Objects/Arrays to literallys if keys inside Object mapped are also Objects/Arrays * update chromium based tests to now expect error objects to be literals in secondary domain * avoid sanitizing primary to secondary user defined data * update new system test name to not be the copy pasta alternate :) * uncomment firefox tests to attempt run in CI Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 193a01a - Browse repository at this point
Copy the full SHA 193a01aView commit details -
chore: [Multi-domain] Handle stability with delayed navigation (#20642)
* chore: [Multi-domain] Handle stability with delayed navigation * remove unused args * adjust wait times
Configuration menu - View commit details
-
Copy full SHA for 35501bc - Browse repository at this point
Copy the full SHA 35501bcView commit details
Commits on Mar 18, 2022
-
chore: [Multi-domain] Clean up stability code. (#20656)
* chore: [Multi-domain] Fix Flake when subdomain loads faster than toSpecBridge Command called. * Add Test * simplify test * Loading a cross domain page won't happen until the spec bridge is active (or a timeout will happen) * Update packages/driver/src/multi-domain/domain_fn.ts
Configuration menu - View commit details
-
Copy full SHA for ebb054e - Browse repository at this point
Copy the full SHA ebb054eView commit details -
fix: make the primary domain communicator a singleton per cypress ins…
…tance (#20653) * fix: make the primary domain communicator a singleton per cypress instance * leverage a factory to make typescript happy with their super() constructor rules * remove singleton instance from communicator and only bind message events once in the primary and per spec bridge. Forward all message events to the respective communicator instance, if available. * remove data.actual reference in primary communicator onMessage as it is no longer needed
Configuration menu - View commit details
-
Copy full SHA for 432b3d5 - Browse repository at this point
Copy the full SHA 432b3d5View commit details
Commits on Mar 21, 2022
-
chore: [Multi-domain] Improve timeout error message. (#20671)
* Better timeout error handling * quick fix, should re-visit * cancel dangling timeouts * re-broadcast the window load event. * clean up code and comment more * ignore better * PR updates * oops, didn't mean to enable this * Apply suggestions from code review Co-authored-by: Bill Glesias <bglesias@gmail.com> * moar pr updates * Apply suggestions from code review Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com> Co-authored-by: Bill Glesias <bglesias@gmail.com> * Fix test * message changes * message update Co-authored-by: Bill Glesias <bglesias@gmail.com> Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 9827b26 - Browse repository at this point
Copy the full SHA 9827b26View commit details -
fix: [Multi-domain] Fix countLogsByTest (#20719)
* chore: [multi-domain] fix count-logs-by-test * add tests, fix preAttempts * formatting * remove redundant test
Configuration menu - View commit details
-
Copy full SHA for f638ba7 - Browse repository at this point
Copy the full SHA f638ba7View commit details
Commits on Mar 22, 2022
-
fix: firefox 93 error issues (#20695)
* don't fail serialization in cases properties are inaccessable due to implementation contraints * gracefully fail element lookups in case of cross origin stale documents to prevent unwanted failures * reset window and document when spec bridge exits * test in firefox * Update packages/driver/cypress/integration/e2e/multi-domain/navigation_spec.ts Co-authored-by: mjhenkes <mjhenkes@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 89c0091 - Browse repository at this point
Copy the full SHA 89c0091View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22b35be - Browse repository at this point
Copy the full SHA 22b35beView commit details -
Configuration menu - View commit details
-
Copy full SHA for a64cdb8 - Browse repository at this point
Copy the full SHA a64cdb8View commit details
Commits on Mar 23, 2022
-
fix: [Multi-domain] Preserve switchToDomain command logs between top …
…domain changes. (#20739) * fix: [Multi-domain] Prevent lost logs when switching top domain. * Test updates * Adding tests * Make tests more flexible * Update packages/driver/cypress/integration/e2e/multi-domain/commands/multi_domain_log.spec.ts Co-authored-by: Bill Glesias <bglesias@gmail.com> Co-authored-by: Bill Glesias <bglesias@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c7aa180 - Browse repository at this point
Copy the full SHA c7aa180View commit details
Commits on Mar 24, 2022
-
chore: Update switchToDomain signature with
args
key (#20722)* chore: update data argument to be object containing args key over being an array * chore: remove done_reference_mismatch in error_messages as done is now removed * fix: alias args as data going through communicator to keep common interface and exclude user serialized data * rename data references to options in switchToDomain * use isPlainObject to simplify conditional in validator * refactor switchToDomain options validation to check for invalid keys in options argument over missing the args key Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 90d1eb7 - Browse repository at this point
Copy the full SHA 90d1eb7View commit details -
chore: Verify cy.request() works in multi-domain callback (#20747)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ad176be - Browse repository at this point
Copy the full SHA ad176beView commit details -
chore: [multi-domain] enable binary builds and more tests for the mul…
…ti-domain branch (#20773)
3Configuration menu - View commit details
-
Copy full SHA for 3c19edb - Browse repository at this point
Copy the full SHA 3c19edbView commit details -
3
Configuration menu - View commit details
-
Copy full SHA for 8f7cc74 - Browse repository at this point
Copy the full SHA 8f7cc74View commit details
Commits on Mar 28, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 14215e3 - Browse repository at this point
Copy the full SHA 14215e3View commit details -
3
Configuration menu - View commit details
-
Copy full SHA for 453d1ca - Browse repository at this point
Copy the full SHA 453d1caView commit details -
4
Configuration menu - View commit details
-
Copy full SHA for fedb65c - Browse repository at this point
Copy the full SHA fedb65cView commit details
Commits on Mar 29, 2022
-
1
Configuration menu - View commit details
-
Copy full SHA for 04eabf0 - Browse repository at this point
Copy the full SHA 04eabf0View commit details -
chore: [multi-domain] clean up the sync:globals event in the event of…
… errors (#20811) Co-authored-by: Bill Glesias <bglesias@gmail.com>
3Configuration menu - View commit details
-
Copy full SHA for 3b4b0ef - Browse repository at this point
Copy the full SHA 3b4b0efView commit details
Commits on Mar 30, 2022
-
3
Configuration menu - View commit details
-
Copy full SHA for 4c1c18d - Browse repository at this point
Copy the full SHA 4c1c18dView commit details -
3
Configuration menu - View commit details
-
Copy full SHA for b77f675 - Browse repository at this point
Copy the full SHA b77f675View commit details -
chore: [Multi-domain] add retry error message for cross domain comman…
…ds (#20835) * chore: [Multi-domain]: add retry error message for cross domain commands * fix a couple of merge bugs * this change is for a different pr * If no autOrigin is defined, don't add the additional message. * ensure we're checking if the origin policies are the same. Co-authored-by: Bill Glesias <bglesias@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9098744 - Browse repository at this point
Copy the full SHA 9098744View commit details -
3
Configuration menu - View commit details
-
Copy full SHA for 1fa78f5 - Browse repository at this point
Copy the full SHA 1fa78f5View commit details
Commits on Mar 31, 2022
-
3
Configuration menu - View commit details
-
Copy full SHA for 8c9bd2a - Browse repository at this point
Copy the full SHA 8c9bd2aView commit details -
chore: [Multi-domain]: Support spec bridges with same domain (#20829)
* chore: [Multi-domain]: Support spec bridges with same domain * Add a little test * Fix spec bridge tests * make sure we grab the origin policy * Update tests and origin policy * moving tests Co-authored-by: Bill Glesias <bglesias@gmail.com>
2Configuration menu - View commit details
-
Copy full SHA for b3e66e7 - Browse repository at this point
Copy the full SHA b3e66e7View commit details
Commits on Apr 1, 2022
-
3
Configuration menu - View commit details
-
Copy full SHA for 8bba681 - Browse repository at this point
Copy the full SHA 8bba681View commit details
Commits on Apr 4, 2022
-
chore: [Multi-domain] Renaming variable and functions to reduce confu…
…sion between usage of origin, origin policy and domain Part 1 (#20871) * chore: [Multi-domain] Renaming variable and functions to reduce confusion between usage of origin, origin policy and domain Part 1 * PR updtes Co-authored-by: Bill Glesias <bglesias@gmail.com>
3Configuration menu - View commit details
-
Copy full SHA for 0c78630 - Browse repository at this point
Copy the full SHA 0c78630View commit details -
chore: [Multi-domain] Renaming variable and functions to reduce confu…
…sion between usage of origin, origin policy and domain Part 2 (#20872) * chore: [Multi-domain] domain, origin, origin policy renaming part 2 * pr updates Co-authored-by: Bill Glesias <bglesias@gmail.com>
3Configuration menu - View commit details
-
Copy full SHA for 15a60c1 - Browse repository at this point
Copy the full SHA 15a60c1View commit details
Commits on Apr 5, 2022
-
chore: [Multi-domain] Resolve flaky test (#20917)
* chore: [Multi-domain] Resolve flaky test * remove ts ignore * update comment * remove dead code * Updated comment
Configuration menu - View commit details
-
Copy full SHA for f45be5e - Browse repository at this point
Copy the full SHA f45be5eView commit details -
3
Configuration menu - View commit details
-
Copy full SHA for 81e9283 - Browse repository at this point
Copy the full SHA 81e9283View commit details
Commits on Apr 6, 2022
-
2
Configuration menu - View commit details
-
Copy full SHA for 0772f85 - Browse repository at this point
Copy the full SHA 0772f85View commit details -
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>
3Configuration menu - View commit details
-
Copy full SHA for 17e6bf4 - Browse repository at this point
Copy the full SHA 17e6bf4View commit details -
chore: [Multi-domain] Provide a warning when switchToDomain fails to …
…run (#20899) * chore: [Multi-domain] Provide a warning when switchToDomain fails to run. * Keep error name * remove ts-ignore * Limit note to just reference errors * no only * firefoxfix
2Configuration menu - View commit details
-
Copy full SHA for 213607f - Browse repository at this point
Copy the full SHA 213607fView commit details -
chore: [Multi-domain] Rename domain events (#20945)
* chore: [Multi-domain] Rename domain events * finish index.ts * missed one! * rename error message * Update packages/driver/src/cy/commands/navigation.ts Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com> Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
3Configuration menu - View commit details
-
Copy full SHA for b65db7b - Browse repository at this point
Copy the full SHA b65db7bView commit details -
3
Configuration menu - View commit details
-
Copy full SHA for dcbc68b - Browse repository at this point
Copy the full SHA dcbc68bView commit details
Commits on Apr 7, 2022
-
chore: [Multi-domain] Rename isMultiDomain for the driver and the ser…
…ver (#20947) * chore: [Multi-domain] Rename isMultiDomain for the driver and the server * A couple more changes * Update packages/driver/src/cy/commands/navigation.ts Co-authored-by: Matt Schile <mschile@gmail.com> Co-authored-by: Matt Schile <mschile@gmail.com>
2Configuration menu - View commit details
-
Copy full SHA for 25af921 - Browse repository at this point
Copy the full SHA 25af921View commit details -
chore: [Multi-domain] Rename the last of the domain/multi-domain to o…
…rigin 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>
1Configuration menu - View commit details
-
Copy full SHA for c686922 - Browse repository at this point
Copy the full SHA c686922View commit details -
3
Configuration menu - View commit details
-
Copy full SHA for 8a78b5c - Browse repository at this point
Copy the full SHA 8a78b5cView commit details -
3
Configuration menu - View commit details
-
Copy full SHA for 782d89f - Browse repository at this point
Copy the full SHA 782d89fView commit details
Commits on Apr 8, 2022
-
chore: [Multi-domain] Fix uncaught error (#20971)
* chore: [Multi-domain] Fix uncaught error * on failure, prevent injection * type cleanupOptions
3Configuration menu - View commit details
-
Copy full SHA for 63c3247 - Browse repository at this point
Copy the full SHA 63c3247View commit details -
chore: [Multi-domain] Update error messages based on feedback. (#20996)
* chore: [Multi-domain] Update error messages based on feedback. * code review updates
3Configuration menu - View commit details
-
Copy full SHA for a7caf8a - Browse repository at this point
Copy the full SHA a7caf8aView commit details -
chore: audit cross-origin related TODOs/FIXMEs (#20975)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
3Configuration menu - View commit details
-
Copy full SHA for f6975f8 - Browse repository at this point
Copy the full SHA f6975f8View commit details -
3
Configuration menu - View commit details
-
Copy full SHA for a928781 - Browse repository at this point
Copy the full SHA a928781View commit details -
3
Configuration menu - View commit details
-
Copy full SHA for fdfa933 - Browse repository at this point
Copy the full SHA fdfa933View commit details
Commits on Apr 11, 2022
-
1
Configuration menu - View commit details
-
Copy full SHA for 8959845 - Browse repository at this point
Copy the full SHA 8959845View commit details -
3
Configuration menu - View commit details
-
Copy full SHA for 836edbf - Browse repository at this point
Copy the full SHA 836edbfView commit details -
3
Configuration menu - View commit details
-
Copy full SHA for 65d75dd - Browse repository at this point
Copy the full SHA 65d75ddView commit details
Commits on Apr 12, 2022
-
3
Configuration menu - View commit details
-
Copy full SHA for f451d05 - Browse repository at this point
Copy the full SHA f451d05View commit details -
3
Configuration menu - View commit details
-
Copy full SHA for d98d0e1 - Browse repository at this point
Copy the full SHA d98d0e1View commit details -
3
Configuration menu - View commit details
-
Copy full SHA for 663e5d5 - Browse repository at this point
Copy the full SHA 663e5d5View commit details
Commits on Apr 13, 2022
-
chore: [Multi-domain] Reset timeout after transition from
before
to…… `it` while unstable. (#21032) * chore: [Multi-domain] Reset timeout after transition from before block to it block while unstable. * enable clear timeout * Adding tests and a comment * Update packages/driver/src/cypress/command_queue.ts Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com> * Move tests to their own file. Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
3Configuration menu - View commit details
-
Copy full SHA for dd3557f - Browse repository at this point
Copy the full SHA dd3557fView commit details -
3
Configuration menu - View commit details
-
Copy full SHA for 27e1afb - Browse repository at this point
Copy the full SHA 27e1afbView commit details -
feat(multi-origin): Group cy.origin commands (#21046)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c560caf - Browse repository at this point
Copy the full SHA c560cafView commit details -
3
Configuration menu - View commit details
-
Copy full SHA for e4dcb12 - Browse repository at this point
Copy the full SHA e4dcb12View commit details
Commits on Apr 15, 2022
-
3
Configuration menu - View commit details
-
Copy full SHA for 890bde6 - Browse repository at this point
Copy the full SHA 890bde6View commit details
Commits on Apr 18, 2022
-
chore: [Multi-origin] Correctly find the spec bridge if chromeWebSecu…
…rity set to false. (#21117) * chore: [Multi-origin] Correctly find the spec bridge if chromeWebSecurity set to false. * Update packages/runner/injection/multi-domain.js Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com> * Attempting a system test Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2Configuration menu - View commit details
-
Copy full SHA for f02d750 - Browse repository at this point
Copy the full SHA f02d750View commit details
Commits on Apr 21, 2022
-
3
Configuration menu - View commit details
-
Copy full SHA for d7ce865 - Browse repository at this point
Copy the full SHA d7ce865View commit details -
chore: [Multi-domain] Break out separate CI tasks to test the driver …
…with experimentalSessionAndOrigin on (#21148) * Attempt to run tests without the feature flag and the multi-domain folder * do it for real this time dummy * trying circleci changes * valid file??? * moar changes! * i am a master of bash scripting * try another exclude pattern * one more time with feeling * lets do it again * maybe this? * different parallel group * lets try this * updating tests phase 1 * updating tests phase 2 * Apply suggestions from code review Co-authored-by: Matt Schile <mschile@gmail.com> * Update tests * Run more tests * Re-locate system test * Flex message for firefox Co-authored-by: Matt Schile <mschile@gmail.com>
2Configuration menu - View commit details
-
Copy full SHA for e3161a0 - Browse repository at this point
Copy the full SHA e3161a0View commit details -
3
Configuration menu - View commit details
-
Copy full SHA for f819be3 - Browse repository at this point
Copy the full SHA f819be3View commit details -
3
Configuration menu - View commit details
-
Copy full SHA for f164404 - Browse repository at this point
Copy the full SHA f164404View commit details
Commits on Apr 22, 2022
-
3
Configuration menu - View commit details
-
Copy full SHA for 885541e - Browse repository at this point
Copy the full SHA 885541eView commit details -
feat: support snapshots and console props within multi-domain (#20949)
* Empty commit to get a new percy nonce * Implement snapshots and consoleprops within multi origin further progress with getters cleaned up log/snapshot serialization attempt to pass and hydrate value state of serialized dom elements temp commit traversal dom by some stretch of a miracle this is working... still somehow working after massive performance issues with full tree serialization, fix here is to just attach values to inputs for reifying on primary now we are cookin test WIP tests WIP working multi-domain actions snapshots tests added more tests to verify snapshots add tests and refactor certain tests to make simpler added misc snapshot tests add navigation snapshot placeholder add network request snapshot tests add shadow querying snapshot tests update test names added snapshot querying spec added screenshot snapshot test add spies,clocks, and stubs tests implement snapshot tests for traversal commands rename local storeage snapshot tests to fit convention add viewport snapshot tests rename snapshot traversal to fit naming convention add snapshot waiting tests added window snapshot tests implement navigation snapshot tests now that sinon proxy issues internal to log are now fixed refactor multi-domain snapshot tests to leverage utility method over redefining in each spec * fix lint types issues on serializationKeys * rename switchToDomain to origin (might help with failing tests... ya know?) * rename snapshot files to fit origin paradigm and fix misname on primaryDomainCommunicator * fix .tick() snapshot/consoleProps test (figure out the deal with consoleProps sometimes being a function) * rename multiDomainCommunicator to origin primaryDomainCommunicator * don't invoke functions with arguments (we need to be more explicit about the functions we are invoking * opt for my explicit serialization behavior with functions, never attempt to serialize bluebird promises * move serialization to folder and change name to index * refactor log serialization to own file, clean up code and add comments to what is going on in this 'here be dragons' code * make sure to serialize functions for snapshots * fix pause snapshot test for multi origin * refactor postprocess snapshot into own method to handle in final state snapshot processing for cross origin * update snapshot comments to be more accurate * fix renamings within tests * fix path in log.ts serialization * revert about:blank changes in aut-iframe which was breaking session * move all log/snapshot serialization magic invokations into the communicator * update typos and fix namings of preprocess and reify * further name changes * fix snapshot generator to always reify snapshot (<body>) over attempting to match in the DOM * unskip test that was fixed with explicit function serialization for logs * fix flaky screenshot test that was screensize dependent * rename a few items in the log serialization file * clean up snapshot style reification to be more straightforward and remove redundancies * refactor snapshots code to be more readable * update reifyDomElement docs to actually explain what hte method does * fix typos within the log serialization file pertaining to comments * use Cypress._ over lodash import to reduce spec bundle size * remove snapshots test folder and migrate tests into commands directory with #consoleProps context blocks for each * change removeSrcAttributeFromAUTIframe name to removeSrcAttribute as it is implied on the AUT * update log consoleProps comment to better reflect cross origin nature * remove skipped consoleProps tests that do not have a command log to test against * add createSnapshot to internal types (might need more specifics on this) * refactor multi-domain consoleProp tests to use shouldWithTimeout custom command to avoid setTimeouts on command queue event to make test implementation cleaner * simplify DOM hydration for input based elements * update preprocessedHTMLElement type * clean up some documentation and remove TS ignores. added getStyles to internal-types. * add comment to aut-iframe on src attr removal for posterity * reverse snapshot ternary for readability * add shouldWithTimeout into spec-types and refactor out of internal-types * add getAll type to cypress spec-types * compare originPolicy of top and AUT instead of just origin to make snapshots work in subdomains * add comment to _storeOriginalState for future developers and to add clarity * add some basic log serialization tests that show full pre/reification of log, as well as state hydration for innerHTML. break out object/array methods from log like serialization into own methods * update variables to metasyntactic * add renderProps assertion for cy.request * apply suggestions from code review to clean up log serializer * make snapshot serialization more generic and typesafe * work around firefox 93 issues by unsetting the document in cy state as the document is in a cross origin context in the primary, which means accessing any elements will not work * clean up code and implement suggestions in code review * remove crossOriginLog in favor of nullish coalescing if visible on the log is not set * if get is null, return null for whole snapshot Co-authored-by: Ryan Manuel <ryanm@cypress.io> Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a1101e6 - Browse repository at this point
Copy the full SHA a1101e6View commit details -
3
Configuration menu - View commit details
-
Copy full SHA for ebaaf18 - Browse repository at this point
Copy the full SHA ebaaf18View commit details -
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 35ccc28. * 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>
2Configuration menu - View commit details
-
Copy full SHA for 3e6d6bf - Browse repository at this point
Copy the full SHA 3e6d6bfView commit details -
Update packages/runner-shared/src/event-manager.js
Co-authored-by: Zach Bloomquist <git@chary.us>
3Configuration menu - View commit details
-
Copy full SHA for d866746 - Browse repository at this point
Copy the full SHA d866746View commit details
Commits on Apr 23, 2022
-
1
Configuration menu - View commit details
-
Copy full SHA for b8ae51e - Browse repository at this point
Copy the full SHA b8ae51eView commit details -
3
Configuration menu - View commit details
-
Copy full SHA for f473d29 - Browse repository at this point
Copy the full SHA f473d29View commit details