import { it } from "../../../../helpers"; import { Auth, InternalApiKey, Project, Team, Webhook, bumpEmailAddress, niceBackendFetch } from "../../../backend-helpers"; it("is not allowed to list all the teams in a project on the client", async ({ expect }) => { await Auth.fastSignUp(); const response = await niceBackendFetch("/api/v1/teams", { accessType: "client" }); expect(response).toMatchInlineSnapshot(` NiceResponse { "status": 403, "body": "Client can only list teams for their own user. user_id must be either \\"me\\" or the ID of the current user", "headers": Headers {