We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have this statement await expect(element(by.id('price-discount')).atIndex(0)).toHaveText('%');
await expect(element(by.id('price-discount')).atIndex(0)).toHaveText('%');
that fails with this message: Test Failed: Failed expectation: TOHAVETEXT(text == “”) WITH MATCHER(id == “price-discount”) AT INDEX(0)
Test Failed: Failed expectation: TOHAVETEXT(text == “”) WITH MATCHER(id == “price-discount”) AT INDEX(0)
The % character disappears. Adding text before or after lead to the same result.
The test should pass if text is "%"
No response
Detox version: 20.25.6 React Native version: 0.75.2 Has Fabric (React Native's new rendering system) enabled: no Node version: v20.17.0 Test-runner (select one): jest
paste logs here!
The text was updated successfully, but these errors were encountered:
might work with \u0025 or \%
\u0025
\%
Sorry, something went wrong.
No branches or pull requests
What happened?
I have this statement
await expect(element(by.id('price-discount')).atIndex(0)).toHaveText('%');
that fails with this message:
Test Failed: Failed expectation: TOHAVETEXT(text == “”) WITH MATCHER(id == “price-discount”) AT INDEX(0)
The % character disappears.
Adding text before or after lead to the same result.
What was the expected behaviour?
The test should pass if text is "%"
Was it tested on latest Detox?
Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: 20.25.6
React Native version: 0.75.2
Has Fabric (React Native's new rendering system) enabled: no
Node version: v20.17.0
Test-runner (select one): jest
Detox logs
Detox logs
Device logs
Device logs
More data, please!
No response
The text was updated successfully, but these errors were encountered: