1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-01 11:39:22 +00:00

Tests/LibWeb: Wait until document fully loaded before simulating click

This makes the `form-image-submission.html` test pass more reliably.

(cherry picked from commit 2fed064791d3117e0571453210000d285ee9359c)
This commit is contained in:
Tim Ledbetter 2024-06-07 22:08:05 +01:00 committed by Nico Weber
parent 92600b3171
commit 1d47886430
2 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
[Skipped]
Text/input/Crypto/SubtleCrypto-exportKey.html
Text/input/Crypto/SubtleCrypto-generateKey.html
Text/input/HTML/form-image-submission.html
Text/input/WebAnimations/misc/DocumentTimeline.html
Text/input/Worker/Worker-echo.html
Text/input/window-scrollTo.html

View File

@ -28,7 +28,7 @@
done();
});
image.addEventListener("load", () => {
window.addEventListener("load", () => {
const imageRect = image.getBoundingClientRect();
internals.click(imageRect.x + 10, imageRect.y + 20);
});