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:
Daniel Vaz Gaspar
2020-12-03 08:45:32 +00:00
committed by GitHub
parent 61064b9634
commit 71c567bf3a
7 changed files with 131 additions and 17 deletions

View File

@@ -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();
});