diff --git a/tests/System/integration/api/com_content/Categories.cy.js b/tests/System/integration/api/com_content/Categories.cy.js index c4a68f4f12247..baee48e60934c 100644 --- a/tests/System/integration/api/com_content/Categories.cy.js +++ b/tests/System/integration/api/com_content/Categories.cy.js @@ -48,4 +48,10 @@ describe('Test that content categories API endpoint', () => { .should('include', 'automated test content category description'); }); }); + + it('can delete a category', () => { + cy.db_createCategory({ title: 'automated test content category', extension: 'com_content', published: -2 }) + .then((category) => cy.api_delete(`/content/categories/${category}`)) + .then((response) => cy.wrap(response).its('status').should('equal', 204)); + }); });