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: _addQuery() #23665

Merged
merged 32 commits into from Sep 28, 2022
Merged

feat: _addQuery() #23665

merged 32 commits into from Sep 28, 2022

Conversation

BlueWinds
Copy link
Contributor

@BlueWinds BlueWinds commented Sep 1, 2022

User facing changelog

This PR contains three user-facing changes:

  • The addition of Cypress.Commands.addSelector(), in packages/driver/src/cypress/commands.ts and packages/driver/src/cypress/command_queue.ts. This currently an internal API - it will be added to the documentation and finalized as part of upcoming work.
  • Migrating .get() to be the first selector.
  • Moving Aliases to use concept of "subject chains" rather than re-running commands via the command queue, in packages/driver/src/cy/commands/querying/querying.ts and packages/driver/src/cy/commands/aliasing.ts.

Additional details

TODO

Steps to test

TODO

How has the user experience changed?

.get() should no longer be susceptible to Detached DOM errors. I intend to write additional tests around it, but please note the one I had to delete in within.cy.ts - it no longer fails, because addSelector() isn't susceptbile to that issue!

PR Tasks

  • Have tests been added/updated? Some have been added, but I would like to add more before merging, especially around custom commands and selectors.
  • Has the original issue (or this PR, if no issue exists) been tagged with a release in ZenHub? (user-facing changes only)
  • [n/a] Has a PR for user-facing changes been opened in cypress-documentation? API is not public facing, and one query alone has no behavioral changes (they only start occurring when queries interact with each other)
  • [n/a] Have API changes been updated in the type definitions?

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Sep 1, 2022

Thanks for taking the time to open a PR!

@cypress
Copy link

cypress bot commented Sep 6, 2022



Test summary

41100 0 3396 0Flakiness 4


Run details

Project cypress
Status Passed
Commit 9263b69
Started Sep 28, 2022 3:39 PM
Ended Sep 28, 2022 3:55 PM
Duration 16:55 💡
OS Linux Debian - 11.3
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

runs.cy.ts Flakiness
1 App: Runs > Runs - Create Project > when a project is created, injects new projectId into the config file, and sends expected UTM params
specs_list_latest_runs.cy.ts Flakiness
1 App/Cloud Integration - Latest runs and Average duration > when no runs are recorded > shows placeholders for all visible specs
e2e/origin/config_env.cy.ts Flakiness
1 cy.origin- Cypress.config() > serializable > overwrites different values in secondary, even if the Cypress.config() value does not exist in the primary
next.cy.ts Flakiness
1 Working with next-12.1.6 > should show compilation errors on src changes

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@BlueWinds BlueWinds changed the title feat: addSelector() redux feat: addQuery() Sep 7, 2022
@BlueWinds BlueWinds marked this pull request as ready for review September 7, 2022 17:40

describe('src/cy/commands/aliasing', () => {
beforeEach(() => {
cy.visit('/fixtures/dom.html')
})

context('#as', () => {
it('is special utility command', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aliasing is no longer a 'special utility command', it exists in the command queue and runs the same as any other.

@@ -87,29 +81,13 @@ describe('src/cy/commands/aliasing', () => {
})
})

context('DOM subjects', () => {
it('assigns the remote jquery instance', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the alias is now uses subject chains - which invoke the aliased commands directly - we've effectively made "using the correct jquery instance" the responsibility of the executing commands (which all already handle it properly).

@@ -328,9 +306,8 @@ describe('src/cy/commands/aliasing', () => {
// sanity check without command overwrite
cy.wrap('alias value').as('myAlias')
.then(() => {
expect(cy.getAlias('@myAlias'), 'alias exists').to.exist
expect(cy.getAlias('@myAlias'), 'alias value')
.to.have.property('subject', 'alias value')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This series of tests asserts on the internal state of Cypress - I've changed the shape of how aliases are stored, so the tests needed updating. This is not a "user-facing" test update.

expect(this.myAlias).to.eq(1)
})
})
})
})

context('#replayCommandsFrom', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aliases no longer run through the command queue, so this set of tests doesn't make much sense anymore. They instead use subject chains to accomplish the same goal.

"A subject chain" is essentially the minimal set of information needed to "replay commands that led of to a current subject" - except now it's used everywhere in Cypress, so all commands can benefit from it, rather than as a special case in aliasing.

})
})

it('sets type to child when subject matches', (done) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an actual behavioral change: We only set the log message to child when using the actual subject, not when asserting on something which happens to strictly equal the subject.

I don't see that this has any practical relevance for users. It's a very obscure situation, and is display-only (no tests that previously passed will now fail, nor vis-versa).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log:added is in our public API in case anyone reading this was wondering: https://docs.cypress.io/api/events/catalog-of-events#Cypress-Events But I agree this is extremely unlikely to cause breakage.

@@ -24,22 +23,6 @@ export default (Commands, Cypress, cy, state) => {
},

log (msg, ...args) {
// https://github.com/cypress-io/cypress/issues/8084
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests added as part of the linked issue are intact, and pass without changes. This logic here is no longer necessary due to cleaner handling of how subjects chain between commands.

import { resolveShadowDomInclusion } from '../../../cypress/shadow_dom_utils'
import { getAliasedRequests, isDynamicAliasingPossible } from '../../net-stubbing/aliasing'
import { aliasRe, aliasIndexRe } from '../../aliases'

function getAlias (selector, log, cy) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because queries return a function, it makes it super easy to isolate all the alias-related code in cy.get from the DOM-related code.

 if (aliasRe.test(selector)) {
      return getAlias.call(this, selector, log, cy)
    }

So .get() just has an early return (this function) if the arguments look like an alias.

interface InternalRootOptions extends Partial<Cypress.Loggable & Cypress.Timeoutable> {
_log?: Log
}

export default (Commands, Cypress, cy, state) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to the complex case of .get(), I wanted to include a simple query in this PR, to show the easier case.

.root() is as simple as it gets. This new version is more powerful than the old one - it retries if the root is detached from the DOM! This would be fairly unusual in the case of .root(), but I wanted to highlight how short a query can be (and how easy for the community to write properly) while still having a great deal of builtin retryability / other things that make Cypress commands great.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good candidate for a post 11.x blog post

@@ -323,10 +323,6 @@ describe('src/cy/commands/agents', () => {
expect(cy.state('aliases').myStub).to.exist
})

it('stores the agent as the subject', function () {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have tests around the user-facing behavior - this test asserting on the internal state that leads to this behavior is unnecessary.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BlueWinds Can you link that test?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rest of this file is asserting on the output of the alias (eg, that we can store and retrieve aliases). It's not a specific test, but the whole file. 🤷‍♀️

@@ -200,10 +200,10 @@ it('verifies number of cy commands', () => {
const actualCommands = Cypress._.reject(Object.keys(cy.commandFns), (command) => command === 'getAll' || command === 'shouldWithTimeout')
const expectedCommands = [
'check', 'uncheck', 'click', 'dblclick', 'rightclick', 'focus', 'blur', 'hover', 'scrollIntoView', 'scrollTo', 'select',
'selectFile', 'submit', 'type', 'clear', 'trigger', 'as', 'ng', 'should', 'and', 'clock', 'tick', 'spread', 'each', 'then',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This tests currently looks at cy.commandFns, which selectors are not added to.

TODO: Look into this test more, and see what it's actually doing and asserting on. Will do this as part of the next push, related to selectors-invoking-selectors.

Comment on lines +45 to +46
// TODO: Investigate whether or not we can reuse snapshots between logs
// that snapshot at the same time
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting idea. How would this work? My first thought is use a MutationObserver to prevent duplicating snapshots when nothing has changed in the DOM?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking about doing it a little bit less intelligently, and just noting if we're taking multiple snapshots synchronously - in a couple of places we do command.get('logs').forEach() sorts of things, where we iterate through commands and / or logs and snapshot all of them.

If we're looping like that without a chance for external JS code to execute, then we know the snapshots can be shared. Mutation observer would be a more intelligent way to do it - just keep a pointer to the most recent snapshot, and invalidate it whenever the DOM mutates.

Dunno, just a thing I was thinking about as I looked at this code. It's come up a couple of times (with Emily looking at memory usage, and also Brian brought up the idea at one point).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also interested in solving the "snapshots are big and memory hungry" problem. Another dumb way (I guess someone thought of this and dismissed it for reasons I hope I'm about to learn) is just to serialize the snapshots and compare them before/after, eg using XMLSerializer.

As an aside, when we talk about memory usage, is the issue primarily browser memory usage (this is my understanding). If so, the other solution I've seen floated (also talked about) would just be saving them in some database (sqlite?) on the server and shuttling them back/forth as needed via a websocket.

The obvious benefit of this is less complexity - just consumes a lot more data. Potential positive would be you can keep the snapshots for use later on (could be useful for many cool things, like replaying something that happened on CI in the Cloud or locally...).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to move in the opposite direction, to shuttle less over the air between app <-> server, rather than more.

Serializing is expensive, even if we don't retain it in memory. Repeatedly snapshotting and throwing away the snapshots if they're identical is a great way to keep CPU manufacturers in business. :P

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'd track the diffs using MutationObserver and only serialize the patches that describe the minimum set of changes, and then rebuild them on demand to a particular state / time

Copy link
Contributor

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some early comments, I will play with this for a bit and probably make some more, I'm still internalizing things.

* ['foobar', f()]
* [undefined, f(), f()]
*/
getSubjectFromChain (subjectChain, cy) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know the full type definition for subjectChain? Getting this a bit more type-safe would be really useful - right now without a lot of context on how it all works, it's pretty difficult for new people to dive into driver, because you need this mental model of what exactly subject and subjectChain are. I'm finding I need to do a lot of logging and poking around to figure out what I'm looking at.

Not sure if it's practical to add them, but even something simple would be useful.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some types to the PR. SubjectChain looks like so:

type QueryFunction = (any) => any
export type SubjectChain = [any, ...QueryFunction[]];

any in this context is a complete description - any value is valid for the first entry, including undefined, and QueryFunctions can take anything (one argument) and return anything (one argument).

Commands.addQuery (name: string, fn: () => QueryFunction)

Also added these types: a query is a function that returns a QueryFunction (department of redundancy department is redundant :D ).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's still useful to know that something returns itself, even if it feels a bit redundant. Eventually it would be nice to support something like

cy.get<HTMLButtonElement>('#button'). [only show relevant methods to HTMLButtonElement here]

Gotta start somewhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Individual commands can potentially be more strictly typed - but I think you'll quickly find that most Cypress commands are so versatile that their types end up horribly messy. .get(), for example, can return an HTMLElement... or the result of an alias, which can be literally anything. '.first(), which looks like a method for traversing HTML collections, can also accept any[], or JQuery` as a previous subject. 🤷‍♀️

Comment on lines +45 to +46
// TODO: Investigate whether or not we can reuse snapshots between logs
// that snapshot at the same time
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also interested in solving the "snapshots are big and memory hungry" problem. Another dumb way (I guess someone thought of this and dismissed it for reasons I hope I'm about to learn) is just to serialize the snapshots and compare them before/after, eg using XMLSerializer.

As an aside, when we talk about memory usage, is the issue primarily browser memory usage (this is my understanding). If so, the other solution I've seen floated (also talked about) would just be saving them in some database (sqlite?) on the server and shuttling them back/forth as needed via a websocket.

The obvious benefit of this is less complexity - just consumes a lot more data. Potential positive would be you can keep the snapshots for use later on (could be useful for many cool things, like replaying something that happened on CI in the Cloud or locally...).

Copy link
Contributor

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left some more questions/comments 👍

*
* The upshot is that any test that relies on `cy.get()` is using the query-based implementation, but various
* driver commands have access to the original implementation of .get() via cy.now(). This is a temporary state
* of affairs while we refactor other commands to also be queries - we'll eventually be able to delete this
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, did not know about cy.now().

I do not fully understand this - I get a lot of things rely on the original cy.get() (makes sense) but if we overwrite it immediately, won't all those commands get the newer cy.get() which uses the new selector implementation? I'm probably missing something.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The key is that that Commands.add() registers the function in cy.commandFns[name], while addQuery doesn't. So we register it as a command, creating cy.get() and cy.commandFns.get, then register it as a query, overriding cy.get().

https://github.com/cypress-io/cypress/pull/23791/files#diff-231d74866a51e1411d172ab6ca0658f7fa712e9676f216ba797c544c47dcbf94 contains the actual fix - registering queries separately (without a wrapping promise) and then updates our other commands to use cy.now('get') properly when .get is a query - but I didn't have that ready when I made this PR, and I think it makes sense to merge in separately regardless (since it's a breaking change, needs to go in 11.x branch and not develop).

@@ -156,7 +310,8 @@ export default (Commands, Cypress, cy, state) => {
}

if (aliasObj) {
let { subject, alias, command } = aliasObj
let { alias, command } = aliasObj
let subject = $utils.getSubjectFromChain(aliasObj.subjectChain, cy)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was trying to find out where this was used so I pushed a commit throwing an error here: https://github.com/cypress-io/cypress/compare/issue-7306-addSelector-redux...lmiller1990/issue-7306-addSelector-redux?expand=1

Surprisingly only tests related to type() broke - is this what you'd expect? Why would this be case? I was expecting a lot more to fail. Does this mean only type() uses the old get implementation? That's a lot less than I was expecting.

CI: https://app.circleci.com/pipelines/github/cypress-io/cypress?branch=lmiller1990%2Fissue-7306-addSelector-redux

Copy link
Contributor Author

@BlueWinds BlueWinds Sep 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's because the type() tests invoke cy.getAll(), which a custom command registered in support/utils.ts and uses cy.now('get', '@stuff') - which is the only way to hit this block of code.

Normal users use cy.get('@foo') (using the selector), and most of our commands use cy.get('button') (which isn't an alias and therefore misses this code block about aliases). Only the combination of aliasing and .now() can end up here, and .type() tests seem to be the only place in our code base that does so. 🤷‍♀️

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm ok - we will eventually refactor type to not go here, then we can delete this block (only used for one thing, which is type, which is hard to know by looking at this)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. This entire block - the whole add('get') section - will be removed in my next PR, which I'm currently working on and should have ready today or tomorrow. This is just a messy temporary state because I wanted to limit the scope of things going in at once.

const { subjectChain } = cy.state('aliases').b

expect(subjectChain.length).to.eql(2)
expect(subjectChain[0]).to.be.undefined
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the first subject chain undefined? Shouldn't the only subject chain be .get()? Shouldn't we assert the second subject chain is actually .get()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Subject chains always start with a "primitive" value, and then append any number of functions that then chain off this value.

Consider these two cases:

cy.get('button').contains('Login')

cy.get('button').click().contains('Login')

In the first case, we make a subject chain like [undefined, getFn(), containsFn()]. In the second one, we start with that same value, but .click() replaces the subject chain rather than adds to it - so we end up with [<button>, containsFn()].

I start subject chains with 'undefined' so that they always have a consistent shape: a primitive value, followed by 0 or more functions that are applied to it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the second part - yes, yes we should assert that the second entry is .get(). Added an assertion.

@@ -12,7 +14,7 @@ export class $Command {
// the id prefix needs to be unique per origin, so there are not
// collisions when commands created in a secondary origin are passed
// to the primary origin for the command log, etc.
attrs.id = _.uniqueId(`cmd-${window.location.origin}-`)
attrs.id = `${attrs.chainerId}-cmd-${idCounter++}`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussing chainer and command IDs with @emilyrohrbough in slack, we came to the conclusion that it would be very nice for debugging if it were clear which commands belong to which chainers; thus this change (and the associated one above in packages/driver/src/cypress/chainer.ts).

This results in command and chainer IDs that look like this, where it's easy to tell at a glance what belongs to what. It also eliminates the confusion that chainerIds weren't sequential - _.uniqueId() shares only a single counter, so you'd get chainer-2, cmd-3, chainer-4, etc.

This is only to make IDs easier to reason about and debug, no user-visible impact.

image

@BlueWinds
Copy link
Contributor Author

I've pushed some additional changes to this branch since the last review, merging in develop and fixing some subsequent merge conflicts and test failures.

Re-requesting review from those who've approved, and thank you for your patience while I got this into shape again!

@@ -163,7 +198,21 @@ export class CommandQueue extends Queue<$Command> {
let ret
let enqueuedCmd

// Queries can invoke other queries - they are synchronous, and get added to the subject chain without
// issue. But they cannot contain commands, which are async.
// This callback watches to ensure users don't try and invoke any commands while inside a query.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be interested to review the documentation PR associated with queries (we will need to make sure how they work and requirements/limitations are clear to users, so they can author their own).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After discussing this with Brian, we're holding off making the API public, which is why the PR switched to _addQuery, indicating an internal method. Documentation will wait until the end of the project, when we're ready to remove the underscore and have worked out all the kinks.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I should clarify; I'll be interested in seeing it when it's available (not saying we should have it done now - definitely can come later).

Copy link
Contributor

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran the tests and poked around, getting a better understanding of all this. I'll approve since the code works and we've been over it a few times, but I do have one last question. It's more for my understanding.


const chainerId = this.state('chainerId')
const userInvocationStack = $stackUtils.captureUserInvocationStack(cy.specWindow.Error)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not fully understanding what's going on here - why does _addQuery need to grab the userInvocationStack? Isn't this for error handling? Do we expect that here when they initially call useQuery (or is this to handle the cases where they used useQuery incorrectly?

Copy link
Contributor Author

@BlueWinds BlueWinds Sep 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question, it took me a while to figure out how stack traces work in Cypress.

This function is literally cy.get(): A few lines above, we have cy[name] = function (...args) { ...this function... }, so the stack trace here is the transition point between 'user test code' and 'internal Cypress code'. We capture it so that later, when the command actually executes and possibly throws an error, we can point out to users where in their code an error occurred.

Here are a couple of slightly simplified stack traces to show why this is the best place. With the simple command cy.get('body'), the stack trace at this point looks like:

    name                       cy.ts:797  <-- This anonymous function, which is literally `cy.get`
    js                         querying.cy.js:16   <-- The code in the test file calling cy.get('body')
    __stackReplacementMarker   cy.ts:85
    ...lots of internal Cy stuff...

Here's what a stack trace looks like when an error is thrown inside cy.get():

image

Any error in the command is thrown much later, as part of command queue execution - the location where cy.get() was called in the user's code is long lost, and this stack trace contains no useful information for the user trying to figure out how they wrote their test wrong / how their application is failing.

Thus, for queries and commands both, we capture the user stack trace when the command is added to the queue, so that we can display this if the command throws an error later while executing.

(none of this is query specific; commands work the same way with regards to userStackTraces)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, that explains how this works (had a vague idea, but this clarified). Last question would be why was this added here specifically in this PR? Did we move the logic here from somewhere else? Or did the useQuery addition require this to be added here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's added here because _addQuery is a mirror to the existing addCommand - you can see the exact same line,

const userInvocationStack = $stackUtils.captureUserInvocationStack(cy.specWindow.Error)

up earlier in this file, line 791 inside addCommand.

_addQuery and addCommand are fairly similar in a lot of ways, but the details differ enough that I didn't want to mesh in a bunch of if (isQuery) {...} code branches into addCommand, and decided that some code duplication was the lesser of two evils.

@BlueWinds
Copy link
Contributor Author

Currently failing tests are flake; cypress-schematic will be fixed in develop soon (thanks Ryan!), and the driver-integration-tests-electron-experimentalSessionAndOrigin is known flake from cy.origin + cy.go().

@BlueWinds BlueWinds merged commit 41fc535 into develop Sep 28, 2022
@BlueWinds BlueWinds deleted the issue-7306-addSelector-redux branch September 28, 2022 16:01
BlueWinds added a commit that referenced this pull request Sep 28, 2022
@BlueWinds BlueWinds restored the issue-7306-addSelector-redux branch September 28, 2022 18:39
BlueWinds added a commit that referenced this pull request Sep 28, 2022
BlueWinds pushed a commit that referenced this pull request Sep 28, 2022
BlueWinds added a commit that referenced this pull request Sep 29, 2022
mschile added a commit that referenced this pull request Oct 13, 2022
commit 688b7ea33e8243a76fc1b3bd7f5ef7f2bfba07f9
Author: Zach Bloomquist <git@chary.us>
Date:   Wed Oct 12 17:21:58 2022 -0400

    feat(webkit): fix multidomain driver tests in WebKit (#23442)

    * Initial async changes

    * Small fixes and test updates.

    * updating tests

    * Fixes for cookie login tests

    * remove the onlys

    * Most tests passing

    * Fix driver tests?

    * fix firefox test?

    * fix unit tests

    * fix tests??

    * a better check

    * fix integration tests

    * minor cleanup

    * Comment out tyler fix for 10.0 origin issue

    * also fix integration tests

    * remove fixmes

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

    * Address (some) PR comments

    * factor console logging out of run.ts

    * fix print-run

    * minimize diff

    * chore(server): convert browsers/index to typescript

    * fix tests

    * update stubbed tests

    * convert electron.js to .ts

    * Suggestions from code review

    * Clean up new type errors

    * electron.connectToExisting can be sync

    * more type errors for the type god

    * Suggestions from code review

    * refactor: move more of video capture into browser automations

    * unit tests

    * refactor: move videoCapture to browsers

    * fix snapshots

    * update to warn about cross origin command AUT in assertions

    * Fix type errors

    * fix multi-spec videos?

    * webkit video recording works!

    * webkit system tests

    * skip system-tests that won't be fixed in this PR

    ~60 tests skipped out of ~99:
    * ~6 skipped due to needing multidomain support
    * ~8 skipped due to missing before:browser:launch support
    * ~22 skipped due to broken stack traces

    * fix single-tab mode

    * cleanup/api renames

    * fix more tests

    * minimize diff, fix ff

    * fix unit tests

    * fix tests

    * cleanup

    * Move document.cookie patch to injection

    * enable ci job

    * fix up/add request events to webkit automation

    * update undefined message

    * doesn't need an underscore

    * Adding iframe patching.

    * forward errors prior to attaching

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

    * Attempt to fix test errors.

    * more fixes, but not all

    * use the origin policy

    * Fix types

    * more fixes

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

    * firefox

    * prevent hangs if before unload happens after on load.

    * Fix some ToDos

    * code cleanup

    * remove quotes

    * Code review changes

    * more cr changes

    * fix tests possibly

    * Updating cy.origin websocket for webkit connection error

    * for realz this time

    * temp fix for before:unload/load issue

    * roll back change

    * Fix some flake

    * temporarily comment out autWindow.Error patch

    * updating cookies to match develop

    * update circle.yml

    * commenting out driver-integration-tests-webkit-experimentalSessionAndOrigin

    * revert cookie test change

    * revert cross origin change

    * Fix clear cookie problem

    * Try it again

    * test cy.origin in webkit

    * Skip origin tests when running in webkit

    * missed one

    * attempt to revert web_security changes

    * enable sessions on webkit

    * maybe this fixes system tests??

    * Update web_security_spec.js

    * Update web_security_spec.js

    * file cleanup

    * Unify socket creation logic

    * Address PR Comments

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

commit b7213c9bf03b0d2974ff83a52b2d7b1dfe6bba0c
Author: Adam Stone <adams@cypress.io>
Date:   Wed Oct 12 17:01:49 2022 -0400

    chore: bump timeout for Angular webpack-dev-server tests (#24231)

commit 1e94afcabdf74b71fe56f707ba1e4e854f3f047c
Author: Aishe Ibrahim <adnerdable@gmail.com>
Date:   Wed Oct 12 15:11:18 2022 -0400

    chore: fixed tyos docs line 386 & 387 (#24180)

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

commit 74ef8843f672562058d45b75797b9ab79130e16b
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Wed Oct 12 13:15:04 2022 -0500

    fix(reporter): attempt styles (#24134)

commit 4e2abf35f884ea6b53f54a1bd1cda50828d074a4
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Wed Oct 12 12:39:25 2022 -0400

    chore: release @cypress/webpack-dev-server-v2.3.0

    [skip ci]

commit 2d63fea7d3640c0e8c8f24625faf6bb984920807
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Wed Oct 12 12:39:09 2022 -0400

    chore: release @cypress/vue2-v1.1.0

    [skip ci]

commit a794417094bce4feb7fd7cd475f8305dc81baf18
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Wed Oct 12 12:38:53 2022 -0400

    chore: release @cypress/vue-v4.2.0

    [skip ci]

commit 42343881de271edc6d771f3503c07e76d63c6e1c
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Wed Oct 12 12:38:38 2022 -0400

    chore: release @cypress/react18-v1.1.0

    [skip ci]

commit f169a8b2ff3d315ab9fbfa25b189ccd2fce4eb53
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Wed Oct 12 12:38:26 2022 -0400

    chore: release @cypress/react-v6.2.0

    [skip ci]

commit 7f2c621ddddfabbeb6eca8881e5a63aa303c91dd
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Wed Oct 12 12:38:13 2022 -0400

    chore: release @cypress/mount-utils-v2.1.0

    [skip ci]

commit 16fadb38f3185fdf912fe6e65891c6435d675842
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Wed Oct 12 12:38:01 2022 -0400

    chore: release @cypress/schematic-v2.1.0

    [skip ci]

commit 485b400810d9df41b22488ec3ec9d7b60335c1d4
Author: Adam Stone <adams@cypress.io>
Date:   Wed Oct 12 12:04:25 2022 -0400

    chore: update Cypress package description (#24216)

commit 653a2266f5890946640b1a1762b4eefe27580cef
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 11 17:42:06 2022 -0400

    chore: release @cypress/webpack-dev-server-v2.3.0

    [skip ci]

commit 837a11275ea8c8a1c52ef80c90e9408f700e6a36
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 11 17:41:52 2022 -0400

    chore: release @cypress/vue2-v1.1.0

    [skip ci]

commit 8978187e674c35475e299432cf307630b7b90392
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 11 17:41:38 2022 -0400

    chore: release @cypress/vue-v4.2.0

    [skip ci]

commit 7f23540d3aa4833dd97134e9528f36a3609ac882
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 11 17:41:23 2022 -0400

    chore: release @cypress/react18-v1.1.0

    [skip ci]

commit f549f916d85d17c7db62d4980874963da79a6ddc
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 11 17:41:08 2022 -0400

    chore: release @cypress/react-v6.2.0

    [skip ci]

commit 0131e218f1cbe2bd9a5db453e7232463095a4790
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 11 17:40:54 2022 -0400

    chore: release @cypress/mount-utils-v2.1.0

    [skip ci]

commit 47b6a6e5348683a73683e9b80039ceeafcdc8130
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 11 17:40:38 2022 -0400

    chore: release @cypress/schematic-v2.1.0

    [skip ci]

commit d8574c1ed5d9fc40ff60863ac1f10bdc31c6ed0d
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 11 17:40:22 2022 -0400

    chore: release @cypress/angular-v1.1.2

    [skip ci]

commit d4e8842a2aaaafd7033f9d155ac27f931f240cbf
Author: Adam Stone <adams@cypress.io>
Date:   Tue Oct 11 21:05:43 2022 +0000

    chore: bump Cypress version (#24211)

commit 0bb705c185aa59ebcc6d2a38d936f984ac51f26b
Author: Kukhyeon Heo <sainthkh@naver.com>
Date:   Wed Oct 12 03:41:54 2022 +0900

    chore: Migrate react Highlight component to Vue (#23973)

    * add test.

    * Add Highlight vue component + remove react component.

    * Remove floating-ui dependency.

    * fix test failure

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

commit 53eef4fbd7e1caf32f0183cadbc0e4cf05524c34
Author: Zachary Williams <ZachJW34@gmail.com>
Date:   Tue Oct 11 09:21:32 2022 -0500

    fix: angular and nuxt ct tests now fail on uncaught exceptions (#24122)

commit d0f13e93ef2d928247eb9bed93f50d2d9d275180
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 11 09:32:49 2022 -0400

    chore: release @cypress/webpack-dev-server-v2.3.0

    [skip ci]

commit 2a7d2dbfca41cb7f59f2507bcc9541470ec4e186
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 11 09:32:35 2022 -0400

    chore: release @cypress/vue2-v1.1.0

    [skip ci]

commit 5334ad2ed20c30a8e5f5a734d5e5ff43a31babfc
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 11 09:32:21 2022 -0400

    chore: release @cypress/vue-v4.2.0

    [skip ci]

commit 66952dedb7a08545c0d4ea4a4cfed200ab25e0c7
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 11 09:32:02 2022 -0400

    chore: release @cypress/vite-dev-server-v3.3.1

    [skip ci]

commit ca9fb8f8fd34a86e922c90efc7e62a3bfc8e2681
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 11 09:31:54 2022 -0400

    chore: release @cypress/react18-v1.1.0

    [skip ci]

commit fb40f688e8539127e2d40c706e40b754fddc64f2
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 11 09:31:40 2022 -0400

    chore: release @cypress/react-v6.2.0

    [skip ci]

commit e14e6d1669b2a2086d1a56988a801605aff1864c
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 11 09:31:27 2022 -0400

    chore: release @cypress/mount-utils-v2.1.0

    [skip ci]

commit 57babc3ef55e51f1c64a23294857d2d3a5e6809f
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 11 09:31:11 2022 -0400

    chore: release @cypress/schematic-v2.1.0

    [skip ci]

commit 0e62696a0ed771794d1ccb350e8b9e01aa0a2e14
Author: Matt Schile <mschile@cypress.io>
Date:   Mon Oct 10 21:45:48 2022 -0600

    fix: add support for checking multiple hosts when connecting to CDP (#24155)

commit 0c42a7e73b925aa6add6bb06a37b4296a54dbfdd
Author: Stokes Player <stokes@cypress.io>
Date:   Fri Oct 7 15:16:22 2022 -0400

    fix: include cypress version in header to anon-collect endpoint (#24158)

commit 5af6b27ed972ba9bc03d4a7fa4eaaeb2c7848fc3
Author: amehta265 <65267668+amehta265@users.noreply.github.com>
Date:   Fri Oct 7 12:24:54 2022 -0400

    fix: CSS import in CT Support file is not working (#24117)

commit 3edd5be6700889a996e47a02de0c4a390254a86f
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Oct 6 14:11:22 2022 -0400

    chore: release @cypress/webpack-dev-server-v2.3.0

    [skip ci]

commit f0987f40f7c5588937c4790fd15f55fe70db245e
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Oct 6 14:11:10 2022 -0400

    chore: release @cypress/vue2-v1.1.0

    [skip ci]

commit 98c9a4b30433e78654737f8fefe6d86d393d3cb4
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Oct 6 14:10:57 2022 -0400

    chore: release @cypress/vue-v4.2.0

    [skip ci]

commit e83130af278a55906c9a4cd135c3b30779720598
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Oct 6 14:10:38 2022 -0400

    chore: release @cypress/vite-dev-server-v3.3.0

    [skip ci]

commit 8f4788d9a09bfd3ecbf3e9e12764dd8215d9016c
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Oct 6 14:10:29 2022 -0400

    chore: release @cypress/react18-v1.1.0

    [skip ci]

commit e7b2ff04b8196a2ce367cce4f1fc2b95e83a14e2
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Oct 6 14:10:15 2022 -0400

    chore: release @cypress/react-v6.2.0

    [skip ci]

commit ab4fda9d677be19786611195b8d916c81146117e
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Oct 6 14:09:59 2022 -0400

    chore: release @cypress/mount-utils-v2.1.0

    [skip ci]

commit c305a1a3ee7ce72c48f30ae21e3f6ec23ddd4549
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Oct 6 14:09:44 2022 -0400

    chore: release @cypress/schematic-v2.1.0

    [skip ci]

commit eaa1de7ff76cf0ae6730e8df19594b60b762be01
Author: Mark Noonan <mark@cypress.io>
Date:   Thu Oct 6 13:38:50 2022 -0400

    feat: add logic for "cypress-triggered events" (#24101)

    Co-authored-by: Zachary Williams <ZachJW34@gmail.com>

commit 139046619b98b78858a6b711b5359df2d1250377
Author: Jordan <jordan@jpdesigning.com>
Date:   Thu Oct 6 11:44:58 2022 -0400

    test(webpack-dev-server): add more angular mount tests (#23569)

commit e918fc1a8c1b26b25207e42a6b8a879b0a3e9a2b
Author: Mike Plummer <mike-plummer@users.noreply.github.com>
Date:   Thu Oct 6 09:50:44 2022 -0500

    fix: Address Vite sourcemap edge cases (#24063)

commit 3e014743909b35f54b697d2a759e4a2c5b67b5b7
Author: Mike Plummer <mike-plummer@users.noreply.github.com>
Date:   Wed Oct 5 13:41:56 2022 -0500

    feat: Disable file watching in component tests in run mode (#24097)

commit 70f4945430bc143c7fa1fa3db7a14aa4ac248fd2
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Wed Oct 5 11:45:53 2022 -0500

    fix(reporter): fix nested command styles (#24132)

commit 93a16b7247ab6f89723d6cfed2741d792d196099
Author: Jordan <jordan@jpdesigning.com>
Date:   Wed Oct 5 07:08:18 2022 -0400

    docs: Add xpath and grep to npm packages documentation (#23941)

commit 4904684c2f0c1c081bc7a302ddc19ed0dba77c22
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 4 18:56:27 2022 -0400

    chore: release @cypress/webpack-preprocessor-v5.14.0

    [skip ci]

commit ce392544e355ef5e2744b704b4153c701e029f20
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 4 18:56:20 2022 -0400

    chore: release @cypress/webpack-dev-server-v2.3.0

    [skip ci]

commit f4fb9582c040ac3a87aefef2cbdb00b26aeeb097
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 4 18:56:09 2022 -0400

    chore: release @cypress/vue2-v1.1.0

    [skip ci]

commit 23e84add391931e4323bc97aa1a6e1a0680780e9
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 4 18:55:58 2022 -0400

    chore: release @cypress/vue-v4.2.0

    [skip ci]

commit 9a76b77f2115a4c8272772cb11e644ad7b1a1010
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 4 18:55:45 2022 -0400

    chore: release @cypress/react18-v1.1.0

    [skip ci]

commit 16fd17326d7e9486ca5a582001750d0521a2eea5
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 4 18:55:34 2022 -0400

    chore: release @cypress/react-v6.2.0

    [skip ci]

commit 7a15c847264e315765686a493d19f371c82a8b66
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 4 18:55:22 2022 -0400

    chore: release @cypress/mount-utils-v2.1.0

    [skip ci]

commit caf909305467a1215fbe3705d38552432ed42ff5
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Oct 4 18:55:12 2022 -0400

    chore: release @cypress/schematic-v2.1.0

    [skip ci]

commit 695dd275bcca75543fccefb92afe6bc7700f15ef
Author: Bill Glesias <bglesias@gmail.com>
Date:   Tue Oct 4 18:26:04 2022 -0400

    feat: same origin spec bridges (#23885)

    * chore: enforce strict origin spec bridges

    chore: refactor spec bridges to strictly enforce same origin

    fix: wrap fullCrossOrigin injection around feature flag inside buffered response

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

    * chore: simplify the finding cypress in the injection code

    * chore: change order in which callback fn is declared

    * chore: add spec bridge performance issue to validation tests

commit a8e4867358486b8737e698045563b8149d98ae9c
Author: Vilhelm Melkstam <vilhelm.melkstam@gmail.com>
Date:   Tue Oct 4 22:45:04 2022 +0200

    fix: clamp command output to 50 lines (#24089)

    Co-authored-by: astone123 <adams@cypress.io>

commit e02a0b99897807095d48e30e59027a87825a253b
Author: Stokes Player <stokes@cypress.io>
Date:   Tue Oct 4 14:28:34 2022 -0400

    fix: Passing cohort through to SelectCloudProjectModal (#24071)

commit 4870b7f1bb237aa26cbe31ec1d6521e5e1e9aa3a
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Tue Oct 4 10:49:02 2022 -0500

    chore(server): organization of cloud-specific files (#24028)

commit c18678381ca3ab35c4ab91fdf98b5c8cf537bd21
Author: Jordan <jordan@jpdesigning.com>
Date:   Tue Oct 4 10:46:42 2022 -0400

    fix(angular): set webpack base so angular assets load (#24106)

    * fix(angular): set webpack base so angular assets load

commit d9c5e576728498ccef05193599fe3cd982d59b69
Author: Matt Schile <mschile@cypress.io>
Date:   Tue Oct 4 08:34:48 2022 -0600

    chore: set rejectUnauthorized for api calls (#24087)

commit ed35eaa48effe4e9de36b15c4daf529fc0dacee6
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Mon Oct 3 21:23:50 2022 -0400

    chore: release @cypress/webpack-preprocessor-v5.13.1

    [skip ci]

commit 2898121b7f14fb38b45bee9be32ec13471358b34
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Mon Oct 3 21:23:42 2022 -0400

    chore: release @cypress/webpack-dev-server-v2.3.0

    [skip ci]

commit f58875f412ff61a7b260383f3df36f337111577c
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Mon Oct 3 21:23:30 2022 -0400

    chore: release @cypress/vue2-v1.1.0

    [skip ci]

commit 1e355f41f9f6ca80a4d6fba48f002a4d1ea78fb6
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Mon Oct 3 21:23:17 2022 -0400

    chore: release @cypress/vue-v4.2.0

    [skip ci]

commit 9b37fc29d3027b0550dbc128ceb02329c63462d0
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Mon Oct 3 21:23:04 2022 -0400

    chore: release @cypress/react18-v1.1.0

    [skip ci]

commit 48e4b84ed34c9d9516888e1921b6f5b6fe3e0eae
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Mon Oct 3 21:22:52 2022 -0400

    chore: release @cypress/react-v6.2.0

    [skip ci]

commit 89a605d21ae2f133f53203a0583faba677289dfe
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Mon Oct 3 21:22:39 2022 -0400

    chore: release @cypress/mount-utils-v2.1.0

    [skip ci]

commit 9078d1edf5a4c7a9a8aa46dc46a70617af8f82ed
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Mon Oct 3 21:22:26 2022 -0400

    chore: release @cypress/schematic-v2.1.0

    [skip ci]

commit 94b4ca0b462e3682af007b6204713da293ac2bd8
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Mon Oct 3 21:22:10 2022 -0400

    chore: release @cypress/angular-v1.1.1

    [skip ci]

commit e72d607814a08e3f6310bf91c24ecd8fc160ff3a
Author: Chris Breiding <chrisbreiding@users.noreply.github.com>
Date:   Mon Oct 3 20:49:00 2022 -0400

    fix(webpack-preprocessor): Move md5 from devDependencies to dependencies (#24098)

commit 670d43830947c3ea93ef9fdc9c90932a817eb453
Author: Jordan <jordan@jpdesigning.com>
Date:   Mon Oct 3 18:17:46 2022 -0400

    fix(angular): call ngOnChanges after mount (#23596)

    * fix(angular): call ngOnChanges after mounting

commit 097603422535f88aed56b651824d0a3a9d5e81ff
Author: Colum Ferry <cferry09@gmail.com>
Date:   Mon Oct 3 21:49:13 2022 +0100

    fix(webpack-dev-server): handle polyfills array for upcoming angular 15 change (#24064)

    Co-authored-by: Zachary Williams <zachjw34@gmail.com>

commit e626679c246ea33c83180d516599af637c3e443b
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Mon Oct 3 15:51:40 2022 -0400

    chore: release @cypress/webpack-dev-server-v2.3.0

    [skip ci]

commit 98f8dcef5795299a1c5ea4681e509f9d9ead0dad
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Mon Oct 3 15:51:28 2022 -0400

    chore: release @cypress/vue2-v1.1.0

    [skip ci]

commit 1591c0966b073c74306ca998cee96b85438372b8
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Mon Oct 3 15:51:16 2022 -0400

    chore: release @cypress/vue-v4.2.0

    [skip ci]

commit 6084976ad1c9e60fb5091194a7b08098873c4851
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Mon Oct 3 15:51:04 2022 -0400

    chore: release @cypress/react18-v1.1.0

    [skip ci]

commit 77fd5c03f11e60b47e0375c9e2d8c1993b7da5b2
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Mon Oct 3 15:50:53 2022 -0400

    chore: release @cypress/react-v6.2.0

    [skip ci]

commit 05474b4dd568c6404e4381dce491866d2119c2b2
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Mon Oct 3 15:50:40 2022 -0400

    chore: release @cypress/mount-utils-v2.1.0

    [skip ci]

commit 0c0849154c49405a7e97c99830f7ea3171ee968e
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Mon Oct 3 15:50:29 2022 -0400

    chore: release @cypress/schematic-v2.1.0

    [skip ci]

commit 282455c6ea70c5020f68de8d9c74eacf7c6c3c5a
Merge: a76df0b4fd 3208af6b29
Author: Bill Glesias <bglesias@gmail.com>
Date:   Mon Oct 3 15:18:57 2022 -0400

    Merge pull request #23872 from cypress-io/feature/simulated-top-cookie-handling

    feat:  Improve simulated top cookie handling

commit 3208af6b2941ef43c932a606be4e8142159d1526
Merge: a41b104880 a76df0b4fd
Author: Bill Glesias <bglesias@gmail.com>
Date:   Mon Oct 3 10:06:16 2022 -0400

    Merge branch 'develop' into feature/simulated-top-cookie-handling

commit a41b104880843e9d3d176c950f215b7e843d2d4e
Author: Bill Glesias <bglesias@gmail.com>
Date:   Mon Oct 3 10:05:34 2022 -0400

    chore: simulated cookie fixes 1 (#24060)

    * chore: add documentation to CDP,electron, and web extension for selected resource types

    * chore: change nomenclature of X-Cypress-Request to X-Cypress-Is-XHR-Or-Fetch

    * chore: remove no longer applicable comment for socket code

    * chore: add comments to the resourceType/credential manager

commit a76df0b4fd0293674cb9d115950697a04447ba9a
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Sat Oct 1 11:50:38 2022 -0400

    chore: release @cypress/webpack-dev-server-v2.3.0

    [skip ci]

commit 32d7096af88e23d54b982a037d9bce53e79072a4
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Sat Oct 1 11:50:26 2022 -0400

    chore: release @cypress/vue2-v1.1.0

    [skip ci]

commit b3a9c046b4f93f84ad9c462e707f8ec4102d70a2
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Sat Oct 1 11:50:15 2022 -0400

    chore: release @cypress/vue-v4.2.0

    [skip ci]

commit ff2ac2aff3adf42823e631bfb5993090830e44bf
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Sat Oct 1 11:50:03 2022 -0400

    chore: release @cypress/react18-v1.1.0

    [skip ci]

commit 5cb1db1bfbe9c7416b939090aa49b90ed1ba3570
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Sat Oct 1 11:49:52 2022 -0400

    chore: release @cypress/react-v6.2.0

    [skip ci]

commit 5647f35903fe9504623de3629f95569f0970d06e
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Sat Oct 1 11:49:41 2022 -0400

    chore: release @cypress/mount-utils-v2.1.0

    [skip ci]

commit bc0c39d0be5e19cafacce018ff75a88819091ccb
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Sat Oct 1 11:49:29 2022 -0400

    chore: release @cypress/schematic-v2.1.0

    [skip ci]

commit a07f103e8e6881382eca746a542b7b5eb45f0db6
Merge: 7ff592b12d 06663ac244
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Sat Oct 1 10:19:37 2022 -0500

    Merge pull request #23984 from cypress-io/sessions-handle-setup-err

commit 06663ac2448395b7b1214223ba222172b9660579
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Fri Sep 30 15:15:45 2022 -0500

    fix scenario when command fails in validates callback

commit b26544cb732b38f23ab442021fc78fe8fd09c641
Merge: 2a0fc472e6 7ff592b12d
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Fri Sep 30 12:51:13 2022 -0500

    Merge branch 'develop' into sessions-handle-setup-err

commit 7ff592b12debfbff24c5c48f736ac3a648a43da1
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 13:17:38 2022 -0400

    chore: release @cypress/webpack-dev-server-v2.3.0

    [skip ci]

commit 7c03dddd497e59b2493864781d3a37d02c38bd46
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 13:17:27 2022 -0400

    chore: release @cypress/vue2-v1.1.0

    [skip ci]

commit bb28aa8d9512418a290766f4ef7e8251b693c572
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 13:17:16 2022 -0400

    chore: release @cypress/vue-v4.2.0

    [skip ci]

commit ddbdcc9754f73c3ddd53f7a6867debf1f2ee3eac
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 13:17:05 2022 -0400

    chore: release @cypress/react18-v1.1.0

    [skip ci]

commit 4434096a85a4608fbd1edafe1dcc80e44c37f506
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 13:16:54 2022 -0400

    chore: release @cypress/react-v6.2.0

    [skip ci]

commit b1c789785dcedec75223a4731ae70862114b1447
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 13:16:43 2022 -0400

    chore: release @cypress/mount-utils-v2.1.0

    [skip ci]

commit cbda042781293d3f15837a6386e1ae2021c0503f
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 13:16:32 2022 -0400

    chore: release @cypress/schematic-v2.1.0

    [skip ci]

commit 3e9aa5cbed8be937f7ed4981d251fc54c6425602
Author: Sam Goodger <turbo@tailz.dev>
Date:   Sat Oct 1 02:40:14 2022 +1000

    chore: update mocha-junit-reporter to 2.1.0 (#24056)

commit ec5bf9b6a7fa7c3b5893e158a6dd32ef44adc5d9
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 12:37:20 2022 -0400

    chore: release @cypress/webpack-dev-server-v2.3.0

    [skip ci]

commit 3feb462e539c1b36eec1b3ba59c5b49b3fc5e59d
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 12:37:09 2022 -0400

    chore: release @cypress/vue2-v1.1.0

    [skip ci]

commit 9449bacdffa5b1c6ea5fb516c9dcdfdbacb905f3
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 12:36:59 2022 -0400

    chore: release @cypress/vue-v4.2.0

    [skip ci]

commit 34de2b7d529cfd8544745705ea8a94a0bc8ebeff
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 12:36:47 2022 -0400

    chore: release @cypress/react18-v1.1.0

    [skip ci]

commit 57d1e60102fef3581f4214c36eb4efe02972bfb3
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 12:36:37 2022 -0400

    chore: release @cypress/react-v6.2.0

    [skip ci]

commit 9d9580e454ddf98694b74ce7696cd5375ec94f3c
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 12:36:26 2022 -0400

    chore: release @cypress/mount-utils-v2.1.0

    [skip ci]

commit 2fc6f7d2ce94675e266a2cf7bee62c1dc2821f6f
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 12:36:16 2022 -0400

    chore: release @cypress/schematic-v2.1.0

    [skip ci]

commit f9ef9600fb49885c8825213ac863a813f5c7142f
Author: Matt Schile <mschile@cypress.io>
Date:   Fri Sep 30 08:35:24 2022 -0600

    chore(deps): upgrade electron to v21.0.0 (#23881)

commit 94eb70e2c095a24c2466c081f6c5bf0479f810c4
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 10:31:33 2022 -0400

    chore: release @cypress/webpack-dev-server-v2.3.0

    [skip ci]

commit 80b62d9c45fe88ea6a66b3c4e2247ab5b24106d1
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 10:31:21 2022 -0400

    chore: release @cypress/vue2-v1.1.0

    [skip ci]

commit fe95e9506712a7ceaa3b565e715d16e82d44ce26
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 10:31:09 2022 -0400

    chore: release @cypress/vue-v4.2.0

    [skip ci]

commit cc06f881686eb5f47a6533491224afeeac62d2ed
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 10:30:56 2022 -0400

    chore: release @cypress/react18-v1.1.0

    [skip ci]

commit 4dc067b5b1a975d29cdec488ac179d6e6db8abab
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 10:30:45 2022 -0400

    chore: release @cypress/react-v6.2.0

    [skip ci]

commit 1246d6479f12753da01dd74ace63e593a00ed713
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 10:30:33 2022 -0400

    chore: release @cypress/mount-utils-v2.1.0

    [skip ci]

commit 6fcb7a31b42a9e5e9f25da9ef5a6646433bc933c
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 30 10:30:21 2022 -0400

    chore: release @cypress/schematic-v2.1.0

    [skip ci]

commit cc76ad5bb98ce0960d61267a419605bb3711a3d3
Author: Jordan <jordan@jpdesigning.com>
Date:   Fri Sep 30 09:59:18 2022 -0400

    docs: update license year (#24024)

    I was reviewing this for another project and noticed this was out of date and figured I'd open a quick PR.

commit 2a0fc472e6f226b2b7c3d09de145815958b021e9
Merge: a438382117 2e363d98a1
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Fri Sep 30 08:42:33 2022 -0500

    Merge branch 'develop' into sessions-handle-setup-err

commit 18a3c9a4210ac0bbf283ad2bc343dbe0c01289af
Merge: 1d893bbb1b 2e363d98a1
Author: Bill Glesias <bglesias@gmail.com>
Date:   Fri Sep 30 08:56:48 2022 -0400

    Merge branch 'develop' into feature/simulated-top-cookie-handling

commit 2e363d98a1d95fe71c094b828fc300b9fc0471e9
Author: Lachlan Miller <lachlan.miller.1990@outlook.com>
Date:   Fri Sep 30 09:28:52 2022 +1000

    fix: do not double handle errors in component testing (#23957)

    * fix: do not double catch errors and unhanded exceptions in component testing

    * add test fixtures

    * revert whitespace

    * snaps

    * better types

    * improve types

    * do not double capture errors

    * add test

    * adding tests

    * updates

    * revert

    * update

    * types

    * give up on types, it is impossible

    * snaps

    * fix

    * remove link

commit 7154ab035030d3c67b7930bae82e7a73bff4c55e
Author: Lachlan Miller <lachlan.miller.1990@outlook.com>
Date:   Fri Sep 30 08:16:06 2022 +1000

    docs: document mount adapter requirements (#23976)

    * docs: document mount adapter spec

    * inject styles earlier

    * update docs

commit a4383821178cc8d86c1878d25650d8e586bdbfeb
Merge: 5beb61d7d8 ce1eff2942
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Thu Sep 29 16:05:58 2022 -0500

    Merge branch 'develop' into sessions-handle-setup-err

commit ce1eff29420decfe515eb66e51e4288b57e25733
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Sep 29 16:23:39 2022 -0400

    chore: release @cypress/xpath-v2.0.2

    [skip ci]

commit 7b32f91a2bb97c3d169ed0c476b2e458e56b2af0
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Sep 29 16:23:27 2022 -0400

    chore: release @cypress/webpack-preprocessor-v5.13.0

    [skip ci]

commit 22ba0c8ded57533f53de5013bccc601915e960e5
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Sep 29 16:23:16 2022 -0400

    chore: release @cypress/webpack-dev-server-v2.3.0

    [skip ci]

commit 23dc52df71119565d4f8f3d4c1e329b772be4053
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Sep 29 16:23:05 2022 -0400

    chore: release @cypress/vue2-v1.1.0

    [skip ci]

commit a001cfb3f5c0c0dd483954797bfc3520481ff75f
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Sep 29 16:22:53 2022 -0400

    chore: release @cypress/vue-v4.2.0

    [skip ci]

commit 89d509186c7888826edfab3c945a0549bd251333
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Sep 29 16:22:36 2022 -0400

    chore: release @cypress/vite-dev-server-v3.2.0

    [skip ci]

commit 4bec2045d045e47af3697a7b567112e9c1d95d0b
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Sep 29 16:22:21 2022 -0400

    chore: release @cypress/svelte-v1.0.1

    [skip ci]

commit 5b8cd6d87f5b2e8d2f81214390b87ddf7970839f
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Sep 29 16:22:12 2022 -0400

    chore: release @cypress/react18-v1.1.0

    [skip ci]

commit 5cbcf4c5023fa0df00a892ea51e7ee386a6bbc7d
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Sep 29 16:22:02 2022 -0400

    chore: release @cypress/react-v6.2.0

    [skip ci]

commit bc1cc0154523a06fe5dc17812865cffe9af9222f
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Sep 29 16:21:51 2022 -0400

    chore: release @cypress/mount-utils-v2.1.0

    [skip ci]

commit 0d59f8501c743f18bbc8de4bc2d72186447d359d
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Thu Sep 29 16:21:39 2022 -0400

    chore: release @cypress/schematic-v2.1.0

    [skip ci]

commit e4c71d6b14004233cc0776aa5d24a84f7b9d095d
Author: Mike Plummer <mike-plummer@users.noreply.github.com>
Date:   Thu Sep 29 14:20:04 2022 -0500

    fix: Angular14 timeout on Windows (#24045)

commit a451d17c666f2cfd50ee9b094a4c0a00e35e94f2
Author: Blue F <blue@cypress.io>
Date:   Thu Sep 29 09:38:55 2022 -0700

    fix: Assertions properly remain pending when paired with certain commands (#24021)

commit 5beb61d7d8436e81f26a566656ef393a2639c5b6
Merge: a1c2250055 c813ec8aca
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Thu Sep 29 10:03:06 2022 -0500

    Merge branch 'develop' into sessions-handle-setup-err

commit c813ec8acac590ec06d3c7ada598df2f6a6b4008
Author: GitStart <1501599+gitstart@users.noreply.github.com>
Date:   Thu Sep 29 14:49:14 2022 +0000

    feat: show tooltips indicating the source of config values (#23470)

    Co-authored-by: Mark Noonan <mark@cypress.io>
    Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
    Co-authored-by: Ben M <benm@cypress.io>
    Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

commit a1c22500557cfe37dc325c0be545571e2f2c9952
Merge: c99e09b98b f399994e9f
Author: Matt Henkes <mjhenkes@gmail.com>
Date:   Thu Sep 29 00:22:53 2022 -0500

    Merge branch 'develop' into sessions-handle-setup-err

commit f399994e9ffe5213303d313bf7c49e08a4ff4966
Author: Blue F <blue@cypress.io>
Date:   Wed Sep 28 12:18:47 2022 -0700

    chore: Revert "feat: _addQuery() (#23665)" (#24022)

    This reverts commit 41fc535dca51cda4e40b5d9fc827d8bff534f3d1.

commit daa145f03438553f89fea68676e8d22ee4c87496
Merge: 41fc535dca 97f227005c
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Wed Sep 28 11:13:17 2022 -0500

    Merge pull request #24019 from cypress-io/release-svelte

commit 41fc535dca51cda4e40b5d9fc827d8bff534f3d1
Author: Blue F <blue@cypress.io>
Date:   Wed Sep 28 09:01:39 2022 -0700

    feat: _addQuery() (#23665)

    * feat: Commands.addSelector, and migrate .get() to be a selector

    * Fix for failed tests

    * Last test fix

    * More test fixes

    * Self review changes

    * Remove the concept of prevSubject from selectors entirely

    * Rename addSelector to addQuery

    * Quick fix for last commit

    * Fix TS

    * Fix merge from develop

    * Add types and other review updates

    * Increase timeout to try fixing flakiness

    * Rename addQuery to _addQuery

    * Fix typo in previous commit

    * Fix TS

    * Include AUT assertion in cy.get()

    * Fix for previous commit

    * Review feedback

    * Minor test improvement

    * Swifter failure on sizzle syntax error

    * Better solution for refetching current subject in verifyUpcomingAssertions

    * Command IDs now include their chainerId

commit 97f227005c40a1fb50479671bd1a7cc037da142c
Merge: b86403fcbc d2a7de1d6d
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Wed Sep 28 10:36:56 2022 -0500

    Merge branch 'develop' into release-svelte

commit b86403fcbcc85ce5be1ca96bbf42357dd24c07dd
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Wed Sep 28 10:26:08 2022 -0500

    fix: release svelte

commit d2a7de1d6d09053f5d40cff268599b9e2ab1a807
Author: Chris Breiding <chrisbreiding@users.noreply.github.com>
Date:   Wed Sep 28 11:19:57 2022 -0400

    chore: Prevent npm-release failures in one package from stopping other releases (#24017)

commit 5f007189d287acc5ce5654fc50fa7245c046711a
Author: Matt Schile <mschile@cypress.io>
Date:   Tue Sep 27 22:45:28 2022 -0600

    chore: update cypress-bot username in triage workflow (#24007)

commit 10f2961c17495a49bcfef1a5d581eddd1124fb40
Author: Adam Stone <adams@cypress.io>
Date:   Wed Sep 28 04:09:07 2022 +0000

    feat: add RecordRunModal component (#23953)

    * feat: add RecordRunModal component

    * feat: add missing assertion

    * feat: import using @packages syntax

    * feat: remove unnecessary null check

    * feat: move record key gql logic to separate component

    * feat: add another test case

    * feat: refactor RunsEmpty component

    * feat: update test

    * feat: remove unused query

    * feat: use translation strings in tests

    * feat: assert that command shows in RecordRunModal

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

commit 296cebb09c91247ce22e34dbdef539dffe250d88
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Tue Sep 27 20:26:24 2022 -0400

    chore: release @cypress/angular-v1.1.0

    [skip ci]

commit 646f22add990e4223815ee2e6deac35c9455405c
Author: Chris Breiding <chrisbreiding@users.noreply.github.com>
Date:   Tue Sep 27 19:39:55 2022 -0400

    feat(webpack-preprocessor): add support for cy.origin() dependencies (#24006)

    Co-authored-by: Matt Schile <mschile@cypress.io>

commit 1d893bbb1bcad42cdfbac2b26f45b7b9522da54e
Merge: e6d8f45f48 eb7409b205
Author: Bill Glesias <bglesias@gmail.com>
Date:   Tue Sep 27 18:18:31 2022 -0400

    Merge branch 'develop' into feature/simulated-top-cookie-handling

commit eb7409b205b35883de7a1489610639289f9a6adf
Author: Ryan Manuel <ryanm@cypress.io>
Date:   Tue Sep 27 22:13:34 2022 +0000

    chore: fix npm-cypress-schematic build (#24009)

commit e6d8f45f488888cffeee3cbbb08662324f4306cc
Merge: 11ed9a622b bc3c6d5ff9
Author: Bill Glesias <bglesias@gmail.com>
Date:   Tue Sep 27 17:12:14 2022 -0400

    Merge branch 'develop' into feature/simulated-top-cookie-handling

commit 11ed9a622b9cfea5be5b42c7615fe2554f3a5def
Author: Bill Glesias <bglesias@gmail.com>
Date:   Tue Sep 27 17:11:30 2022 -0400

    fix: misc review comments (#23971)

    * chore: refactor credential manager into its own utility class and add basic unit tests

    * chore: add firefox comments into the cookie jar

commit bc3c6d5ff95d58e5a47b2baeef8526b5ccdc3bfa
Author: Chris Breiding <chrisbreiding@users.noreply.github.com>
Date:   Tue Sep 27 14:53:48 2022 -0400

    chore: 10.9.0 release (#24004)

commit c99e09b98bda4f9e48ae3be8616ceaf215495024
Merge: 3b7a397528 8bcfe93ba9
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Tue Sep 27 12:50:15 2022 -0500

    Merge branch 'develop' into sessions-handle-setup-err

commit 8bcfe93ba9aebe67d6decedb904af3ab570e3834
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Mon Sep 26 23:02:13 2022 -0400

    chore: release @cypress/angular-v1.1.0

    [skip ci]

commit a75d3ec81f3405db6721a89875d89cdca0109013
Author: Ryan Duffy <ryan@replay.io>
Date:   Mon Sep 26 19:16:48 2022 -0700

    fix: Detect user-configured browsers (#23446)

    * fix: Detect user-configured browsers

    * move user browser lookup into BrowserDataSource

    * refactor out common browser dedupe logic

    * simplify allBrowsers

    * resolve non-machine browsers

    * pr feedback

    * added tests

    * fix test

    * longer timeout

    Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
    Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
    Co-authored-by: Zachary Williams <ZachJW34@gmail.com>

commit 63b1a9560d6300a5a88401f3df76c4afa8f0efb9
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Mon Sep 26 19:19:10 2022 -0500

    chore: delete ui-components package (#23950)

    * chore: delete ui-components package

    * add dependency to frontend-shared that was previously provided by ui-components

    * whoops

    * fix deps

commit bf590eba3f1cf46b04f6a1252e51da5c5a3dc7c2
Author: Mike Plummer <mike-plummer@users.noreply.github.com>
Date:   Mon Sep 26 17:31:46 2022 -0500

    feat: CT stack traces (#23916)

    Co-authored-by: Zachary Williams <zachjw34@gmail.com>
    Co-authored-by: astone123 <adams@cypress.io>
    Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

commit 3aad5a03e9291b11eb86fe68261db84dd87854ea
Author: Stokes Player <stokes@cypress.io>
Date:   Mon Sep 26 18:26:33 2022 -0400

    fix: Add missing header and use correct endpoint host (#23982)

commit 6a40936604ae24b0b40996692c4a03e5a3c1c9a2
Author: msebas <sebastian.mueller@mcservice.de>
Date:   Mon Sep 26 23:04:48 2022 +0200

    fix: allow asynchronous vue cli init phase (#23936)

    Co-authored-by: Zachary Williams <ZachJW34@gmail.com>

commit 88ecb1e94985ae623365561cc0fd422128e1a3e8
Author: Stokes Player <stokes@cypress.io>
Date:   Mon Sep 26 16:58:57 2022 -0400

    fix: update way that cohorts are cached to remove duplicate key (#23985)

commit 26a71fe0193f74758e5f03b141ee76aafa367c17
Author: Adam Stone <adams@cypress.io>
Date:   Mon Sep 26 18:00:45 2022 +0000

    chore: Use the same dashboard project ID for all Cypress monorepo packages (#23981)

commit 3b7a3975282509104be1dfe3119dbbedee7aeda8
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Mon Sep 26 12:35:49 2022 -0500

    Update system-tests/projects/session-and-origin-e2e-specs/cypress/e2e/session/errors.cy.js

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

commit c4ecf085b5bb50173538562118c10bfe17577761
Merge: 842be2e200 2727ccd2c2
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Mon Sep 26 11:57:42 2022 -0500

    Merge branch 'develop' into sessions-handle-setup-err

commit 842be2e200184aff497ab51a3eb7e4743e5b0cc1
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Mon Sep 26 11:52:37 2022 -0500

    fix: correctly fail session when setup func has failing command or assertion

commit 2727ccd2c2af4f4a8e866f006cf97618d819a6c8
Author: Lachlan Miller <lachlan.miller.1990@outlook.com>
Date:   Tue Sep 27 01:22:15 2022 +1000

    fix: revert accidentally changed yarn.lock (#23975)

commit d422aadfa10e5aaac17ed0e4dd5e18a73d821490
Author: Jordan <jordan@jpdesigning.com>
Date:   Mon Sep 26 11:05:07 2022 -0400

    feat(grep): move cypress-grep to @cypress/grep (#23887)

    move cypress-grep to @cypress/grep

commit a5ec234005fead97f6cfdf611abf8d9f4ad0565d
Merge: 238ead3c53 1d472268a8
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Mon Sep 26 08:34:26 2022 -0500

    Merge pull request #23904 from cypress-io/cache-sessions

commit 1d472268a82fed19b041ad0c9cdd285db8cb38b8
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Fri Sep 23 15:55:48 2022 -0500

    types

commit 34904ee32f7f4508ec75d0049969ad4383c4f14b
Merge: 23926c945b 238ead3c53
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Fri Sep 23 15:16:25 2022 -0500

    Merge branch 'develop' into cache-sessions

commit 23926c945b5c5d080762c3b922a9c040b3db211e
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Fri Sep 23 15:15:56 2022 -0500

    fix

commit 443a887542ed46e6c963d2503774700a3f8be4bf
Merge: 1f6a57da3f 238ead3c53
Author: Bill Glesias <bglesias@gmail.com>
Date:   Fri Sep 23 15:08:18 2022 -0400

    Merge branch 'develop' into feature/simulated-top-cookie-handling

commit 238ead3c53399c022f7c99236ccc709768395a61
Merge: 78779a2db1 9413ff6458
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Fri Sep 23 13:37:03 2022 -0500

    Merge pull request #23921 from cypress-io/clean-stale-scripts

commit 9413ff64589354ec131a872b8b8b4bb8340b85ba
Merge: 35d258737d 78779a2db1
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Fri Sep 23 12:03:35 2022 -0500

    Merge branch 'develop' into clean-stale-scripts

commit 78779a2db13ca6555a6b830dbabeefd3d37bbfe5
Author: Lachlan Miller <lachlan.miller.1990@outlook.com>
Date:   Sat Sep 24 02:23:06 2022 +1000

    fix: fix regression in npm/vue (#23954)

commit be73359437e8edd21a441044287907e50043bedd
Merge: ca0fe1caf6 17556de482
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Fri Sep 23 11:12:14 2022 -0500

    Merge branch 'develop' into cache-sessions

commit ca0fe1caf6ecc2282da9c9af4bb9255ae440e773
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Fri Sep 23 11:05:12 2022 -0500

    fix broken system -test and improve error handling I spent 3 hrs debugging

commit 17556de482e3d86e4637665327092718158a153a
Author: Kukhyeon Heo <sainthkh@naver.com>
Date:   Sat Sep 24 00:49:50 2022 +0900

    chore: migrate runner/dom.js to app part 1 (#23792)

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

commit c9405d1dc481cbf8716814dda1127a38d1fa8b88
Author: semantic-release-bot <semantic-release-bot@martynus.net>
Date:   Fri Sep 23 11:37:24 2022 -0400

    chore: release @cypress/angular-v1.1.0

    [skip ci]

commit 6f3cfa7f902e365ac16484c8c9baede2842790ae
Author: Madhav Saini <99039829+FireNdIce3@users.noreply.github.com>
Date:   Fri Sep 23 20:29:07 2022 +0530

    fix: typo in viewport dropdown (#23789)

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

commit 1f6a57da3fcdc1f7b6116573770351f2b3018a01
Merge: 01ea821926 acc1050dd2
Author: Bill Glesias <bglesias@gmail.com>
Date:   Fri Sep 23 10:06:38 2022 -0400

    Merge branch 'develop' into feature/simulated-top-cookie-handling

commit 01ea8219269dee64db0a32cbb0462a2e605c66c4
Author: Bill Glesias <bglesias@gmail.com>
Date:   Fri Sep 23 10:04:45 2022 -0400

    feat: implement simulated top req res middleware (#23888)

    * test: add correct cookie_behavior assertions before work on server
    (currently failing)

    * chore: add types needed in the socket and middlewares

    * feat: add socket code to server-base (no tests here) to be used in request/response middleware

    * feat: fill out the ExtractCypressMetadataHeaders implementation

    * feat: add attach cookie logic to requests based on xhr/fetch requests

    * feat: add attaching cookies to response logic w/ tests

    * Update packages/proxy/lib/http/request-middleware.ts

    Co-authored-by: Matt Henkes <mjhenkes@gmail.com>

    Co-authored-by: Matt Henkes <mjhenkes@gmail.com>

commit acc1050dd2659182fa87729be5ce9c3ca99de94b
Author: Ryan Duffy <ryan@replay.io>
Date:   Thu Sep 22 14:44:58 2022 -0700

    feat: Add support for optional env key to browser launch options (#23624)

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

commit 77c5ebfeb97febf349713bbeecfc006fa2c7d295
Merge: 5f3f959fe1 90729e7d80
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Thu Sep 22 15:05:28 2022 -0500

    Merge branch 'develop' into cache-sessions

commit 5f3f959fe1756f1ec535107abc3797a689cd88d4
Merge: fdb2f99419 a1b5db6c5c
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Thu Sep 22 13:52:33 2022 -0500

    erge branch 'cache-sessions' of https://github.com/cypress-io/cypress into cache-sessions

commit fdb2f99419139698a253a3594cb3277af5cc2719
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Thu Sep 22 13:52:25 2022 -0500

    link issue

commit a1b5db6c5c2484e5595499d66bf36b69e51c3647
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Thu Sep 22 13:52:03 2022 -0500

    Apply suggestions from code review

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

commit 56b4f894aa09755891caa485a5d61db1a05e9206
Author: Bill Glesias <bglesias@gmail.com>
Date:   Thu Sep 22 10:21:13 2022 -0400

    chore: add utility functions in proxy to be used in the near future i… (#23880)

    * chore: add utility functions in proxy to be used in the near future in the request/response middleware(s)

    * fix: add isAUTIframe check inside the shouldAttachAndSetCookies, move the siteContext info to the cookies package, simplify top-simulation util, and add better method documentation

commit 252ae5ae6783b0843794fe2b07ca95ee014a1510
Merge: 18321f80dd cd2fde9047
Author: Bill Glesias <bglesias@gmail.com>
Date:   Wed Sep 21 18:29:21 2022 -0400

    Merge branch 'develop' of github.com:cypress-io/cypress into feature/simulated-top-cookie-handling

commit 18321f80dd1582354db0a628d61cbeabd167c488
Author: Bill Glesias <bglesias@gmail.com>
Date:   Wed Sep 21 18:27:17 2022 -0400

    chore: refactor originPolicy to use superDomainOrigin nomenclat… (#23879)

    * chore: refactor originPolicy to use superDomainOriginPolicy nomenclature and add sameSite/superDomainOrigin policy functions and make originMatch functions match fully same origin policy including sub domains

    * chore: change doesAutMatchTopSuperOriginPolicy to doesAUTMatchTopSuperDomainOriginPolicy

    * chore: rename originPolicy references to just be origin. Rename superDomainOriginPolicy to superDomainOrigin

    * fix: remove duplicate origin keys and add check for remote.origin to return null

    * chore: further rename variables to fit origin paradigm

    * chore: remove latestActiveSuperDomainOrigin as it is no longer used

    * fix: key order in consoleProps yielded test

    * remove isAnticipatingCrossOriginResponse as it is no longer available

    * chore: update documentation to urlMatchesSameSiteProps to show why the strictPortMatch is an option

    * chore: refactor cors package to use a single parse function and update unit tests

    * chore: refactor getOrigin to use url origin

    * chore: update same-site documentation to now be dependent on cookies

    * chore: update same-site policy to be schemeful-same-site policy as we consider protocol mismatches to be not same-site

commit 35d258737dfbfe893784d20894968a0d8de302dc
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Wed Sep 21 13:58:11 2022 -0500

    chore: remove run-ct-examples --- appears to have been replaces with ct system tests

commit e22d68107cca976362e88d1de220c5d31108c9ac
Author: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Date:   Wed Sep 21 12:54:28 2022 -0500

    Update packages/server/lib/server-e2e.ts

commit 37ed973118feccaedf2db2f7539d5c04bf6390de
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Wed Sep 21 12:07:04 2022 -0500

    okay -- fix all the test (hopefully)

commit f45d607a9240336c3957b23372e60579190806bf
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Wed Sep 21 07:40:17 2022 -0500

    fix system tests and bug found for recreating global session after failed with validation

commit 2205a0fcf2f83419e8c8df0c258462c5ff12932c
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Tue Sep 20 10:35:36 2022 -0500

    broke things

commit 9e2c15d23aa76d0d74f712b6ec456381f5a07a0b
Merge: 8c3a68d80a 11dc3c1f62
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Tue Sep 20 08:09:19 2022 -0500

    Merge branch 'develop' into cache-sessions

commit 8c3a68d80a17fd33698343ebc8b6ac8d0afc4ad2
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Tue Sep 20 08:08:44 2022 -0500

    fix tests

commit ed098004bbb691088a900f0319fea7c8369c5ff7
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Mon Sep 19 15:23:13 2022 -0500

    clean up

commit c98b640edd00c0f47ffc8046714255013268a309
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Mon Sep 19 15:18:50 2022 -0500

    fix

commit 6968c8ea7ad633de354f063ad01ed88f7a0561e5
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Mon Sep 19 15:18:21 2022 -0500

    tests

commit ce1dfc36e963ca6bc9dfef77e0b73701e1fea8e1
Merge: f356065ec4 823ffd0ca9
Author: Bill Glesias <bglesias@gmail.com>
Date:   Sun Sep 18 23:22:22 2022 -0400

    Merge branch 'develop' into feature/simulated-top-cookie-handling

commit f356065ec45318d603cb691e333405d9c41448f3
Author: Bill Glesias <bglesias@gmail.com>
Date:   Sun Sep 18 23:22:12 2022 -0400

    feat: patch fetch and xhr inside cy.origin to get resourceType and credential Level (#23822)

    * chore: modify xhr-fetch-requests to handle onload and prep for use in patches tests

    * feat: add patches for fetch and xmlhttprequest

    * chore: short circuit fetch and xmlHttpRequests if conditions aren't met

    * chore: refactor xmlHttpRequest and fetch patches into individual files and add some basic types

    * chore: fix typo

commit 0c265638ce02fc436ed2f9e489acfe31104feb07
Author: Bill Glesias <bglesias@gmail.com>
Date:   Sun Sep 18 22:28:32 2022 -0400

    feat: add resource type header to CDP, extension, and electron (#23821)

    * feat: add X-Cypress-Request header in extension

    * feat: add X-Cypress-Request header in CDP

    * feat: add X-Cypress-Request header in electron

    * feat: add ExtractRequestedWithAndCredentialsIfApplicable middleware stub to remove the newly added x-cypress-request header

    * chore: change defaultHeaders variable name to requestModifications to more accurately reflect usage

    * chore: condense ExtractIsAUTFrameHeader and ExtractRequestedWithAndCredentialsIfApplicable into ExtractCypressMetadataHeaders middleware

    * test: add anti assertion for x-cypress-request and remove setting request verbage (as it does nothing yet)

commit 7ac73deb0541d3ee69e2b3fe3ed1ba0a477c2eca
Merge: d00dd12d5a a7945e835a
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Fri Sep 16 12:11:39 2022 -0500

    Merge branch 'develop' into cache-sessions

commit d00dd12d5aab9d9ea67b8150a474f8f44b0f360a
Merge: b0c8bc5c0e fac44fa699
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Fri Sep 16 11:07:46 2022 -0500

    Merge branch 'develop' into cache-sessions

commit b0c8bc5c0e2a558aaf6fc1caa9b42d5df2f60516
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Thu Sep 15 15:41:24 2022 -0500

    fix

commit 294fb860c07983028b79cb78a4820c1e1766416e
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Thu Sep 15 14:11:15 2022 -0500

    update lock file

commit 5e7a8d5716c81ae20c2f13025a896c7618dec06a
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Thu Sep 15 13:50:05 2022 -0500

    more clean up

commit 1ff853f9c96929c1ad777f38e091b528b9d57f63
Merge: c6a6338f36 ec9539c284
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Thu Sep 15 13:17:17 2022 -0500

    Merge branch 'sessions-instrument-panel' into cache-sessions

commit c6a6338f3640443cb19da3858c370aad26cc8093
Merge: f459b21fc0 344ee2145e
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Thu Sep 15 13:14:00 2022 -0500

    Merge branch 'cache-sessions-server' into cache-sessions

commit f459b21fc03c24d5e59e044d4b91d26e30285b65
Merge: 00aa6531f9 6ee305ba41
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Thu Sep 15 13:10:52 2022 -0500

    Merge branch 'develop' into cache-sessions

commit 00aa6531f94fb3e9a13392c99f9f9640e8a07cfa
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Thu Sep 15 11:57:29 2022 -0500

    some clean up--- this branch is pretty stale...

commit bb6c1385938da3d202a78b81ea1c41f5ee723db6
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Thu Sep 15 11:37:50 2022 -0500

    must have been a bad merge....[skip ci]

commit 2f8644d7d86acb6464d576788e48d9c77a18ff67
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Thu Sep 15 11:32:31 2022 -0500

    fix install err

commit 13e986dfd5c5d01f6a17105364ec7d77b98ca67c
Merge: 2e89992d71 12406c4e26
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Thu Sep 15 11:19:14 2022 -0500

    Merge branch 'develop' into cache-sessions

commit 2e89992d717cdb92202b474bfca361277b50b67a
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Wed Aug 24 18:23:33 2022 -0500

    working with recent changes

commit ab4f54b3356a10b37afc7a7e66505ea3d1367c4f
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Wed Aug 24 10:34:32 2022 -0500

    more

commit 64319186cde672903eb6379f11b3d8269fc167cb
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Tue Aug 23 15:45:38 2022 -0500

    .

commit e0f3891eb5c8e4fbddc8504c4e80f18cda33cc55
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Mon Aug 22 18:24:38 2022 -0500

    more

commit 9d76e8fab6c09479ac27d51edd14454bb2f5a0e9
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Mon Aug 22 18:06:21 2022 -0500

    clean up

commit 877d241fca2766b9ef5883d1000fa1ae1f5ec8b5
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Mon Aug 22 18:04:11 2022 -0500

    clean up

commit f70fae8167cbc471c3894c3afc5cddb6c8bb1db8
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Mon Aug 22 17:14:28 2022 -0500

    check in

commit d89d3d5e4be2014ff4d66fa1da36a7534ea85c8b
Merge: 74b711a281 9ba3ed3b5a
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Mon Aug 22 16:36:01 2022 -0500

    Merge branch 'develop' into cache-sessions

commit 74b711a281da94cbcf8cea0d43475f3bb7f33b04
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Wed Aug 17 12:47:52 2022 -0500

    tests

commit 9fa8cb8c0cb4d0d8faa91c8ea57d8b55e29afa6d
Merge: 3727df85a2 89839eb2e0
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Tue Aug 16 13:22:27 2022 -0500

    Merge branch 'develop' into cache-sessions

commit 3727df85a2ffb730d11dc567c3b3bcce3bee98b8
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Tue Aug 16 13:20:24 2022 -0500

    clean up

commit ba56dde83241acfde454b12d128ed8472ad94107
Merge: 5402e4149e 17f430768b
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Mon Aug 15 12:02:24 2022 -0500

    Merge branch 'develop' into cache-sessions

commit 5402e4149ea12e1404e949e665feffd0b07d2e1e
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Mon Aug 15 12:01:29 2022 -0500

    session instrument panel updates

commit e5bf343197c7268ed70255abdc808e34bf38abf9
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Fri Aug 12 15:47:19 2022 -0500

    .

commit 8c04c28dd4f2401210016d70a26b300445f069d7
Merge: 75190a469a f1122fcf62
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Fri Aug 12 15:42:13 2022 -0500

    Merge branch 'develop' into cache-sessions

commit 75190a469a5c559b45429c4b7acdbda0654f4500
Merge: 6c906ae634 f272c635c6
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Wed Aug 10 09:39:48 2022 -0500

    Merge branch 'develop' into cache-sessions

commit 6c906ae63401497e83664a03ea18482636e662c3
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Wed Aug 10 09:30:49 2022 -0500

    rm console.log

commit e86ad257ec9972c6c1ff464e236983ec99f35d05
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Mon Aug 8 14:52:35 2022 -0500

    update yarn lock

commit b062dba6e48ed2090d80d02ef54f17ce3fbe3c3d
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Fri Aug 5 12:28:22 2022 -0500

    clean up my. logs

commit 94b7aa443c7e20fa8ca96bbdb0e2bc33c8e2bf00
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Fri Aug 5 12:27:08 2022 -0500

    update sessions instrument panel to indicate global spec or not

commit 6a9932315d149a05294b7be4fea973eeb62035d7
Author: Emily Rohrbough <emilyrohrbough@yahoo.com>
Date:   Fri Aug 5 08:58:55 2022 -0500

    feat: cache sessions between specs
mjhenkes pushed a commit that referenced this pull request Nov 14, 2022
* feat: Commands.addSelector, and migrate .get() to be a selector

* Fix for failed tests

* Last test fix

* More test fixes

* Self review changes

* Remove the concept of prevSubject from selectors entirely

* Rename addSelector to addQuery

* Quick fix for last commit

* Fix TS

* Fix merge from develop

* Add types and other review updates

* Increase timeout to try fixing flakiness

* Rename addQuery to _addQuery

* Fix typo in previous commit

* Fix TS

* Include AUT assertion in cy.get()

* Fix for previous commit

* Review feedback

* Minor test improvement

* Swifter failure on sizzle syntax error

* Better solution for refetching current subject in verifyUpcomingAssertions

* Command IDs now include their chainerId

* Revert "chore: Revert "feat: _addQuery() (#23665)" (#24022)"

This reverts commit f399994.

* feat: move .contains() and .shadow() to be queries; remove cy.ng() (#23791)

* First stab at removing old .get() implementation

* Fix TS and a couple of tests

* Fix tests and TS

* Fix case-sensitivity for .contains()

* Stop TS complaining

* Rework cy-contains jquery expression

* Add comments, make ts happy

* Fix one test, review feedback

* Review updates

* Fix additional tests

* Fix accidental deletion of vital code

* One more try at getting logs right

* Fix race condition in cross-origin .contains

* Add commented out test to ensure .within() works properly with selectors

* Fix for sessions + query subject chaining

* Fix mixing .within() shadow DOM and .contains() in same chainer

* One more attempt at .within + .contains

* Fix rebase commits

* feat: addQuery Remaining Queries (#24203)

* First stab at removing old .get() implementation

* Fix TS and a couple of tests

* Fix tests and TS

* Fix case-sensitivity for .contains()

* Stop TS complaining

* Rework cy-contains jquery expression

* Add comments, make ts happy

* Fix one test, review feedback

* Review updates

* Fix additional tests

* Fix accidental deletion of vital code

* One more try at getting logs right

* Fix race condition in cross-origin .contains

* Add commented out test to ensure .within() works properly with selectors

* Fix for sessions + query subject chaining

* Fix mixing .within() shadow DOM and .contains() in same chainer

* One more attempt at .within + .contains

* Fix rebase commits

* Update many commands to be queries; improve log message around invalid subjects

* Update connectors, location, focused and window commands to queries

* Return noop to a command and not a query (to avoid implicit assertions)

* More test fixes

* Fix test failures

* Fix for weird-ass frontend-component test

* Error message improvements

* Fix for broken system test

* Update withinSubject to use subject chain

* Test clarifications

* Unbreak cypress-testing-library via withinState backwards compatibility

* Typo in last commit

* Improvement for assertion following failed traversal

* feat: Fix detached DOM errors for all Cypress commands (#24417)

* First stab at removing old .get() implementation

* Fix TS and a couple of tests

* Fix tests and TS

* Fix case-sensitivity for .contains()

* Stop TS complaining

* Rework cy-contains jquery expression

* Add comments, make ts happy

* Fix one test, review feedback

* Review updates

* Fix additional tests

* Fix accidental deletion of vital code

* One more try at getting logs right

* Fix race condition in cross-origin .contains

* Add commented out test to ensure .within() works properly with selectors

* Fix for sessions + query subject chaining

* Fix mixing .within() shadow DOM and .contains() in same chainer

* One more attempt at .within + .contains

* Fix rebase commits

* Update many commands to be queries; improve log message around invalid subjects

* Update connectors, location, focused and window commands to queries

* Return noop to a command and not a query (to avoid implicit assertions)

* More test fixes

* Fix test failures

* Fix for weird-ass frontend-component test

* Error message improvements

* Fix for broken system test

* Update withinSubject to use subject chain

* Test clarifications

* Unbreak cypress-testing-library via withinState backwards compatibility

* Typo in last commit

* Improvement for assertion following failed traversal

* WIP adding query support to

* More work on actionability + detached dom

* Fix TS, rename _addQuery to addQuery

* Another try to fix types

* Fix lint

* Fix for bad merge

* Fixes for a couple more tests

* Increase timeout 50ms -> 100ms on certain tests failing in CI

* Switch to new branch of cypress-testing-library

* Update lockfile

* Fix yarn.lock with latest version of forked testing-library

* More test fixes

* Fix TS again

* Increase test assertion timeout so it passes on slow browsers (webkit)

* Apply suggestions from code review

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Zach Bloomquist <git@chary.us>

* More review changes

* Fix selectFile tests based on updated error message

* Improve types and type comments for Commands.add

* Undo change to Commands.add types

* Update yarn lockfiles again

* Remove overwriteQuery from Cy12; .focused() now respects passed in timeout

* Update cli/types/cypress.d.ts

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

* Restore .uncheck() tests

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>

* Fix for hanging driver test after merge

* Fix for app component test

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Detached DOM: Commands._addQuery()
6 participants