mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix: Chart can be added to dashboard by non-owner via save as option (#24630)
This commit is contained in:
@@ -164,7 +164,7 @@ test('disables overwrite option for new slice', () => {
|
||||
|
||||
test('disables overwrite option for non-owner', () => {
|
||||
const wrapperForNonOwner = getWrapper();
|
||||
wrapperForNonOwner.setProps({ userId: 2 });
|
||||
wrapperForNonOwner.setProps({ user: { userId: 2 } });
|
||||
const overwriteRadio = wrapperForNonOwner.find('#overwrite-radio');
|
||||
expect(overwriteRadio).toHaveLength(1);
|
||||
expect(overwriteRadio.prop('disabled')).toBe(true);
|
||||
|
||||
Reference in New Issue
Block a user