The test "Issue links in the console tab/should reveal the right issue "
is timing out on the bots, which I was not able to reproduce locally.
But this is a speculative fix, suggested by Gemini.
The test was grabbing the very first issue icon that appeared in the DOM
and polled only its specific button for title text updates. Because the
multiple TypeErrors resolve asynchronously, there was no guarantee the
first icon rendered would be the first to resolve (or resolve at all),
leading to timeout when the polled element never updated.
With this change the test dynamically checks all rendered issue icons on
every tick of the polling loop. By using the first icon that has
successfully resolved its title, and capturing its exact element
reference to handle the subsequent click, the test is no longer
vulnerable to indeterminate loading orders or asynchronous UI delays.
Bug: none
Change-Id: I40188d787ec07938d31cf6eabf5f00c1c8ff0d2d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/8084947
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Auto-Submit: Finnur Thorarinsson <finnur@chromium.org>