mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 09:35:56 -05:00
Merge pull request #5722 from paulkaplan/fix-failing-permissions-test
test(studios): fix failing permissions tests for studios
This commit is contained in:
commit
d5d3107dc4
1 changed files with 4 additions and 4 deletions
|
@ -410,7 +410,7 @@ describe('studio members', () => {
|
||||||
['muted logged in', false]
|
['muted logged in', false]
|
||||||
])('%s: %s', (role, expected) => {
|
])('%s: %s', (role, expected) => {
|
||||||
setStateByRole(role);
|
setStateByRole(role);
|
||||||
state.studio.owner = 'the creator';
|
state.studio = {...state.studio, owner: 'the creator'};
|
||||||
expect(selectCanRemoveManager(state, 'the creator')).toBe(expected);
|
expect(selectCanRemoveManager(state, 'the creator')).toBe(expected);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -421,7 +421,7 @@ describe('studio members', () => {
|
||||||
['admin', false],
|
['admin', false],
|
||||||
['curator', false],
|
['curator', false],
|
||||||
['manager', true],
|
['manager', true],
|
||||||
['creator', false],
|
['creator', true],
|
||||||
['logged in', false],
|
['logged in', false],
|
||||||
['unconfirmed', false],
|
['unconfirmed', false],
|
||||||
['logged out', false],
|
['logged out', false],
|
||||||
|
@ -483,7 +483,7 @@ describe('studio mute errors', () => {
|
||||||
['logged in', false],
|
['logged in', false],
|
||||||
['unconfirmed', false],
|
['unconfirmed', false],
|
||||||
['logged out', false],
|
['logged out', false],
|
||||||
// ['muted creator', true], // This one fails; not sure why
|
['muted creator', true],
|
||||||
['muted manager', true],
|
['muted manager', true],
|
||||||
['muted curator', false],
|
['muted curator', false],
|
||||||
['muted logged in', false]
|
['muted logged in', false]
|
||||||
|
@ -502,7 +502,7 @@ describe('studio mute errors', () => {
|
||||||
['logged in', false],
|
['logged in', false],
|
||||||
['unconfirmed', false],
|
['unconfirmed', false],
|
||||||
['logged out', false],
|
['logged out', false],
|
||||||
// ['muted creator', true], // This one fails; not sure why
|
['muted creator', true],
|
||||||
['muted manager', false],
|
['muted manager', false],
|
||||||
['muted curator', false],
|
['muted curator', false],
|
||||||
['muted logged in', false]
|
['muted logged in', false]
|
||||||
|
|
Loading…
Reference in a new issue