From 011dbf902aae67055f25a4513544e01ec6fa18d4 Mon Sep 17 00:00:00 2001 From: Liam Brady Date: Mon, 5 Aug 2024 08:07:17 -0700 Subject: [PATCH] Fenced frame: attempt to deflake document activeElement test Like other similar flake fixes, this uses multiClick() to perform multiple clicks in case one of the clicks doesn't properly register. Bug: 353256758 Change-Id: Iad904730a8434c52d957353da2a940ad794ac88c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5762702 Commit-Queue: Liam Brady Reviewed-by: Andrew Verge Commit-Queue: Andrew Verge Cr-Commit-Position: refs/heads/main@{#1337300} --- fenced-frame/document-activeelement.https.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fenced-frame/document-activeelement.https.html b/fenced-frame/document-activeelement.https.html index 3ac1fd866fc58c..4f5bbb67655fe1 100644 --- a/fenced-frame/document-activeelement.https.html +++ b/fenced-frame/document-activeelement.https.html @@ -17,10 +17,7 @@ assert_equals(document.activeElement, document.body); - await actions.pointerMove(0, 0, {origin: fencedframe.element}) - .pointerDown() - .pointerUp() - .send(); + await multiClick(0, 0, fencedframe.element, 5); assert_equals(document.activeElement, fencedframe.element); }, 'document.activeElement should be the fenced frame when it has focus');