We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Edit by jamesshore: See below for a technique for testing psuedo elements.
I'm trying to fetch ::before's css of an element but i always get the following error
"Expected one element to match '.callout .alert::before', but found 0"
this is what I'm doing
callout_icon = frame.get('.callout .alert::before');
can you help me doing this the right way
The text was updated successfully, but these errors were encountered:
Unfortunately, there's no way to test pseudo-elements at this time.
Sorry, something went wrong.
I was able to test pseudo-elements like this
callout__primary = frame.get('.callout .primary');
expect(window.getComputedStyle(callout__primary.toDomElement(), '::before').getPropertyValue('content')).to.be('"\"')
This article helped me https://davidwalsh.name/pseudo-element
Very interesting! I'll re-open this as a feature request for the future.
No branches or pull requests
Edit by jamesshore: See below for a technique for testing psuedo elements.
I'm trying to fetch ::before's css of an element but i always get the following error
"Expected one element to match '.callout .alert::before', but found 0"
this is what I'm doing
callout_icon = frame.get('.callout .alert::before');
can you help me doing this the right way
The text was updated successfully, but these errors were encountered: