| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Test.One2OneTeamConv
Synopsis
Documentation
data One2OneRole Source #
Team member roles that the one2one team conversation test is parametrized
over (the standard non-owner roles). Each constructor is enumerated into a
separate test case by the test discovery machinery, mirroring the way the
original galley test invoked testCreateOne2OneWithMembers once per role.
Constructors
| One2OneMember | |
| One2OnePartner |
Instances
| Generic One2OneRole Source # | |||||
Defined in Test.One2OneTeamConv Associated Types
| |||||
| Show One2OneRole Source # | |||||
Defined in Test.One2OneTeamConv Methods showsPrec :: Int -> One2OneRole -> ShowS # show :: One2OneRole -> String # showList :: [One2OneRole] -> ShowS # | |||||
| Eq One2OneRole Source # | |||||
Defined in Test.One2OneTeamConv | |||||
| type Rep One2OneRole Source # | |||||
one2OneRoleName :: One2OneRole -> String Source #
Map a parametrized role to the team-role string accepted by
createTeamMember (see Wire.API.Team.Role: member, partner). The
original galley test covered RoleMember and RoleExternalPartner.
testCreateOne2OneWithMembers :: HasCallStack => One2OneRole -> App () Source #
An owner adds a second team member with the given role and creates a
binding one2one team conversation with them. Ported from
servicesgalleytestintegrationAPI/Teams.hs
(testCreateOne2OneWithMembers).
testCreateOne2OneFailForNonTeamMembers :: HasCallStack => App () Source #
Two owners each create their own binding team. Attempting to create a
one2one team conversation with a member of a different (binding) team fails
with non-binding-team-members. Ported from
testCreateOne2OneFailForNonTeamMembers.