Skip to content

feat(alt-text): query AMP-IMG by alt text, too #1048

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

Closed
wants to merge 1 commit into from

Conversation

AJ-Jambit
Copy link

For my customer, I have to implement in React. I would love to be able to use the existing RTL tooling.

This is my first PR against this project. I have read the CONTRIBUTING.md and looked at some PRs before opening this one (using GitHub's web UI).

As I am not sure, what the project thinks about AMP (Accelerated Mobile Pages), I am only touching the code lightly before investing too much energy.
We have a workaround in place right now, that sidesteps RTL.

What:

The CONTRIBUTING.md does not indicate to open an issue before a PR, so there is no reference to be made.
This PR adds amp-img to the elements to query for selection by alt text.

Why:

Right now, there is no other way (not even by means of a plugin) to use React Testing Library for AMP projects.

How:

I added amp-img to the selector list.

Checklist:

I left these open for now to sense the waters first.

  • Documentation added to the
    docs site
  • Tests
  • TypeScript definitions updated
  • Ready to be merged

For my customer, I have to implement <amp-img /> in React. I would love to be able to use the existing RTL tooling.
@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 5, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b71fcd8:

Sandbox Source
react-testing-library-examples Configuration

@AJ-Jambit
Copy link
Author

Relates to #1049

@AJ-Jambit
Copy link
Author

Closing in favour of #1049.

@AJ-Jambit AJ-Jambit closed this Oct 6, 2021
@AJ-Jambit AJ-Jambit deleted the patch-1 branch October 6, 2021 14:46
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.

1 participant