rustdoc: allow popover child links to work#106391
rustdoc: allow popover child links to work#106391bors merged 3 commits intorust-lang:masterfrom ardislu:fix-popover-child-link
Conversation
No need to prevent default click behavior on a <div>, it will also disable all child click behavior.
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @GuillaumeGomez (or someone else) soon. Please see the contribution instructions for more information. |
|
Some changes occurred in HTML/CSS/JS. cc @GuillaumeGomez, @Folyd, @jsha |
|
Do you want to add the GUI test too (in |
|
Sure, I gave it a shot. Some notes:
|
|
My initial test case was getting this error: I checked some Puppeteer issues and it seems like the proper way to write this test is to use I tried to look for some other test cases that navigated to external websites, but I couldn't find any (all other test navigations I could find only tested navigation within the rustdoc website). Inserting a simple Waiting for generic HTML also didn't work (same error): As a last resort workaround, I hardcoded a wait time of 2000ms and now it works. However, this is pretty fragile and not the best way to do it. I think this might be a limitation of the testing framework (ability to call Appreciate any suggestions. Thank you! |
|
I actually had in mind to use Thanks for adding the GUI test in any case! @bors r+ rollup |
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#106391 (rustdoc: allow popover child links to work) - rust-lang#106398 (Fix a few clippy lints in libtest) - rust-lang#106412 (Fix link generation for local primitive types in rustdoc JSON output) - rust-lang#106437 (rustdoc: fix buggy JS check for absolute URL) - rust-lang#106451 (Merge borrowck permission checks) - rust-lang#106460 (Move tests) - rust-lang#106461 (docs: fix broken link "search bar") Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
No need to prevent default click behavior on a
<div>, it will also disable all child click behavior.Closes #106390