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

Remove id="testToken" #30

Merged
merged 8 commits into from
Feb 1, 2020
Merged

Remove id="testToken" #30

merged 8 commits into from
Feb 1, 2020

Conversation

TheJaredWilcurt
Copy link
Member

@TheJaredWilcurt TheJaredWilcurt commented Feb 1, 2020

Coverage Status

  • Functionality
  • Tests
  • Documentation
  • Version bump
  • Update deps

Fixes #27


  • removeIdTest = Removes id="test-whatever" or id="testWhatever"from snapshots. You should never use ID's for test tokens, as they can also be used by JS and CSS, making them more brittle. Use data-test instead.
  • data-server-rendered="true", data-test="*", data-testid="*", data-test-id="*", and data-qa="*" are now only removed from DOM element attributes, not via regex (Text nodes will retain this string now).
  • Fixed Typo in Demo test

package.json Outdated Show resolved Hide resolved
@TheJaredWilcurt TheJaredWilcurt changed the title Id test Remove id="testToken" Feb 1, 2020
@TheJaredWilcurt TheJaredWilcurt merged commit b477a4b into master Feb 1, 2020
@TheJaredWilcurt TheJaredWilcurt deleted the id-test branch February 1, 2020 16:59
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.

Remove testToken ID's (disabled by default)
1 participant