mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
feat(css templates): security perm simplification (#11856)
* feat: security converge css templates * fix security tests * fix JS test * add migration * black and fix migration
This commit is contained in:
committed by
GitHub
parent
61064b9634
commit
71c567bf3a
@@ -58,7 +58,7 @@ const mockUser = {
|
||||
};
|
||||
|
||||
fetchMock.get(templatesInfoEndpoint, {
|
||||
permissions: ['can_delete'],
|
||||
permissions: ['can_write'],
|
||||
});
|
||||
fetchMock.get(templatesEndpoint, {
|
||||
result: mocktemplates,
|
||||
@@ -158,7 +158,7 @@ describe('CssTemplatesList', () => {
|
||||
});
|
||||
|
||||
it('shows/hides bulk actions when bulk actions is clicked', async () => {
|
||||
const button = wrapper.find(Button).at(0);
|
||||
const button = wrapper.find(Button).at(1);
|
||||
act(() => {
|
||||
button.props().onClick();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user