Skip to content

Commit ac11076

Browse files
authored
chore: upgrade Playwright version to 1.56.0 (#10324) (#10352)
1 parent 4dd1620 commit ac11076

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
@@ -79,7 +79,7 @@
7979
"typescript": "^5.9.2"
8080
},
8181
"resolutions": {
82-
"playwright": "^1.52.0"
82+
"playwright": "^1.56.0"
8383
},
8484
"lint-staged": {
8585
"*.{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
@@ -9054,17 +9054,17 @@ pkg-dir@^4.2.0:
90549054
dependencies:
90559055
find-up "^4.0.0"
90569056

9057-
playwright-core@1.52.0:
9058-
version "1.52.0"
9059-
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.52.0.tgz#238f1f0c3edd4ebba0434ce3f4401900319a3dca"
9060-
integrity sha512-l2osTgLXSMeuLZOML9qYODUQoPPnUsKsb5/P6LJ2e6uPKXUdPK5WYhN4z03G+YNbWmGDY4YENauNu4ZKczreHg==
9057+
playwright-core@1.56.0:
9058+
version "1.56.0"
9059+
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.56.0.tgz#14b40ea436551b0bcefe19c5bfb8d1804c83739c"
9060+
integrity sha512-1SXl7pMfemAMSDn5rkPeZljxOCYAmQnYLBTExuh6E8USHXGSX3dx6lYZN/xPpTz1vimXmPA9CDnILvmJaB8aSQ==
90619061

9062-
playwright@^1.22.2, playwright@^1.52.0:
9063-
version "1.52.0"
9064-
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.52.0.tgz#26cb9a63346651e1c54c8805acfd85683173d4bd"
9065-
integrity sha512-JAwMNMBlxJ2oD1kce4KPtMkDeKGHQstdpFPcPH3maElAXon/QZeTvtsfXmTMRyO9TslfoYOXkSsvao2nE1ilTw==
9062+
playwright@^1.22.2, playwright@^1.56.0:
9063+
version "1.56.0"
9064+
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.56.0.tgz#71c533c61da33e95812f8c6fa53960e073548d9a"
9065+
integrity sha512-X5Q1b8lOdWIE4KAoHpW3SE8HvUB+ZZsUoN64ZhjnN8dOb1UpujxBtENGiZFE+9F/yhzJwYa+ca3u43FeLbboHA==
90669066
dependencies:
9067-
playwright-core "1.52.0"
9067+
playwright-core "1.56.0"
90689068
optionalDependencies:
90699069
fsevents "2.3.2"
90709070

0 commit comments

Comments
 (0)