feat: getting rid of defaultProjectRole setting (#4221)

* feat: getting rid of defaultProjectRole setting

* get stdout reporting in CI

* yarn lock fix

* fix package.json

* better CI test output

* pinning mocha-multi
This commit is contained in:
Kristaps Fabians Geikins
2025-03-20 12:58:30 +02:00
committed by GitHub
parent d39c52a324
commit e24c26e3d2
28 changed files with 220 additions and 177 deletions
@@ -469,7 +469,7 @@ describe('Workspaces GQL CRUD', () => {
? []
: [
{
role: Roles.Stream.Contributor,
role: Roles.Stream.Reviewer,
project: {
id: project2Id,
name: project2Name
@@ -897,31 +897,6 @@ describe('Workspaces GQL CRUD', () => {
expect(updateRes).to.haveGraphQLErrors('too long')
})
it('should require default project role to be a valid role', async () => {
const resA = await apollo.execute(UpdateWorkspaceDocument, {
input: {
id: workspace.id,
defaultProjectRole: 'stream:contributor'
}
})
const resB = await apollo.execute(UpdateWorkspaceDocument, {
input: {
id: workspace.id,
defaultProjectRole: 'stream:reviewer'
}
})
const resC = await apollo.execute(UpdateWorkspaceDocument, {
input: {
id: workspace.id,
defaultProjectRole: 'stream:collaborator'
}
})
expect(resA).to.not.haveGraphQLErrors()
expect(resB).to.not.haveGraphQLErrors()
expect(resC).to.haveGraphQLErrors('Provided default project role is invalid')
})
})
describe('mutation workspaceMutations.dismiss', () => {