Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/System/integration/api/com_banners/Categories.cy.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
describe('Test that banners categories API endpoint', () => {
afterEach(() => cy.task('queryDB', "DELETE FROM #__categories WHERE title = 'automated test banner category'"));

it('can display a list of categories', () => {
it('can deliver a list of categories', () => {
cy.db_createCategory({ title: 'automated test banner category', extension: 'com_banners' })
.then((id) => cy.db_createBanner({ name: 'automated test banner', catid: id }))
.then(() => cy.api_get('/banners/categories'))
.then((response) => cy.api_responseContains(response, 'title', 'automated test banner category'));
});

it('can display a single category', () => {
it('can deliver a single category', () => {
cy.db_createCategory({ title: 'automated test banner category', extension: 'com_banners' })
.then((id) => cy.api_get(`/banners/categories/${id}`))
.then((response) => cy.wrap(response).its('body').its('data').its('attributes')
Expand Down
4 changes: 2 additions & 2 deletions tests/System/integration/api/com_contact/Categories.cy.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
describe('Test that contact categories API endpoint', () => {
afterEach(() => cy.task('queryDB', "DELETE FROM #__categories WHERE title = 'automated test contact category'"));

it('can display a list of categories', () => {
it('can deliver a list of categories', () => {
cy.db_createCategory({ title: 'automated test contact category', extension: 'com_contact' })
.then((id) => cy.db_createContact({ name: 'automated test contact', catid: id }))
.then(() => cy.api_get('/contacts/categories'))
.then((response) => cy.api_responseContains(response, 'title', 'automated test contact category'));
});

it('can display a single category', () => {
it('can deliver a single category', () => {
cy.db_createCategory({ title: 'automated test contact category', extension: 'com_contact' })
.then((id) => cy.api_get(`/contacts/categories/${id}`))
.then((response) => cy.wrap(response).its('body').its('data').its('attributes')
Expand Down
4 changes: 2 additions & 2 deletions tests/System/integration/api/com_content/Categories.cy.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
describe('Test that content categories API endpoint', () => {
afterEach(() => cy.task('queryDB', "DELETE FROM #__categories WHERE title = 'automated test content category'"));

it('can display a list of categories', () => {
it('can deliver a list of categories', () => {
cy.db_createCategory({ title: 'automated test content category', extension: 'com_content' })
.then((id) => cy.db_createArticle({ title: 'automated test article', catid: id }))
.then(() => cy.api_get('/content/categories'))
.then((response) => cy.api_responseContains(response, 'title', 'automated test content category'));
});

it('can display a single category', () => {
it('can deliver a single category', () => {
cy.db_createCategory({ title: 'automated test content category', extension: 'com_content' })
.then((id) => cy.api_get(`/content/categories/${id}`))
.then((response) => cy.wrap(response).its('body').its('data').its('attributes')
Expand Down
4 changes: 2 additions & 2 deletions tests/System/integration/api/com_newsfeed/Categories.cy.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
describe('Test that newsfeed categories API endpoint', () => {
it('can display a list of categories', () => {
it('can deliver a list of categories', () => {
cy.db_createCategory({ title: 'automated test category', extension: 'com_newsfeeds' })
.then((id) => cy.db_createNewsFeed({ name: 'automated test feed', catid: id }))
.then(() => cy.api_get('/newsfeeds/categories'))
.then((response) => cy.api_responseContains(response, 'title', 'automated test category'));
});

it('can display a single category', () => {
it('can deliver a single category', () => {
cy.db_createCategory({ title: 'automated test feed category', extension: 'com_newsfeeds' })
.then((id) => cy.api_get(`/newsfeeds/categories/${id}`))
.then((response) => cy.wrap(response).its('body').its('data').its('attributes')
Expand Down