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

Test the Element/Button link functionality within the Hero #12

Open
aManNamedJed opened this issue Apr 18, 2021 · 0 comments
Open

Test the Element/Button link functionality within the Hero #12

aManNamedJed opened this issue Apr 18, 2021 · 0 comments
Labels
discovery An issue for looking into a new possibility. question Further information is requested

Comments

@aManNamedJed
Copy link
Contributor

I was trying to do something like this to determine if the Button properly gets wrapped in a Gatsby Link if there is a to value:

expect(wrapper.find(Button).find(Link)).toHaveLength(1)

It didn't work right away but I got a bunch of tests in place for the Hero so wanted to just move on

@aManNamedJed aManNamedJed added the feature request New feature or request label Apr 18, 2021
@aManNamedJed aManNamedJed added discovery An issue for looking into a new possibility. question Further information is requested and removed feature request New feature or request labels Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discovery An issue for looking into a new possibility. question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant