cost 255 ms
Detox.tap() function 只加亮,不加壓。 為什么?

[英]Detox .tap() function only highlights, does not press. Why?

我正在 Android 上測試一個 react-native 應用程序,它使用原生Pressable類 * 中的按鈕。 這一切都在布局檢查器中工作,Detox 能夠找到可見的按鈕。 但是,當我嘗試await element(by.id('button')).tap()時,按鈕只會突出顯示,而不會正 ...

你如何排毒測試離線模式

[英]How do you detox test offline mode

我們正在開發一個反應本機應用程序,並在 CI 上使用 detox 構建自動化測試。 我想知道如何使用 detox 測試應用程序的離線模式? 有沒有人已經嘗試過這個? ...

當應用程序關閉時,Detox React Native 端到端測試未運行

[英]Detox React Native end to end test is not running when app is close

目前在 React Native 中使用 detox 做一些 e2e。 我正在嘗試在沒有打開模擬器的情況下運行 detox,但我現在無法讓它運行。 有誰知道為什么? 當模擬器打開時,我工作得很好。 我真的很感激你的想法,伙計們,非常感謝。 ...

RCT-Folly-Build-Detox-React-Native

[英]RCT-Folly-Build-Detox-React-Native

錯誤:以下構建命令失敗:CompileC /Path/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/i386/F14Table.o /Pat ...

使用帶有 detox e2e 測試的 2fa 身份驗證器

[英]Using a 2fa authenticator with detox e2e tests

我正在開發具有 2fa 確認某些功能的應用程序。 我想針對測試后端測試應用程序上需要 2fa 確認的功能。 我還沒有找到任何方法來做到這一點,只有關於它的未回答的問題。 有沒有人設法做到這一點,如果是這樣,怎么做? ...

FBSSystemService 報告失敗,沒有錯誤,可能是因為應用程序當前沒有運行

[英]FBSSystemService reported failure without an error, possibly because the app is not currently running

我正在運行這個命令: 這是我的構建配置: 但是我的項目出現了這個錯誤: 這是我的 detoxrc.json 文件,以防有人想查看我當前的 Detox 配置 我們正在嘗試運行排毒測試並使模擬器工作,但似乎沒有任何工作。 如果有人遇到這個問題有什么建議嗎? 謝謝 ...

2022-07-25 22:50:01   1   20    detox  
用Split.IO排毒

[英]Detox with Split.IO

我為 react-native 找到了 split.io 的笑話模擬。 我現在正在嘗試使用此模擬,以便我不會收到網絡超時,因為 split.io 正在嘗試在后台同步。 這是模擬: 我目前把它放在我的 detox init.js 文件中,但它似乎沒有做任何事情。 到目前為止,我能夠讓我的測試運行的唯一 ...

DetoxRuntimeError:Detox 似乎無法連接到測試應用程序! - 僅限 Android

[英]DetoxRuntimeError: Detox can't seem to connect to the test app(s)! - Android only

我對裸 React Native 項目使用 Detox 自動化工具。 在 iOS 上一切正常,但是當我在 Android 上運行測試時,出現以下錯誤: DetoxRuntimeError:Detox 似乎無法連接到測試應用程序:提示。 您是否忘記在測試開始時調用“device?launchApp ...

DetoxRuntimeError:測試失敗:第一響應者“(null)”不符合“UITextInput”協議

[英]DetoxRuntimeError: Test Failed: First responder “(null)” does not conform to “UITextInput” protocol

我正在使用 ios 模擬器運行排毒測試 expo react-native 但是通過textinput()動作detox填充textInput有錯誤。 錯誤 = DetoxRuntimeError:測試失敗:第一響應者“(null)”不符合“UITextInput”協議it('fill email' ...

排毒測試無法運行:無法讀取未定義的屬性(正在讀取“testEnvironmentOptions”)

[英]Detox test failed to run: Cannot read properties of undefined (reading 'testEnvironmentOptions')

我一直在嘗試在反應原生應用程序上運行一些排毒測試。 直到最近,這些測試一直在進行。 現在我收到錯誤:測試套件無法運行 有想法該怎么解決這個嗎? 我已經嘗試更新 jest、jest-expo 和 jest-environment,以及 detox 本身。 ...

如何在 Percy 中為基礎分支手動上傳基線屏幕截圖

[英]How to manually upload baseline screenshots in Percy for base branch

我目前正在開發一個 react-native 應用程序,並希望使用 Percy,一種可視化測試服務來捕獲我的應用程序中的 UI 更改。 我不走故事書的方式。 目前,我們使用 detox 進行測試,它會生成我們直接上傳到 Percy 的截圖工件。 但是測試比較現在總是失敗,因為我們沒有基本分支的 ...

從 React Native 中的 Detox 訪問應用程序 Arguments

[英]Accessing App Arguments from Detox in React Native

我試圖弄清楚如何從 React Native 訪問 Detox 中的啟動參數。 官方文檔僅提供以下信息: 應用內 Arguments 訪問在 iOS 上,指定的啟動 arguments 作為進程啟動 arguments 傳遞,並通過正常方式可用。 在 Android 上,啟動 arguments ...

任務 ':vision-camera-code-scanner:checkDebugAndroidTestAarMetadata' 執行失敗

[英]Execution failed for task ':vision-camera-code-scanner:checkDebugAndroidTestAarMetadata'

所以我已經做了一段時間了,我最近嘗試在我的 React Native 項目中將 Detox 測試添加到 android。 我按照官方 Detox 教程和這個https://varunon9.medium.com/e2e-testing-of-react-native-app-android-usin ...

Detox/Jest 測試套件無法運行 TypeError:Class 擴展值 #<object> 不是構造函數或 null<div id="text_translate"><p> 我正在嘗試將一些 e2e 測試集成到我的本機反應(expo 彈出)移動項目中。 我正在按照排毒 <a href="https://wix.github.io/Detox/docs/introduction/getting-started" rel="nofollow noreferrer">入門</a>頁面上的說明進行操作。 我能夠成功構建我的項目,但每次我嘗試 detox 測試命令時:</p><pre> detox test --configuration ios --loglevel trace</pre><p> 我收到以下錯誤:</p><pre> FAIL e2e/firstTest.e2e.jsrun... ● Test suite failed to run TypeError: Class extends value #<Object> is not a constructor or null at Object.<anonymous> (../node_modules/detox/runners/jest-circus/environment.js:24:38) at Object.newLoader (../node_modules/pirates/lib/index.js:141:7) at Object.<anonymous> (../node_modules/detox/runners/jest-circus/index.js:4:32) 09:07:59.324 detox[21032] ERROR: [cli.js] Command failed: jest --config e2e/config.json --testNamePattern '^((?::android.).)*$' e2e</pre><p> 我有一個相當簡單的 detox 和 jest 開箱即用配置:</p><p> <strong>package.json</strong></p><pre> ... "detox": "^19.6.2" "jest": "^27.0.0", "jest-circus": "^27.5.1", ...</pre><p> <strong>./e2e/config.json</strong></p><pre> { "testEnvironment": "./environment", "testRunner": "jest-circus/runner", "testTimeout": 120000, "testRegex": "\\.e2e\\.js$", "reporters": ["detox/runners/jest/streamlineReporter"], "verbose": true }</pre><p> <strong>./e2e/environment.js</strong></p><pre> const { DetoxCircusEnvironment, SpecReporter, WorkerAssignReporter, } = require('detox/runners/jest-circus'); class CustomDetoxEnvironment extends DetoxCircusEnvironment { constructor(config, context) { super(config, context); // Can be safely removed, if you are content with the default value (=300000ms) this.initTimeout = 300000; // This takes care of generating status logs on a per-spec basis. By default, Jest only reports at file-level. // This is strictly optional. this.registerListeners({ SpecReporter, WorkerAssignReporter, }); } } module.exports = CustomDetoxEnvironment;</pre><p> <strong>.detoxrc.json</strong></p><pre> { "testRunner": "jest", "runnerConfig": "e2e/config.json", "skipLegacyWorkersInjection": true, "apps": { "ios": { "type": "ios.app", "binaryPath": "ios/build/Build/Products/Release-iphonesimulator/Example.app", "build": "xcodebuild -workspace ios/Example.xcworkspace -configuration release -scheme Example -sdk iphonesimulator -derivedDataPath ios/build" }, "android": { "type": "android.apk", "binaryPath": "SPECIFY_PATH_TO_YOUR_APP_BINARY" } }, "devices": { "simulator": { "type": "ios.simulator", "device": { "type": "iPhone 12 Pro" } }, "emulator": { "type": "android.emulator", "device": { "avdName": "Pixel_3a_API_30_x86" } } }, "configurations": { "ios": { "device": "simulator", "app": "ios" }, "android": { "device": "emulator", "app": "android" } } }</pre><p> 不可能這么難。 任何幫助將不勝感激。</p></div></object>

[英]Detox/Jest Test suite failed to run TypeError: Class extends value #<Object> is not a constructor or null

我正在嘗試將一些 e2e 測試集成到我的本機反應(expo 彈出)移動項目中。 我正在按照排毒 入門頁面上的說明進行操作。 我能夠成功構建我的項目,但每次我嘗試 detox 測試命令時: 我收到以下錯誤: 我有一個相當簡單的 detox 和 jest 開箱即用配置: package.json ...

排毒測試與調度隊列上的待處理項目掛起

[英]Detox tests hang with pending items on dispatch queue

我正在 Detox 上編寫 e2e 測試,以在 React Native 中測試 Firebase 應用程序。 看起來對firebase.auth().signInWithPhoneNumber(number)的調用在調度隊列中調度了一些項目,但這些項目似乎從未出隊,因此測試無法繼續。 我的預感是登 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM