diff --git a/browser-versions.json b/browser-versions.json index 3d3238d03178..338ee0f72eac 100644 --- a/browser-versions.json +++ b/browser-versions.json @@ -1,5 +1,5 @@ { - "chrome:beta": "130.0.6723.44", + "chrome:beta": "131.0.6778.3", "chrome:stable": "130.0.6723.58", "chrome:minimum": "64.0.3282.0" } diff --git a/packages/driver/cypress/e2e/commands/actions/type_special_chars.cy.js b/packages/driver/cypress/e2e/commands/actions/type_special_chars.cy.js index 3070b464bcc6..1d79e14e7320 100644 --- a/packages/driver/cypress/e2e/commands/actions/type_special_chars.cy.js +++ b/packages/driver/cypress/e2e/commands/actions/type_special_chars.cy.js @@ -1091,11 +1091,15 @@ describe('src/cy/commands/actions/type - #type special chars', () => { .type('{downarrow}22').then(($div) => { if (Cypress.isBrowser('firefox')) { expect(trimInnerText($div)).to.eq('foo22\nbar\nbaz') - - return + } else if (Cypress.isBrowser({ family: 'chromium' }) && Cypress.browserMajorVersion() >= 131) { + // Chromium >=131 moves the cursor to the location of the end of the selection + // on the next line when typing the downarrow (in this case, behind 'bar') + expect(trimInnerText($div)).to.eql('foo\nbar22\nbaz') + } else { + // Chromium <=130 moves the cursor to the location of the beginning of the selection + // on the next line when typing the downarrow (in this case, in front of 'bar') + expect(trimInnerText($div)).to.eql('foo\n22bar\nbaz') } - - expect(trimInnerText($div)).to.eql('foo\n22bar\nbaz') }) }) })