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

::before element #5860

Closed
rloukil opened this issue Dec 3, 2019 · 2 comments
Closed

::before element #5860

rloukil opened this issue Dec 3, 2019 · 2 comments
Labels
type: duplicate This issue or pull request already exists

Comments

@rloukil
Copy link

rloukil commented Dec 3, 2019

I am getting a button visible with the ::before selector.
I tied to trigger mouseover in order to make it visible but didn't succeed on that.
Can anyone suggest a workaround?

Current behavior:

Capture du 2019-12-03 14-06-18

Desired behavior:

Be able to test the button visibility when hovering over the div

Steps to reproduce: (app code and test code)

Versions

@gabbersepp
Copy link
Contributor

Hey, you can try the chrome remote debugger protocol. That would require you to run your tests in chrome and not in electron. I think by using the protocol you should be able to trigger :before.

See this example:
cypress-io/cypress-example-recipes#384

@jennifer-shehane
Copy link
Member

jennifer-shehane commented Dec 23, 2019

@rloukil We do not currently support testing pseudo css selectors as explained in this comment: #10 (comment) Closing as duplicate of cy.hover() support. #10

gappersepp example may be a workaround in your case though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants