Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hovering doesn't work when latent state is already "hover" #2173

Open
luke-hill opened this issue Apr 9, 2024 · 7 comments
Open

Hovering doesn't work when latent state is already "hover" #2173

luke-hill opened this issue Apr 9, 2024 · 7 comments

Comments

@luke-hill
Copy link

luke-hill commented Apr 9, 2024

Previous related issues

capybara: teamcapybara/capybara#2156
geckodriver: #1507

System

  • Version: 0.33
  • Platform: Windows 10 / Ubuntu 2004
  • Firefox: 121
  • Selenium: Ruby 4.13+

Testcase

(Cannot provide a minimal html file .... yet, this might not be possible as it's behind a login wall).

image

  • Navigate using a link from page 1 to page 2
  • Page 2 loads with a pseudo hover state already set (See image above)
  • Attempt to hover on Submissions v (Yes I know this already seems to have some hover state)
    • In firefox, the hover event fires, no error is generated, dropdown is not rendered
    • In chrome, the hover event fires, no error is generated, the dropdown is rendered

Stacktrace

N/A - No error is generated

Trace-level log

@luke-hill
Copy link
Author

cc/ @whimboo

@whimboo
Copy link
Collaborator

whimboo commented Apr 9, 2024

Some questions...

  1. What is a pseud-hover state already set and for which element / node?
  2. What are you referring to with Submission v?
  3. Could you try if the problem also exists when you save the affected page to disk? If yes, you could remove as much as possible content from the HTML/CSS/JS to get a minimized testcase?

Without a proper example it is very hard to assume what this problem is about exactly. :/

@luke-hill
Copy link
Author

  1. If you look at the image it looks like there is a hover state already set. This is because the page is probably coded poorly. There however is no hover state, this is the page's default state
  2. The dropdown link called Submissions with a arrow down next to it.
  3. I'll try that now. That's a solid suggestion. I'll update more in a day or two if I make any progress.

@luke-hill
Copy link
Author

luke-hill commented Apr 9, 2024

@whimboo - I've managed to download the webpage. And delete approx 50% of it. I've got it down to around 200 lines of code but there's still a lot I need to comb through. I can reproduce the issue on the downloaded webpage. Once I have gotten the majority of sensitive items culled I'll upload a copy of it here or I can send it through on slack if easier

@whimboo
Copy link
Collaborator

whimboo commented Apr 9, 2024

That sounds great! And no worries if it takes a bit longer to remove all privacy related content. It's certainly still faster than trying to find such a test case out of the dark. Once you have the testcase maybe also include a small code snippet as well so that it's clear what needs to run. Thanks!

@luke-hill
Copy link
Author

@whimboo - Ok here is what I have now (Sorry for delay)

HTML which is about 80 lines, it loads in the 2 css files locally.
css / application css files (I haven't tried to clean these up).

3 items total is 1.7meg. I can zip this up and try put it on in a few days once I've had someone just give it a sanitize check.

Is this enough compression?

@whimboo
Copy link
Collaborator

whimboo commented Apr 16, 2024

Yes, that sounds fine. I can trim it down further if needed. Important is that it works as a stand-alone testcase. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants