mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-12 09:28:09 +00:00
- apps/multiplatform/scripts/waydroid: wd.sh (headless Waydroid for the Android UI tests and manual GUI testing), provision2.sh and watchdog2.sh for a second instance, weston.ini, fetch-images.sh, README; works on Qubes AppVMs and other Linux hosts (apt/dnf install, firewalld, own nft table, weston 10-14 flags); - uitest-android.sh uses it by default (WD_SH overrides) and takes adb from it, so both use one adb; - uitest.sh usage header; - plans/ui-tests: test drafts (including unmerged batch 3), the 2026-10-14 review reports, results after the rebase.
18 lines
624 B
Kotlin
18 lines
624 B
Kotlin
package chat.simplex.app.ui.main
|
|
|
|
import chat.simplex.app.ui.harness.UiTest
|
|
import chat.simplex.common.model.GroupProfile
|
|
import chat.simplex.common.platform.chatController
|
|
import kotlinx.coroutines.runBlocking
|
|
import org.junit.Test
|
|
|
|
class UserPickerTest : UiTest() {
|
|
@Test fun userPickerSwitchProfile() = uiTest {
|
|
val alice = app("alice")
|
|
runBlocking { chatController.apiNewGroup(null, incognito = false, GroupProfile("team", "", null)) } ?: error("apiNewGroup failed")
|
|
alice.userPicker().profiles().apply { add("work"); close() }
|
|
alice.userPicker().switchTo("alice")
|
|
alice.chatList.row("team")
|
|
}
|
|
}
|