Skip to content

Fix getByAltText examples #117

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

Merged
merged 2 commits into from
May 22, 2019
Merged

Fix getByAltText examples #117

merged 2 commits into from
May 22, 2019

Conversation

bjohn465
Copy link
Contributor

Fixes #116

I replaced /incredibles.*png$/i with 'Incredibles 2 Poster', which should match the alt attribute in the example markup.

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Could we use regex still? It's more resilient to changes in the content.

@bjohn465
Copy link
Contributor Author

Will do

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect. Thank you!

@kentcdodds kentcdodds merged commit 1f971a4 into testing-library:master May 22, 2019
@kentcdodds
Copy link
Member

@all-contributors please add @bjohn465 for docs

@allcontributors
Copy link
Contributor

@kentcdodds

I've put up a pull request to add @bjohn465! 🎉

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

Successfully merging this pull request may close these issues.

ByAltText examples seem incorrect
2 participants