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:
committed by
GitHub
parent
d39c52a324
commit
e24c26e3d2
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user