wix/Detox

WaitFor fails for web element

Offen

#4.522 geöffnet am 04.07.2024

 (4 Kommentare) (1 Reaktion) (0 zugewiesene Personen)JavaScript (1.942 Forks)batch import
hacktoberfestplatform: iosstatus: discussionstatus: triagetype: enhancement ⚡️user: looking for contributors

Repository-Metriken

Stars
 (10.558 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

What happened?

await waitFor(web.element(by.web.xpath("//a[@class='pcc-client-content-feed__panel-wrapper-title-link' and contains(text(), 'Following')]"))).toBeVisible().withTimeout(5000);

--> [object Object] is not a Detox matcher. More about Detox matchers here: https://wix.github.io/Detox/docs/api/matchers

What was the expected behaviour?

Waiter function should work and not through bug

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: 20.20.1 React Native version: 0.72.0 Has Fabric (React Native's new rendering system) enabled: yes Node version: >=16 Device model: iPhone 15 iOS version: 17.2 macOS version: 14.4 Xcode version: 15.2 Test-runner (select one): jest

Detox logs

   [object Object] is not a Detox matcher. More about Detox matchers here: https://wix.github.io/Detox/docs/api/matchers

Device logs

paste your device.log here!

More data, please!

No response

Contributor Guide