Skip to content

Commit

Permalink
[5][cypress] mod_articles (#44393)
Browse files Browse the repository at this point in the history
* 500

* cs

* cs

* cs

* cs

* cs sucks

* bare minimum

* cs
  • Loading branch information
alikon authored Nov 4, 2024
1 parent cc82bbe commit 50a859b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/System/integration/site/modules/mod_articles/Default.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
describe('Test in frontend that the articles module', () => {
it('can display the title of the article', () => {
cy.db_createCategory({ extension: 'com_content' })
.then(async (categoryId) => {
await cy.db_createArticle({ title: 'automated test article', catid: categoryId });
await cy.db_createModule({
module: 'mod_articles',
params: JSON.stringify({
catid: categoryId,
item_title: 1,
show_introtext: 0,
}),
});
})
.then(() => {
cy.visit('/');

cy.contains('li', 'automated test article');
});
});
});

0 comments on commit 50a859b

Please sign in to comment.