Skip to content

Commit 9e16aae

Browse files
authored
[4.4] Improve system cypress test descriptions for frontend modules (#40483)
* Improve test description * Improve test description * Improve test description * Improve test description * Improve test description * Improve test description * Improve test description * Improve test description * Improve test description * Improve test description * Improve test description * Improve test description * Improve test description
1 parent f3f2e8d commit 9e16aae

File tree

12 files changed

+23
-23
lines changed

12 files changed

+23
-23
lines changed

tests/System/integration/site/modules/mod_articles_archive/Default.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
describe('Test the articles archive module', () => {
2-
it('can load in frontend and showing a list of months with archived articles', () => {
1+
describe('Test in frontend that the articles archive module', () => {
2+
it('can display a list of months with archived articles', () => {
33
cy.db_createArticle({ state: 2, created: '2022-09-09 20:00:00', modified: '2022-09-09 20:00:00' })
44
.then(() => cy.db_createModule({ module: 'mod_articles_archive' }))
55
.then(() => {

tests/System/integration/site/modules/mod_articles_categories/Default.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
describe('Test the articles categories module', () => {
2-
it('can load in frontend and showing the title of the categories', () => {
1+
describe('Test in frontend that the articles categories module', () => {
2+
it('can display the title of the categories', () => {
33
cy.db_createCategory({ title: 'automated test category' })
44
.then(() => cy.db_createModule({ module: 'mod_articles_categories' }))
55
.then(() => {

tests/System/integration/site/modules/mod_articles_category/Default.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
describe('Test the articles category module', () => {
2-
it('can load in frontend and showing the title of the articles', () => {
1+
describe('Test in frontend that the articles category module', () => {
2+
it('can display the title of the articles', () => {
33
cy.db_createCategory({ extension: 'com_content' })
44
.then(async (categoryId) => {
55
await cy.db_createArticle({ title: 'automated test article', catid: categoryId });

tests/System/integration/site/modules/mod_articles_latest/Default.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
describe('Test that the latest articles module', () => {
2-
it('can load in frontend without ordering parameter', () => {
1+
describe('Test in frontend that the latest articles module', () => {
2+
it('can load without ordering parameter', () => {
33
cy.db_createArticle({ title: 'automated test article' })
44
.then(() => cy.db_createModule({ module: 'mod_articles_latest' }))
55
.then(() => {

tests/System/integration/site/modules/mod_articles_news/Default.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
describe('Test that the news module', () => {
2-
it('can load in frontend and showing the title of the articles', () => {
1+
describe('Test in frontend that the news module', () => {
2+
it('can display the title of the articles', () => {
33
cy.db_createArticle({ title: 'automated test article' })
44
.then(() => cy.db_createModule({ module: 'mod_articles_news', params: JSON.stringify({ item_title: 1, item_heading: 'h3' }) }))
55
.then(() => {

tests/System/integration/site/modules/mod_articles_popular/Default.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
describe('Test that the popular articles module', () => {
2-
it('can load in frontend and shows the title of the test article ', () => {
1+
describe('Test in frontend that the popular articles module', () => {
2+
it('can display the title of the test article', () => {
33
cy.db_createCategory({ extension: 'com_content' })
44
.then(async (categoryId) => {
55
await cy.db_createArticle({ title: 'automated test article', catid: categoryId });

tests/System/integration/site/modules/mod_banners/Default.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
describe('Test that the banner module', () => {
1+
describe('Test in frontend that the banner module', () => {
22
it('can display banners', () => {
33
cy.db_createBanner({ custombannercode: 'automated test banner 1' })
44
.then(() => cy.db_createBanner({ custombannercode: 'automated test banner 2' }))

tests/System/integration/site/modules/mod_custom/Default.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
describe('Test that the custom module', () => {
2-
it('can load in frontend and shows the custom text', () => {
1+
describe('Test in frontend that the custom module', () => {
2+
it('can display the custom text', () => {
33
cy.db_createModule({ module: 'mod_custom', content: '<p>Automated test text</p>' }).then(() => {
44
cy.visit('/');
55

tests/System/integration/site/modules/mod_footer/Default.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
describe('Test that the footer module', () => {
2-
it('can load in frontend and shows the copyright message from Joomla', () => {
1+
describe('Test in frontend that the footer module', () => {
2+
it('can display the copyright message from Joomla', () => {
33
cy.db_createModule({ module: 'mod_footer' }).then(() => {
44
cy.visit('/');
55

tests/System/integration/site/modules/mod_login/Default.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
describe('Test that the login module', () => {
2-
it('can log in and log out in frontend with the default credentials', () => {
1+
describe('Test in frontend that the login module', () => {
2+
it('can log in and out with the default credentials', () => {
33
cy.doFrontendLogin(null, null, false);
44
cy.doFrontendLogout();
55
});

0 commit comments

Comments
 (0)