diff --git a/app/src/androidTest/kotlin/io/flamenet/messenger/app/FeatureUseTest.kt b/app/src/androidTest/kotlin/io/flamenet/messenger/app/FeatureUseTest.kt index 1be7171..60e2bf3 100644 --- a/app/src/androidTest/kotlin/io/flamenet/messenger/app/FeatureUseTest.kt +++ b/app/src/androidTest/kotlin/io/flamenet/messenger/app/FeatureUseTest.kt @@ -130,8 +130,13 @@ class FeatureUseTest { compose.onNodeWithTag("create-group").performClick() // The group list carries a `group-` row once the relay answers. + // The id is the relay's randomHexToken(), not a number. Matching + // `group-\d+` only worked when the hex happened to start with a digit, + // ten times in sixteen, so the test failed a third of the time on a + // group that was plainly there. Sixteen or more hex characters keeps + // `group-name` and `group-member-N` from matching instead. awaitNodeMatching( - Regex("group-\\d+"), + Regex("group-[0-9a-f]{16,}"), 150_000, "the group never appeared in the list after Create", )