Skip to content

Commit e0177ff

Browse files
chore: Update Chrome (beta) to 131.0.6778.3 (#30416)
* chore: Update Chrome (beta) to 131.0.6778.3 * fix type test --------- Co-authored-by: cypress-bot[bot] <41898282+cypress-bot[bot]@users.noreply.github.com> Co-authored-by: Matthew Schile <mschile@cypress.io>
1 parent 0533307 commit e0177ff

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

browser-versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"chrome:beta": "130.0.6723.44",
2+
"chrome:beta": "131.0.6778.3",
33
"chrome:stable": "130.0.6723.58",
44
"chrome:minimum": "64.0.3282.0"
55
}

packages/driver/cypress/e2e/commands/actions/type_special_chars.cy.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,11 +1091,15 @@ describe('src/cy/commands/actions/type - #type special chars', () => {
10911091
.type('{downarrow}22').then(($div) => {
10921092
if (Cypress.isBrowser('firefox')) {
10931093
expect(trimInnerText($div)).to.eq('foo22\nbar\nbaz')
1094-
1095-
return
1094+
} else if (Cypress.isBrowser({ family: 'chromium' }) && Cypress.browserMajorVersion() >= 131) {
1095+
// Chromium >=131 moves the cursor to the location of the end of the selection
1096+
// on the next line when typing the downarrow (in this case, behind 'bar')
1097+
expect(trimInnerText($div)).to.eql('foo\nbar22\nbaz')
1098+
} else {
1099+
// Chromium <=130 moves the cursor to the location of the beginning of the selection
1100+
// on the next line when typing the downarrow (in this case, in front of 'bar')
1101+
expect(trimInnerText($div)).to.eql('foo\n22bar\nbaz')
10961102
}
1097-
1098-
expect(trimInnerText($div)).to.eql('foo\n22bar\nbaz')
10991103
})
11001104
})
11011105
})

0 commit comments

Comments
 (0)