diff --git a/tests/ChatTests/Names.hs b/tests/ChatTests/Names.hs index 6a2f1eedba..1453d64c16 100644 --- a/tests/ChatTests/Names.hs +++ b/tests/ChatTests/Names.hs @@ -322,6 +322,7 @@ testChannelDomainVerify ps = withSmpServerAndNames ps $ \reg -> alice ##> "/_verify domain #1" alice <## "SimpleX name #team verified" memberJoinChannel "team" [cath] [alice] shortLink fullLink bob + settleTeamJoin alice cath bob bob ##> "/_verify domain #1" bob <## "SimpleX name #team verified" -- the name is re-pointed to a different link: verification fails @@ -1007,10 +1008,18 @@ joinVerifiedTeam reg alice cath bob = do registerName reg teamSimplexName (channelNameRecord "team.simplex" (T.pack shortLink)) setChannelDomain alice cath "alice" "team" "team.simplex" memberJoinChannel "team" [cath] [alice] shortLink fullLink bob + settleTeamJoin alice cath bob bob ##> "/_verify domain #1" bob <## "SimpleX name #team verified" pure shortLink +settleTeamJoin :: HasCallStack => TestCC -> TestCC -> TestCC -> IO () +settleTeamJoin alice cath bob = do + alice #> "#team hi" + cath <# "#team> hi" + bob <# "#team> hi [>>]" + waitQueuedLinkUpdates alice + knownGroupPlan :: HasCallStack => String -> String -> TestCC -> IO () knownGroupPlan g name cc = do cc <## ("group link: known group #" <> g) @@ -1099,6 +1108,7 @@ withTeamChats test = withChannelChats $ \reg alice cath bob -> do alice <## "new contact address set" connectBobByName "@team.simplex" alice bob joinChannelByName "team" alice cath bob + settleTeamJoin alice cath bob test reg contactLink channelLink alice bob testNameRecordOrWarning :: IO () diff --git a/tests/fixtures/api/names/plan-known-failed.json b/tests/fixtures/api/names/plan-known-failed.json index d353142e9e..7a2872e115 100644 --- a/tests/fixtures/api/names/plan-known-failed.json +++ b/tests/fixtures/api/names/plan-known-failed.json @@ -161,6 +161,7 @@ "connShortLink": "connShortLink" } }, + "rosterVersion": 0, "updatedAt": "1970-01-01T00:00:00Z", "useRelays": true, "userMemberProfileSentAt": "1970-01-01T00:00:00Z", diff --git a/tests/fixtures/api/names/search-team.json b/tests/fixtures/api/names/search-team.json index 4a323cd752..84fc33d23a 100644 --- a/tests/fixtures/api/names/search-team.json +++ b/tests/fixtures/api/names/search-team.json @@ -89,7 +89,7 @@ } }, "groupSummary": { - "currentMembers": 2, + "currentMembers": 3, "publicMemberCount": 1 }, "localAlias": "", @@ -161,6 +161,7 @@ "connShortLink": "connShortLink" } }, + "rosterVersion": 0, "updatedAt": "1970-01-01T00:00:00Z", "useRelays": true, "userMemberProfileSentAt": "1970-01-01T00:00:00Z",