Skip to content

Commit 2e4bb04

Browse files
josepharharmoz-wptsync-bot
authored andcommitted
Bug 1940119 [wpt PR 49925] - De-flake input-element-pseudo-open, a=testonly
Automatic update from web-platform-tests De-flake input-element-pseudo-open test_driver.bless() calls were timing out while the picker is open, and the color picker wasn't closing when calling input.blur(). Replacing both of these with test_driver.click() on a button that always comes before the pickers fixes both of these issues. Change-Id: I01550d84c5e6111329cc660f6e797ce21f4e2b74 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6149610 Commit-Queue: Joey Arhar <[email protected]> Reviewed-by: Steinar H Gunderson <[email protected]> Reviewed-by: Di Zhang <[email protected]> Cr-Commit-Position: refs/heads/main@{#1402549} -- wpt-commits: cdaff805df545b270353cbe68c775af2f1665ce2 wpt-pr: 49925
1 parent 6a1c9d6 commit 2e4bb04

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

testing/web-platform/tests/css/css-pseudo/input-element-pseudo-open.optional.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
varies across browsers and platforms. This test reflects picker support in
1212
desktop chromium. -->
1313

14+
<button>reset</button>
15+
1416
<div class=supported>
1517
<input type=date>
1618
<input type=datetime-local>
@@ -38,8 +40,7 @@
3840
assert_true(input.matches(':open'),
3941
'Should match :open after opening the picker.');
4042

41-
await test_driver.bless();
42-
input.blur();
43+
await test_driver.click(document.querySelector('button'));
4344
assert_false(input.matches(':open'),
4445
'Should not match :open after closing the picker.');
4546
}, `CSS :open for <input type=${inputType}>`);

0 commit comments

Comments
 (0)