Skip to content

Commit 2218528

Browse files
authored
chore: upgrade Playwright version to 1.56.0 (#10324)
1 parent 3080b66 commit 2218528

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
},
7979
"resolutions": {
8080
"svg2ttf": "6.0.3",
81-
"playwright": "^1.53.0"
81+
"playwright": "^1.56.0"
8282
},
8383
"lint-staged": {
8484
"*.{js,ts}": [

packages/integer-field/test/validation.test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect } from '@vaadin/chai-plugins';
22
import { sendKeys } from '@vaadin/test-runner-commands';
3-
import { fixtureSync, nextRender, nextUpdate } from '@vaadin/testing-helpers';
3+
import { fixtureSync, isDesktopSafari, nextRender, nextUpdate } from '@vaadin/testing-helpers';
44
import sinon from 'sinon';
55
import '../src/vaadin-integer-field.js';
66

@@ -110,13 +110,14 @@ describe('validation', () => {
110110
expect(integerField.invalid).to.be.false;
111111
});
112112

113-
it('should be invalid when trying to commit an invalid number', async () => {
113+
// Safari 26 installed since Playwright 1.56 disallows typing two minus signs
114+
(isDesktopSafari ? it.skip : it)('should be invalid when trying to commit an invalid number', async () => {
114115
await sendKeys({ type: '1--' });
115116
input.blur();
116117
expect(integerField.invalid).to.be.true;
117118
});
118119

119-
it('should be valid after removing an invalid number', async () => {
120+
(isDesktopSafari ? it.skip : it)('should be valid after removing an invalid number', async () => {
120121
await sendKeys({ type: '1--' });
121122
input.blur();
122123
input.focus();

packages/number-field/test/validation.test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect } from '@vaadin/chai-plugins';
22
import { sendKeys } from '@vaadin/test-runner-commands';
3-
import { fixtureSync, nextRender, nextUpdate } from '@vaadin/testing-helpers';
3+
import { fixtureSync, isDesktopSafari, nextRender, nextUpdate } from '@vaadin/testing-helpers';
44
import sinon from 'sinon';
55
import '../src/vaadin-number-field.js';
66

@@ -151,13 +151,14 @@ describe('validation', () => {
151151
expect(field.invalid).to.be.false;
152152
});
153153

154-
it('should be invalid when trying to commit an invalid number', async () => {
154+
// Safari 26 installed since Playwright 1.56 disallows typing two minus signs
155+
(isDesktopSafari ? it.skip : it)('should be invalid when trying to commit an invalid number', async () => {
155156
await sendKeys({ type: '1--' });
156157
input.blur();
157158
expect(field.invalid).to.be.true;
158159
});
159160

160-
it('should be valid after removing an invalid number', async () => {
161+
(isDesktopSafari ? it.skip : it)('should be valid after removing an invalid number', async () => {
161162
await sendKeys({ type: '1--' });
162163
input.blur();
163164
input.focus();

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9520,17 +9520,17 @@ pkg-dir@^4.2.0:
95209520
dependencies:
95219521
find-up "^4.0.0"
95229522

9523-
playwright-core@1.53.0:
9524-
version "1.53.0"
9525-
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.53.0.tgz#bf2738cc143116b6130b78e0c644edf2e7e53ff4"
9526-
integrity sha512-mGLg8m0pm4+mmtB7M89Xw/GSqoNC+twivl8ITteqvAndachozYe2ZA7srU6uleV1vEdAHYqjq+SV8SNxRRFYBw==
9523+
playwright-core@1.56.0:
9524+
version "1.56.0"
9525+
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.56.0.tgz#14b40ea436551b0bcefe19c5bfb8d1804c83739c"
9526+
integrity sha512-1SXl7pMfemAMSDn5rkPeZljxOCYAmQnYLBTExuh6E8USHXGSX3dx6lYZN/xPpTz1vimXmPA9CDnILvmJaB8aSQ==
95279527

9528-
playwright@^1.53.0:
9529-
version "1.53.0"
9530-
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.53.0.tgz#4eae78aa24e3c714bf71981f80b3310b838692fd"
9531-
integrity sha512-ghGNnIEYZC4E+YtclRn4/p6oYbdPiASELBIYkBXfaTVKreQUYbMUYQDwS12a8F0/HtIjr/CkGjtwABeFPGcS4Q==
9528+
playwright@^1.53.0, playwright@^1.56.0:
9529+
version "1.56.0"
9530+
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.56.0.tgz#71c533c61da33e95812f8c6fa53960e073548d9a"
9531+
integrity sha512-X5Q1b8lOdWIE4KAoHpW3SE8HvUB+ZZsUoN64ZhjnN8dOb1UpujxBtENGiZFE+9F/yhzJwYa+ca3u43FeLbboHA==
95329532
dependencies:
9533-
playwright-core "1.53.0"
9533+
playwright-core "1.56.0"
95349534
optionalDependencies:
95359535
fsevents "2.3.2"
95369536

0 commit comments

Comments
 (0)