mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-06 10:27:34 +00:00
ci: search the test directory from the chat list in the smoke test
The app is built with DIRECTORY_SERVICE_LINK set to the test directory's short address (sed in the workflow). The smoke test types "ci seed", taps "Search in Directory", accepts the first-search consent alert with "Search", and expects the Directory results with #ci_group (Join group) and #ci_channel (Join channel), retrying once if the search fails. The steps now use scripts/ci/ios-sim/ui, which wraps AXe (tap by label or value, type, wait, screenshot, compact accessibility tree) for scripts and for an agent on the runner. Later steps get SIM_UDID and UI_OUT. This run tests: the onboarding and typing steps on the new helper, the consent alert, and the directory results in the app.
This commit is contained in:
1 parent
e348855a20
commit
2ebad19b21
3 files changed
+145
-79
No files matched your search
@@ -204,6 +204,13 @@ jobs:
|
||||
timeout-minutes: 30
|
||||
run: scripts/ci/ios-sim/backend.sh start ~/Downloads/${{ env.BACKEND_PKG }} "$RUNNER_TEMP/backend"
|
||||
|
||||
- name: Point the app at the test directory
|
||||
run: |
|
||||
link=$(cat "$RUNNER_TEMP/backend/directory-link")
|
||||
file=apps/ios/Shared/Model/DirectorySearch.swift
|
||||
sed -i '' "s|^let DIRECTORY_SERVICE_LINK = \".*\"$|let DIRECTORY_SERVICE_LINK = \"$link\"|" "$file"
|
||||
grep -F "let DIRECTORY_SERVICE_LINK = \"$link\"" "$file"
|
||||
|
||||
- name: Build app
|
||||
run: |
|
||||
xcodebuild build -quiet \
|
||||
|
||||
Reference in new issue
Block a user