diff options
author | Florian Bruhin <me@the-compiler.org> | 2024-03-27 13:03:39 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2024-03-27 13:05:28 +0100 |
commit | 481542844db79ee58740e8324ecc1090e3738c35 (patch) | |
tree | 4fb92ad1d30b9acadb517faf30c90c39a8a7bd30 /tests/end2end/data/click_element.html | |
parent | 982b8bdcecfba6fc1687a6a4942b9e3ab3221eb7 (diff) | |
download | qutebrowser-481542844db79ee58740e8324ecc1090e3738c35.tar.gz qutebrowser-481542844db79ee58740e8324ecc1090e3738c35.zip |
tests: Avoid using autofocus for click_element tests
Similarly to the last commit (982b8bdcecfba6fc1687a6a4942b9e3ab3221eb7),
we run into a race between autofocus triggering and the test trying to
click the focused element.
This also affects the "when there is none" test, which loses the focus
before it has been set, thus ending up with a focused element but expecting
none.
We fix both in one go by manually focusing things with a tab keypress
instead of using autofocus.
See #8145 and #5390.
Diffstat (limited to 'tests/end2end/data/click_element.html')
-rw-r--r-- | tests/end2end/data/click_element.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/end2end/data/click_element.html b/tests/end2end/data/click_element.html index b2a691e08..7fac2a381 100644 --- a/tests/end2end/data/click_element.html +++ b/tests/end2end/data/click_element.html @@ -7,7 +7,7 @@ <span onclick='console.log("click_element special chars")'>"Don't", he shouted</span> <span>Duplicate</span> <span class='clickable' onclick='console.log("click_element CSS selector")'>Duplicate</span> - <form><input autofocus id='qute-input'></input></form> + <form><input id='qute-input' onfocus='console.log("qute-input focused")'></input></form> <a href="/data/hello.txt" id='link'>link</a> <span id='foo.bar' onclick='console.log("id with dot")'>ID with dot</span> <span style='position: absolute; left: 20px;top: 42px; width:10px; height:10px;' |