Skip to content

Commit 823f572

Browse files
authored
set parent_id (joomla#45095)
1 parent aa8dd65 commit 823f572

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/System/integration/api/com_banners/Categories.cy.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ describe('Test that banners categories API endpoint', () => {
1717
});
1818

1919
it('can create a category', () => {
20-
cy.api_post('/banners/categories', { title: 'automated test banner category', description: 'automated test banner category description' })
20+
cy.api_post('/banners/categories', {
21+
title: 'automated test banner category',
22+
description: 'automated test banner category description',
23+
parent_id: 1,
24+
extension: 'com_banners',
25+
})
2126
.then((response) => {
2227
cy.wrap(response).its('body').its('data').its('attributes')
2328
.its('title')

0 commit comments

Comments
 (0)