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

Support converting textContent.includes() usage #145

Open
mehulkar opened this issue May 26, 2021 · 0 comments
Open

Support converting textContent.includes() usage #145

mehulkar opened this issue May 26, 2021 · 0 comments

Comments

@mehulkar
Copy link

assert.ok(
  find('[data-test-something]').textContent.includes('hi hello'),
  'some test description'
);

this could be converted to

assert.dom('[data-test-something]').hasText('hi hello', 'some test description')

(not sure if this is supposed to work, but it did not get converted in my test suite!)

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

No branches or pull requests

1 participant