Skip to content

Implement test suite for teams and invitations#46

Merged
olix3001 merged 5 commits intomainfrom
36-testing-teams-and-invitations
Feb 24, 2026
Merged

Implement test suite for teams and invitations#46
olix3001 merged 5 commits intomainfrom
36-testing-teams-and-invitations

Conversation

@olix3001
Copy link
Contributor

@olix3001 olix3001 commented Feb 24, 2026

Implement full test suite for endpoints related to teams and invitations.

Closes #36
Closes #37

@olix3001 olix3001 requested a review from InfoX1337 February 24, 2026 18:02
@olix3001 olix3001 linked an issue Feb 24, 2026 that may be closed by this pull request
Copy link
Contributor

@InfoX1337 InfoX1337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments about tests that should (or could) be implemented :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the following tests

  • Cannot invite a user who is already a team member
  • Cannot invite a user with an invalid email format
  • Cannot accept an expired invitation
  • Cannot reject an expired invitation
  • Cannot invite a user to a non-existent team
  • Cannot list invitations for a non-existent team
  • Cannot accept an invitation if the team is deleted?
  • Cannot invite a user if the team has reached its member limit

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the following tests

  • Cannot create a team with a duplicate name within the same event? I dont think thats allowed.
  • Cannot update a team to have a duplicate name within the same event? as above.
  • Cannot delete a team that has ongoing tasks or dependencies?
  • Cannot list teams for an event that the user is not a part of
  • Cannot create a team for an event that is in draft mode. - User shouldn't be able to see it, but testing it seems smart.
  • Fails to update a team with invalid data (e.g. empty name), or the endpoint ignores the invalid data.

@olix3001 olix3001 force-pushed the 36-testing-teams-and-invitations branch from 006046c to e2b3c13 Compare February 24, 2026 19:37
Copy link
Contributor

@InfoX1337 InfoX1337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment, apart from that lgtm.

}

// Kick team member by member uuid
async kickMember({ auth, bouncer, request, response }: HttpContext) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this new function is there a possibility that the only team member leaves? If so how is it handled?

@olix3001 olix3001 merged commit 2cdb5d2 into main Feb 24, 2026
4 checks passed
@olix3001 olix3001 deleted the 36-testing-teams-and-invitations branch February 24, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Testing /invitations Testing /teams

2 participants