wix/Detox

WaitFor fails for web element

開放

#4,522 建立於 2024年7月4日

 (4 則留言) (1 個反應) (0 位負責人)JavaScript (1,942 個分叉)batch import
hacktoberfestplatform: iosstatus: discussionstatus: triagetype: enhancement ⚡️user: looking for contributors

倉庫指標

星標
 (10,558 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南