ToolJet/server/test/modules
Shantanu Mane c2d8ba08ea
Add invitation token and invite URL generation for external API users and expand test coverage (#16413)
* feat(external-api): return per-workspace inviteUrl in POST /ext/users response

* test(external-api): expand POST /ext/users coverage — roles, multi-group, and failure conditions

Adds 8 new e2e tests covering role assignment, per-workspace role variance,
multiple custom groups, and all key failure paths (duplicate email, missing
workspace, default group in groups field, nonexistent group, end-user/builder
group conflict). Also seeds the builder default group in maybeCreateDefaultGroupPermissions
to unblock role-assignment tests against test orgs.

* test(external-api): clarify conflicting-permissions error shape in users spec

* feat(external-api): update default status to INVITED in user-related DTOs and add defaultOrganizationId field

* feat(external-api): enhance invited user session guard and expand user creation tests for archived status

* feat(external-api): add tests for org-invite URL behavior based on user and workspace status

* feat(external-api): update user status handling and invite URL logic in tests

* feat(external-api): update invite URL logic and OrganizationUser status handling for active users
2026-05-21 00:50:03 +05:30
..
__fixtures__/tooljetdb-data-operations.spec/ToolJet-DB-data-operations-EE-enterprise_1253369290 Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
app/e2e Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
apps/e2e Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
audit-logs/e2e Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
auth/e2e Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
data-queries Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
data-sources/e2e Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
encryption/unit Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
external-apis/e2e Add invitation token and invite URL generation for external API users and expand test coverage (#16413) 2026-05-21 00:50:03 +05:30
files/e2e Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
folder-apps/e2e Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
folders/e2e Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
group-permissions/e2e Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
import-export-resources/e2e Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
instance-settings/e2e Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
library-apps/e2e Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
licensing refactor: improve license test setup for better readability 2026-04-15 11:17:18 +05:30
onboarding/e2e Fix: Preserve Auth Invite Token (#15887) 2026-04-13 10:49:18 +05:30
org-constants/e2e Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
organization-users/e2e Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
organizations/e2e Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
session Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
tooljet-db Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
users Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30
workflows Chore: Rehabilitate backend test suite (#15740) 2026-04-08 13:09:49 +05:30