From 0c66b087adb0098764ab5b7066904f1f3a440c64 Mon Sep 17 00:00:00 2001 From: spacedandy-agents-simplex <342056592+spacedandy-agents-simplex@users.noreply.github.com> Date: Sat, 17 Oct 2026 04:15:52 +0000 Subject: [PATCH] ci: check in the iOS smoke test that a joined channel's Directory row goes away The smoke test searches ci_cards by its name, joins it from its Directory row, and then expects the chat in the results and no Directory row for it. --- scripts/ci/ios-sim/smoke-test.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/ci/ios-sim/smoke-test.sh b/scripts/ci/ios-sim/smoke-test.sh index 173b464e45..2900792345 100755 --- a/scripts/ci/ios-sim/smoke-test.sh +++ b/scripts/ci/ios-sim/smoke-test.sh @@ -274,7 +274,7 @@ expect_avatars top "$ui" layout reachable # with a conversation the chat list replaces the onboarding pages, and has cards around the chats -type_search "ci cards" +type_search "ci_cards" search_directory "#ci_cards" "$ui" tap "#ci_cards" "$ui" tap "Open channel" 30 @@ -283,6 +283,15 @@ search_directory "#ci_cards" "$ui" wait "you are subscriber" 60 "$ui" shot joined-channel "$ui" tap Back +# the search text matches the joined channel, so the list shows it as a chat, and its Directory row must be gone +"$ui" shot joined-channel-search +expect_in_tree -F 'StaticText "ci_cards"' +tree=$("$ui" tree) +if grep -qF '"#ci_cards"' <<< "$tree"; then + echo "error: the Directory row #ci_cards is still shown next to the chat opened from it" + exit 1 +fi +echo "after joining from its Directory row, ci_cards is a chat in the search results and its Directory row is gone" clear_search expect_cards_hidden_by_results reachable "$ui" layout top