Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:cypress-io/cypress into feat/pro…
Browse files Browse the repository at this point in the history
…tocol_shadow_dom_support
  • Loading branch information
AtofStryker committed Mar 5, 2024
2 parents 53b9b24 + a29eae9 commit bdc3dd1
Show file tree
Hide file tree
Showing 49 changed files with 2,071 additions and 739 deletions.
4 changes: 2 additions & 2 deletions browser-versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"chrome:beta": "123.0.6312.4",
"chrome:stable": "122.0.6261.69",
"chrome:beta": "123.0.6312.22",
"chrome:stable": "122.0.6261.94",
"chrome:minimum": "64.0.3282.0"
}
10 changes: 10 additions & 0 deletions cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,20 @@ _Released 2/27/2024 (PENDING)_

- Added shadow DOM snapshot support within Test Replay in order to highlight elements correctly within the Cypress reporter. Addressed in [#28823](/~https://github.com/cypress-io/cypress/pull/28823).

**Performance:**

- Fixed a performance regression from [`13.6.4`](https://docs.cypress.io/guides/references/changelog#13-6-4) where unhandled service worker requests may not correlate correctly. Fixes [#28868](/~https://github.com/cypress-io/cypress/issues/28868).

**Bugfixes:**

- Fixed an issue where `.click()` commands on children of disabled elements would still produce "click" events -- even without `{ force: true }`. Fixes [#28788](/~https://github.com/cypress-io/cypress/issues/28788).
- Changed RequestBody type to allow for boolean and null literals to be passed as body values. [#28789](/~https://github.com/cypress-io/cypress/issues/28789)

**Dependency Updates:**

- Updated signal-exit from `3.0.3` to `3.0.7`. Addressed in [#28979](/~https://github.com/cypress-io/cypress/pull/28979).
- Updated http-proxy-middleware from `2.0.4` to `2.0.6`. Addressed in [#28902](/~https://github.com/cypress-io/cypress/pull/28902).

## 13.6.6

_Released 2/22/2024_
Expand Down
24 changes: 24 additions & 0 deletions packages/driver/cypress/e2e/commands/actions/click.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,30 @@ describe('src/cy/commands/actions/click', () => {
cy.getAll('span2', 'focus click mousedown').each(shouldNotBeCalled)
})

// /~https://github.com/cypress-io/cypress/issues/28788
it('no click when element is disabled', () => {
const btn = cy.$$('button:first')
const span = $('<span>foooo</span>')

attachFocusListeners({ btn, span })
attachMouseClickListeners({ btn, span })
attachMouseHoverListeners({ btn, span })

btn.html('')
btn.attr('disabled', true)
btn.append(span)

cy.get('button:first span').click()

if (Cypress.browser.name === 'chrome') {
cy.getAll('btn', 'mouseenter mousedown mouseup').each(shouldBeCalled)
}

cy.getAll('btn', 'focus click').each(shouldNotBeCalled)
cy.getAll('span', 'mouseenter mousedown mouseup').each(shouldBeCalled)
cy.getAll('span', 'focus click').each(shouldNotBeCalled)
})

it('no click when new element at coords is not ancestor', () => {
const btn = cy.$$('button:first')
const span1 = $('<span>foooo</span>')
Expand Down
Loading

4 comments on commit bdc3dd1

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on bdc3dd1 Mar 5, 2024

Choose a reason for hiding this comment

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

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.6.7/linux-x64/feat/protocol_shadow_dom_support-bdc3dd1a64cedf341af19d4cdec3e0c84f4daf08/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on bdc3dd1 Mar 5, 2024

Choose a reason for hiding this comment

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

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.6.7/linux-arm64/feat/protocol_shadow_dom_support-bdc3dd1a64cedf341af19d4cdec3e0c84f4daf08/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on bdc3dd1 Mar 5, 2024

Choose a reason for hiding this comment

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

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.6.7/darwin-arm64/feat/protocol_shadow_dom_support-bdc3dd1a64cedf341af19d4cdec3e0c84f4daf08/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on bdc3dd1 Mar 5, 2024

Choose a reason for hiding this comment

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

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.6.7/darwin-x64/feat/protocol_shadow_dom_support-bdc3dd1a64cedf341af19d4cdec3e0c84f4daf08/cypress.tgz

Please sign in to comment.