diff --git a/.github/workflows/tests-runner.yml b/.github/workflows/tests-runner.yml index ca710cf..4d7858e 100644 --- a/.github/workflows/tests-runner.yml +++ b/.github/workflows/tests-runner.yml @@ -132,6 +132,9 @@ jobs: env: HOMEBREW_NO_AUTO_UPDATE: 1 HOMEBREW_NO_INSTALL_CLEANUP: 1 + + - name: List available simulator devices + run: applesimutils --list - name: Restore CocoaPods id: restore-cocoapods diff --git a/tests/reactnative/.detoxrc.js b/tests/reactnative/.detoxrc.js index 8ca97fd..06f203a 100644 --- a/tests/reactnative/.detoxrc.js +++ b/tests/reactnative/.detoxrc.js @@ -42,7 +42,7 @@ module.exports = { simulator: { type: "ios.simulator", device: { - type: "iPhone 15", + type: "iPhone 14", }, }, attached: { diff --git a/tests/reactnative/src/App.tsx b/tests/reactnative/src/App.tsx index bf7a59c..cd402d3 100644 --- a/tests/reactnative/src/App.tsx +++ b/tests/reactnative/src/App.tsx @@ -23,7 +23,7 @@ export default function App() { ...web5TestsResultRaw, success: true, dataCid: record?.dataCid, - did: did?.substr(0, 32) + "...", + did: did?.uri.substr(0, 32) + "...", }; const web5TestsResultsStr = JSON.stringify( web5TestsResults, diff --git a/tests/reactnative/src/Web5.ts b/tests/reactnative/src/Web5.ts index 8d3608e..0c78496 100644 --- a/tests/reactnative/src/Web5.ts +++ b/tests/reactnative/src/Web5.ts @@ -124,7 +124,14 @@ const initAgent = async () => { syncApi, }); - await agent.start({ password: "unprotectedpass" }); + const password = "unprotectedpass"; + let recoveryPhrase: string|undefined; + + if (await agent.firstLaunch()) { + recoveryPhrase = await agent.initialize({ password, recoveryPhrase }); + } + + await agent.start({ password }); await startSync(); };