Skip to content

Comments

test: add isOrgStarter permission and API tests#146

Open
field123 wants to merge 1 commit intomasterfrom
test/org-starter-permissions
Open

test: add isOrgStarter permission and API tests#146
field123 wants to merge 1 commit intomasterfrom
test/org-starter-permissions

Conversation

@field123
Copy link
Collaborator

Summary

  • Adds 6 DbMgr unit tests verifying isOrgStarter permission checks: team owner and team editor can set it, while team viewer, commenter, and workspace-only editor are denied
  • Adds 2 API integration tests confirming isOrgStarter defaults to false in project responses and can be updated via PUT /projects/:id

Test plan

  • Run yarn test --testPathPattern="DbMgr.spec" --verbose in platform/wab
  • Run yarn test --testPathPattern="projects.spec" --verbose in platform/wab
  • Verify all new tests pass against a local Postgres instance

Add DbMgr unit tests verifying team-level editor permission is required
to set isOrgStarter (viewer, commenter, and workspace-only editor are
denied). Add API integration tests confirming isOrgStarter defaults to
false and can be updated via PUT /projects/:id.
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.

1 participant