Skip to content

Commit

Permalink
Create Default.cy.js (#40189)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandewt authored Mar 25, 2023
1 parent 4d6d43a commit 2adf119
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
describe('Test that the popular articles module', () => {
it('can load in frontend and shows the title of the test article ', () => {
cy.db_createArticle({ title: 'automated test article' })
.then(() => cy.db_createModule({ module: 'mod_articles_popular', params: JSON.stringify({ catid: 2 }) }))
.then(() => {
cy.visit('/');

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

0 comments on commit 2adf119

Please sign in to comment.