Skip to content
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

Merged
merged 174 commits into from Apr 25, 2022
Merged

feat: Cross Origin Testing Support #18075

merged 174 commits into from Apr 25, 2022

Commits on May 26, 2021

  1. 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
    chrisbreiding committed May 26, 2021
    Copy the full SHA
    6b827dd View commit details
    Browse the repository at this point in the history

Commits on May 27, 2021

  1. Copy the full SHA
    f5ec36e View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2021

  1. Copy the full SHA
    8bc9b5d View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2021

  1. Copy the full SHA
    6400e81 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2021

  1. Copy the full SHA
    d028437 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2021

  1. Copy the full SHA
    2caa04c View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    b42e418 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2021

  1. 2
    Copy the full SHA
    1014523 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2021

  1. 1
    Copy the full SHA
    69deb3e View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2021

  1. 1
    Copy the full SHA
    b8658cf View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2021

  1. Copy the full SHA
    afc39e9 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2021

  1. Copy the full SHA
    5d24a55 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2021

  1. Copy the full SHA
    64250be View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2021

  1. Copy the full SHA
    12da3bd View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2021

  1. Copy the full SHA
    e1f3a43 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2021

  1. Copy the full SHA
    da6fa94 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    66d947d View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2021

  1. Copy the full SHA
    700636a View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2021

  1. Copy the full SHA
    b36fdff View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    51dea49 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2021

  1. Copy the full SHA
    4288ce6 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    53cd6d1 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2021

  1. Copy the full SHA
    548db6e View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    31e6d3f View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2021

  1. Copy the full SHA
    617f321 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2021

  1. Copy the full SHA
    a3930c2 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2021

  1. Copy the full SHA
    4323215 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    f5d326a View commit details
    Browse the repository at this point in the history
  3. fix issues

    chrisbreiding committed Sep 8, 2021
    Copy the full SHA
    3ad6c36 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2021

  1. Copy the full SHA
    fef49f4 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2021

  1. Copy the full SHA
    16ad6b4 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2021

  1. Copy the full SHA
    4e140a2 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    92932c5 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2021

  1. Copy the full SHA
    cc66129 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2021

  1. Copy the full SHA
    416aabe View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    2aea225 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    fb5ff06 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2021

  1. Copy the full SHA
    9503b40 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2021

  1. Copy the full SHA
    8f11635 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2021

  1. Copy the full SHA
    516100b View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2021

  1. Copy the full SHA
    c6d2918 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2021

  1. Copy the full SHA
    2c28961 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2021

  1. Copy the full SHA
    8ac1ff0 View commit details
    Browse the repository at this point in the history
  2. fix errors

    chrisbreiding committed Dec 7, 2021
    Copy the full SHA
    0eeb442 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2021

  1. Copy the full SHA
    10264e6 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    b5a135d View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    37b881e View commit details
    Browse the repository at this point in the history
  4. use registerFetch

    chrisbreiding committed Dec 9, 2021
    Copy the full SHA
    cd77e08 View commit details
    Browse the repository at this point in the history
  5. fix reference error

    chrisbreiding committed Dec 9, 2021
    Copy the full SHA
    dacf0a5 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    f716178 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2022

  1. Copy the full SHA
    f2c6069 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2022

  1. Copy the full SHA
    ee6e105 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2022

  1. Copy the full SHA
    a42e601 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    a408b36 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2022

  1. chore: Remove hardcoded domain for multi-domain (#19323)

    Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
    Co-authored-by: Bill Glesias <bglesias@gmail.com>
    3 people committed Jan 12, 2022
    Copy the full SHA
    2ee9893 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2022

  1. Copy the full SHA
    8e0770f View commit details
    Browse the repository at this point in the history
  2. fix issues after merge

    chrisbreiding committed Jan 13, 2022
    Copy the full SHA
    cc08d12 View commit details
    Browse the repository at this point in the history
  3. fix types issue

    chrisbreiding committed Jan 13, 2022
    Copy the full SHA
    2e5fbad View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2022

  1. Copy the full SHA
    d8fa85d View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2022

  1. 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>
    3 people committed Jan 18, 2022
    Copy the full SHA
    0601570 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    0b39332 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2022

  1. Copy the full SHA
    d3601f6 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    7ef104e View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2022

  1. Copy the full SHA
    c84ace4 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    1faed02 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    89a497f View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2022

  1. 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>
    mjhenkes and mschile committed Jan 24, 2022
    Copy the full SHA
    3295adf View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2022

  1. Copy the full SHA
    2475b5a View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    1d69100 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    fdb0c96 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2022

  1. Copy the full SHA
    b50fe56 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2022

  1. 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>
    AtofStryker and chrisbreiding committed Jan 27, 2022
    Copy the full SHA
    bab8496 View commit details
    Browse the repository at this point in the history
  2. 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
    AtofStryker committed Jan 27, 2022
    Copy the full SHA
    fe03453 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2022

  1. Copy the full SHA
    4070270 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2022

  1. 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>
    3 people committed Feb 3, 2022
    Copy the full SHA
    c58a0ee View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2022

  1. Copy the full SHA
    dc9b694 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    c198372 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2022

  1. Copy the full SHA
    92bf23c View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2022

  1. Copy the full SHA
    0639d14 View commit details
    Browse the repository at this point in the history
  2. 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
    mjhenkes committed Feb 14, 2022
    Copy the full SHA
    191dc92 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    8d54632 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    89ea47d View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2022

  1. Fix misc test (#20201)

    mjhenkes committed Feb 15, 2022
    Copy the full SHA
    b6e1c30 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2022

  1. Copy the full SHA
    5f905ee View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    5269f4f View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2022

  1. 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.
    AtofStryker committed Feb 22, 2022
    Copy the full SHA
    288f6bd View commit details
    Browse the repository at this point in the history
  2. 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
    AtofStryker committed Feb 22, 2022
    Copy the full SHA
    5b4feaa View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2022

  1. Copy the full SHA
    0e942ed View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    fc7149e View commit details
    Browse the repository at this point in the history
  3. 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>
    mjhenkes and AtofStryker committed Feb 23, 2022
    Copy the full SHA
    b6243f5 View commit details
    Browse the repository at this point in the history
  4. 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>
    mjhenkes and AtofStryker committed Feb 23, 2022
    Copy the full SHA
    c8c2046 View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2022

  1. 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
    mjhenkes committed Feb 24, 2022
    Copy the full SHA
    a0c6f00 View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2022

  1. Copy the full SHA
    4c36cf9 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2022

  1. 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
    AtofStryker committed Mar 4, 2022
    Copy the full SHA
    ae65ae6 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2022

  1. 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
    mjhenkes committed Mar 7, 2022
    Copy the full SHA
    1eb5ab7 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2022

  1. Copy the full SHA
    74dea89 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2022

  1. Copy the full SHA
    ca1857f View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2022

  1. Copy the full SHA
    ca510ce View commit details
    Browse the repository at this point in the history
  2. chore: (multi-domain) url:changed fix, revert about:blank, use Cypres…

    …s.specBridgeCommunicator, Cypress.isMultiDomain (#20571)
    mschile committed Mar 14, 2022
    Copy the full SHA
    cd7f99d View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    892d8d9 View commit details
    Browse the repository at this point in the history
  4. 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
    AtofStryker committed Mar 14, 2022
    Copy the full SHA
    d1c3e4e View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2022

  1. Fix build (#20627)

    mjhenkes committed Mar 15, 2022
    Copy the full SHA
    46c0c75 View commit details
    Browse the repository at this point in the history
  2. 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>
    4 people committed Mar 15, 2022
    Copy the full SHA
    7f3a649 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2022

  1. Copy the full SHA
    bc30c68 View commit details
    Browse the repository at this point in the history
  2. fix type issues

    chrisbreiding committed Mar 16, 2022
    Copy the full SHA
    326fc19 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    9cc3108 View commit details
    Browse the repository at this point in the history
  4. fix more types

    chrisbreiding committed Mar 16, 2022
    Copy the full SHA
    0e8c511 View commit details
    Browse the repository at this point in the history
  5. 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>
    AtofStryker and mjhenkes committed Mar 16, 2022
    Copy the full SHA
    193a01a View commit details
    Browse the repository at this point in the history
  6. chore: [Multi-domain] Handle stability with delayed navigation (#20642)

    * chore: [Multi-domain] Handle stability with delayed navigation
    
    * remove unused args
    
    * adjust wait times
    mjhenkes committed Mar 16, 2022
    Copy the full SHA
    35501bc View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2022

  1. 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
    mjhenkes committed Mar 18, 2022
    Copy the full SHA
    ebb054e View commit details
    Browse the repository at this point in the history
  2. 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
    AtofStryker committed Mar 18, 2022
    Copy the full SHA
    432b3d5 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2022

  1. 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>
    3 people committed Mar 21, 2022
    Copy the full SHA
    9827b26 View commit details
    Browse the repository at this point in the history
  2. fix: [Multi-domain] Fix countLogsByTest (#20719)

    * chore: [multi-domain] fix count-logs-by-test
    
    * add tests, fix preAttempts
    
    * formatting
    
    * remove redundant test
    mjhenkes committed Mar 21, 2022
    Copy the full SHA
    f638ba7 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2022

  1. 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>
    AtofStryker and mjhenkes committed Mar 22, 2022
    Copy the full SHA
    89c0091 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    22b35be View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    a64cdb8 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2022

  1. 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>
    mjhenkes and AtofStryker committed Mar 23, 2022
    Copy the full SHA
    c7aa180 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2022

  1. 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>
    AtofStryker and mjhenkes committed Mar 24, 2022
    Copy the full SHA
    90d1eb7 View commit details
    Browse the repository at this point in the history
  2. chore: Verify cy.request() works in multi-domain callback (#20747)

    Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
    chrisbreiding and mjhenkes committed Mar 24, 2022
    Copy the full SHA
    ad176be View commit details
    Browse the repository at this point in the history
  3. 3
    Copy the full SHA
    3c19edb View commit details
    Browse the repository at this point in the history
  4. 3
    Copy the full SHA
    8f7cc74 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2022

  1. Copy the full SHA
    14215e3 View commit details
    Browse the repository at this point in the history
  2. 3
    Copy the full SHA
    453d1ca View commit details
    Browse the repository at this point in the history
  3. 4
    Copy the full SHA
    fedb65c View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2022

  1. 1
    Copy the full SHA
    04eabf0 View commit details
    Browse the repository at this point in the history
  2. chore: [multi-domain] clean up the sync:globals event in the event of…

    … errors (#20811)
    
    Co-authored-by: Bill Glesias <bglesias@gmail.com>
    mjhenkes and AtofStryker committed Mar 29, 2022
    3
    Copy the full SHA
    3b4b0ef View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2022

  1. 3
    Copy the full SHA
    4c1c18d View commit details
    Browse the repository at this point in the history
  2. 3
    Copy the full SHA
    b77f675 View commit details
    Browse the repository at this point in the history
  3. 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>
    mjhenkes and AtofStryker committed Mar 30, 2022
    Copy the full SHA
    9098744 View commit details
    Browse the repository at this point in the history
  4. 3
    Copy the full SHA
    1fa78f5 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2022

  1. 3
    Copy the full SHA
    8c9bd2a View commit details
    Browse the repository at this point in the history
  2. 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>
    mjhenkes and AtofStryker committed Mar 31, 2022
    2
    Copy the full SHA
    b3e66e7 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2022

  1. 3
    Copy the full SHA
    8bba681 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2022

  1. 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>
    mjhenkes and AtofStryker committed Apr 4, 2022
    3
    Copy the full SHA
    0c78630 View commit details
    Browse the repository at this point in the history
  2. 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>
    mjhenkes and AtofStryker committed Apr 4, 2022
    3
    Copy the full SHA
    15a60c1 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2022

  1. chore: [Multi-domain] Resolve flaky test (#20917)

    * chore: [Multi-domain] Resolve flaky test
    
    * remove ts ignore
    
    * update comment
    
    * remove dead code
    
    * Updated comment
    mjhenkes committed Apr 5, 2022
    Copy the full SHA
    f45be5e View commit details
    Browse the repository at this point in the history
  2. 3
    Copy the full SHA
    81e9283 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2022

  1. 2
    Copy the full SHA
    0772f85 View commit details
    Browse the repository at this point in the history
  2. 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>
    mjhenkes and chrisbreiding committed Apr 6, 2022
    3
    Copy the full SHA
    17e6bf4 View commit details
    Browse the repository at this point in the history
  3. 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
    mjhenkes committed Apr 6, 2022
    2
    Copy the full SHA
    213607f View commit details
    Browse the repository at this point in the history
  4. 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>
    mjhenkes and emilyrohrbough committed Apr 6, 2022
    3
    Copy the full SHA
    b65db7b View commit details
    Browse the repository at this point in the history
  5. 3
    Copy the full SHA
    dcbc68b View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2022

  1. 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>
    mjhenkes and mschile committed Apr 7, 2022
    2
    Copy the full SHA
    25af921 View commit details
    Browse the repository at this point in the history
  2. 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>
    mjhenkes and mschile committed Apr 7, 2022
    1
    Copy the full SHA
    c686922 View commit details
    Browse the repository at this point in the history
  3. 3
    Copy the full SHA
    8a78b5c View commit details
    Browse the repository at this point in the history
  4. 3
    Copy the full SHA
    782d89f View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2022

  1. chore: [Multi-domain] Fix uncaught error (#20971)

    * chore: [Multi-domain] Fix uncaught error
    
    * on failure, prevent injection
    
    * type cleanupOptions
    mjhenkes committed Apr 8, 2022
    3
    Copy the full SHA
    63c3247 View commit details
    Browse the repository at this point in the history
  2. chore: [Multi-domain] Update error messages based on feedback. (#20996)

    * chore: [Multi-domain] Update error messages based on feedback.
    
    * code review updates
    mjhenkes committed Apr 8, 2022
    3
    Copy the full SHA
    a7caf8a View commit details
    Browse the repository at this point in the history
  3. chore: audit cross-origin related TODOs/FIXMEs (#20975)

    Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
    chrisbreiding and mjhenkes committed Apr 8, 2022
    3
    Copy the full SHA
    f6975f8 View commit details
    Browse the repository at this point in the history
  4. 3
    Copy the full SHA
    a928781 View commit details
    Browse the repository at this point in the history
  5. 3
    Copy the full SHA
    fdfa933 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2022

  1. 1
    Copy the full SHA
    8959845 View commit details
    Browse the repository at this point in the history
  2. 3
    Copy the full SHA
    836edbf View commit details
    Browse the repository at this point in the history
  3. 3
    Copy the full SHA
    65d75dd View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2022

  1. 3
    Copy the full SHA
    f451d05 View commit details
    Browse the repository at this point in the history
  2. 3
    Copy the full SHA
    d98d0e1 View commit details
    Browse the repository at this point in the history
  3. 3
    Copy the full SHA
    663e5d5 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2022

  1. 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>
    mjhenkes and chrisbreiding committed Apr 13, 2022
    3
    Copy the full SHA
    dd3557f View commit details
    Browse the repository at this point in the history
  2. 3
    Copy the full SHA
    27e1afb View commit details
    Browse the repository at this point in the history
  3. feat(multi-origin): Group cy.origin commands (#21046)

    Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
    chrisbreiding and mjhenkes committed Apr 13, 2022
    Copy the full SHA
    c560caf View commit details
    Browse the repository at this point in the history
  4. 3
    Copy the full SHA
    e4dcb12 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2022

  1. 3
    Copy the full SHA
    890bde6 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2022

  1. 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>
    mjhenkes and chrisbreiding committed Apr 18, 2022
    2
    Copy the full SHA
    f02d750 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2022

  1. 3
    Copy the full SHA
    d7ce865 View commit details
    Browse the repository at this point in the history
  2. 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>
    mjhenkes and mschile committed Apr 21, 2022
    2
    Copy the full SHA
    e3161a0 View commit details
    Browse the repository at this point in the history
  3. 3
    Copy the full SHA
    f819be3 View commit details
    Browse the repository at this point in the history
  4. 3
    Copy the full SHA
    f164404 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2022

  1. 3
    Copy the full SHA
    885541e View commit details
    Browse the repository at this point in the history
  2. 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>
    3 people committed Apr 22, 2022
    Copy the full SHA
    a1101e6 View commit details
    Browse the repository at this point in the history
  3. 3
    Copy the full SHA
    ebaaf18 View commit details
    Browse the repository at this point in the history
  4. 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>
    chrisbreiding and mschile committed Apr 22, 2022
    2
    Copy the full SHA
    3e6d6bf View commit details
    Browse the repository at this point in the history
  5. Update packages/runner-shared/src/event-manager.js

    Co-authored-by: Zach Bloomquist <git@chary.us>
    mjhenkes and flotwig committed Apr 22, 2022
    3
    Copy the full SHA
    d866746 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2022

  1. 1
    Copy the full SHA
    b8ae51e View commit details
    Browse the repository at this point in the history
  2. 3
    Copy the full SHA
    f473d29 View commit details
    Browse the repository at this point in the history