Skip to content

toHaveValue over a multiline paragraph doesn't work #4516

@gosha212

Description

@gosha212

What happened?

Create a multiline TextView
use toHaveText() expectation
The validation will fail

What was the expected behaviour?

Looks like the problem is because toHaveText doesn't take \n in to consideration

Was it tested on latest Detox?

  • I have tested this issue on the latest Detox release and it still reproduces.

Did your test throw out a timeout?

Help us reproduce this issue!

No response

In what environment did this happen?

Detox version:
React Native version:
Has Fabric (React Native's new rendering system) enabled: (yes/no)
Node version:
Device model:
Android version:
Test-runner (select one): jest / other

Detox logs

Detox logs
paste logs here!

Device logs

Device logs
paste your device.log here!

More data, please!

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions