diff --git a/tests/System/integration/administrator/components/com_categories/Categories.cy.js b/tests/System/integration/administrator/components/com_categories/Categories.cy.js index b1feacac6fc20..be270ea4ac511 100644 --- a/tests/System/integration/administrator/components/com_categories/Categories.cy.js +++ b/tests/System/integration/administrator/components/com_categories/Categories.cy.js @@ -1,4 +1,4 @@ -describe('Test that the categories back end list', () => { +describe('Test in backend that the categories list', () => { beforeEach(() => { cy.doAdministratorLogin(); cy.visit('administrator/index.php?option=com_categories&view=categories&extension=com_content&filter='); @@ -8,7 +8,7 @@ describe('Test that the categories back end list', () => { cy.contains('h1', 'Categories').should('exist'); }); - it('can show a list of categories', () => { + it('can display a list of categories', () => { cy.db_createCategory({ title: 'Test category' }).then(() => { cy.reload(); diff --git a/tests/System/integration/administrator/components/com_categories/Category.cy.js b/tests/System/integration/administrator/components/com_categories/Category.cy.js index 0caeb6e24282b..b67fe46ef4f9f 100644 --- a/tests/System/integration/administrator/components/com_categories/Category.cy.js +++ b/tests/System/integration/administrator/components/com_categories/Category.cy.js @@ -1,4 +1,4 @@ -describe('Test that the category back end form', () => { +describe('Test in backend that the category form', () => { beforeEach(() => cy.doAdministratorLogin()); afterEach(() => cy.task('queryDB', "DELETE FROM #__categories WHERE title = 'Test category'")); diff --git a/tests/System/integration/administrator/components/com_content/Article.cy.js b/tests/System/integration/administrator/components/com_content/Article.cy.js index eae613b5db119..e406636378c1d 100644 --- a/tests/System/integration/administrator/components/com_content/Article.cy.js +++ b/tests/System/integration/administrator/components/com_content/Article.cy.js @@ -1,8 +1,8 @@ -describe('Test that the article back end form', () => { +describe('Test in backend that the article form', () => { beforeEach(() => cy.doAdministratorLogin()); afterEach(() => cy.task('queryDB', "DELETE FROM #__content WHERE title = 'Test article'")); - it('can create a article', () => { + it('can create an article', () => { cy.visit('administrator/index.php?option=com_content&task=article.add'); cy.get('#jform_title').clear().type('Test article'); cy.clickToolbarButton('Save & Close'); @@ -11,7 +11,7 @@ describe('Test that the article back end form', () => { cy.contains('Test article'); }); - it('can change access level of the test article', () => { + it('can change access level of a test article', () => { cy.db_createArticle({ title: 'Test article' }).then((id) => { cy.visit(`administrator/index.php?option=com_content&task=article.edit&id=${id}`); cy.get('#jform_access').select('Special'); diff --git a/tests/System/integration/administrator/components/com_content/Articles.cy.js b/tests/System/integration/administrator/components/com_content/Articles.cy.js index 93578c566a55c..641d98d2fcddc 100644 --- a/tests/System/integration/administrator/components/com_content/Articles.cy.js +++ b/tests/System/integration/administrator/components/com_content/Articles.cy.js @@ -1,4 +1,4 @@ -describe('Test that the articles back end list', () => { +describe('Test in backend that the articles list', () => { beforeEach(() => { cy.doAdministratorLogin(); cy.visit('administrator/index.php?option=com_content&view=articles&filter='); @@ -8,7 +8,7 @@ describe('Test that the articles back end list', () => { cy.get('h1.page-title').should('contain.text', 'Articles'); }); - it('can show a list of articles', () => { + it('can display a list of articles', () => { cy.db_createArticle({ title: 'Test article' }).then(() => { cy.reload(); diff --git a/tests/System/integration/administrator/components/com_fields/Field.cy.js b/tests/System/integration/administrator/components/com_fields/Field.cy.js index 7e797b6b7134c..4ea6f8dc8b2f6 100644 --- a/tests/System/integration/administrator/components/com_fields/Field.cy.js +++ b/tests/System/integration/administrator/components/com_fields/Field.cy.js @@ -1,4 +1,4 @@ -describe('Test that the field back end form', () => { +describe('Test in backend that the field form', () => { beforeEach(() => cy.doAdministratorLogin()); afterEach(() => cy.task('queryDB', "DELETE FROM #__fields WHERE title = 'Test field'")); diff --git a/tests/System/integration/administrator/components/com_fields/Fields.cy.js b/tests/System/integration/administrator/components/com_fields/Fields.cy.js index 65eaa3c45b572..95fedd96e60fa 100644 --- a/tests/System/integration/administrator/components/com_fields/Fields.cy.js +++ b/tests/System/integration/administrator/components/com_fields/Fields.cy.js @@ -1,4 +1,4 @@ -describe('Test that the custom fields back end list', () => { +describe('Test in backend that the custom fields list', () => { beforeEach(() => { cy.doAdministratorLogin(); cy.visit('administrator/index.php?option=com_fields&view=fields&context=com_content.article&filter='); @@ -8,7 +8,7 @@ describe('Test that the custom fields back end list', () => { cy.get('h1.page-title').should('contain.text', 'Fields'); }); - it('can show a list of fields', () => { + it('can display a list of fields', () => { cy.db_createField({ title: 'Test field' }).then(() => { cy.reload(); diff --git a/tests/System/integration/administrator/components/com_login/Login.cy.js b/tests/System/integration/administrator/components/com_login/Login.cy.js index 3d4c1aa2d3356..1aa5a4e6f7b87 100644 --- a/tests/System/integration/administrator/components/com_login/Login.cy.js +++ b/tests/System/integration/administrator/components/com_login/Login.cy.js @@ -1,5 +1,5 @@ -describe('Test that the login component', () => { - it('can log in and out in the back end', () => { +describe('Test in backend that the login component', () => { + it('can log in and out', () => { cy.doAdministratorLogin(null, null, false); cy.doAdministratorLogout(); }); diff --git a/tests/System/integration/administrator/components/com_menu/Menu.cy.js b/tests/System/integration/administrator/components/com_menu/Menu.cy.js index 044b995fde58d..5a504efb357d9 100644 --- a/tests/System/integration/administrator/components/com_menu/Menu.cy.js +++ b/tests/System/integration/administrator/components/com_menu/Menu.cy.js @@ -1,4 +1,4 @@ -describe('Test that the user back end form', () => { +describe('Test in backend that the user form', () => { beforeEach(() => cy.doAdministratorLogin()); afterEach(() => cy.task('queryDB', "DELETE FROM #__menu_types WHERE menutype = 'test'")); diff --git a/tests/System/integration/administrator/components/com_menu/MenuItem.cy.js b/tests/System/integration/administrator/components/com_menu/MenuItem.cy.js index 1cdc0bd80ce83..d8ea6e6601089 100644 --- a/tests/System/integration/administrator/components/com_menu/MenuItem.cy.js +++ b/tests/System/integration/administrator/components/com_menu/MenuItem.cy.js @@ -1,4 +1,4 @@ -describe('Test that the menu back end list', () => { +describe('Test in backend that the menu list', () => { beforeEach(() => { cy.doAdministratorLogin(); cy.visit('administrator/index.php?option=com_menus&view=items&menutype=mainmenu'); @@ -6,7 +6,7 @@ describe('Test that the menu back end list', () => { it('has a title', () => cy.get('h1.page-title').should('contain.text', 'Menus: Items')); - it('can show a list of menu items', () => { + it('can display a list of menu items', () => { cy.db_createMenuItem({ title: 'Test menu item' }).then(() => { cy.reload(); diff --git a/tests/System/integration/administrator/components/com_menu/Menus.cy.js b/tests/System/integration/administrator/components/com_menu/Menus.cy.js index bf85fe031a647..5485753a83cf4 100644 --- a/tests/System/integration/administrator/components/com_menu/Menus.cy.js +++ b/tests/System/integration/administrator/components/com_menu/Menus.cy.js @@ -1,4 +1,4 @@ -describe('Test that the menu back end list', () => { +describe('Test in backend that the menu list', () => { beforeEach(() => { cy.doAdministratorLogin(); cy.visit('administrator/index.php?option=com_menus&view=menus&filter='); @@ -6,7 +6,7 @@ describe('Test that the menu back end list', () => { it('has a title', () => cy.get('h1.page-title').should('contain.text', 'Menus')); - it('can show a list of menus', () => cy.contains('Main Menu')); + it('can display a list of menus', () => cy.contains('Main Menu')); it('can open the menu form', () => { cy.clickToolbarButton('New'); diff --git a/tests/System/integration/administrator/components/com_users/User.cy.js b/tests/System/integration/administrator/components/com_users/User.cy.js index dd34c6b4e7ab5..a20dbabc49969 100644 --- a/tests/System/integration/administrator/components/com_users/User.cy.js +++ b/tests/System/integration/administrator/components/com_users/User.cy.js @@ -1,4 +1,4 @@ -describe('Test that the user back end form', () => { +describe('Test in backend that the user form', () => { beforeEach(() => cy.doAdministratorLogin()); afterEach(() => cy.task('queryDB', "DELETE FROM #__users WHERE username = 'test'")); diff --git a/tests/System/integration/administrator/components/com_users/Users.cy.js b/tests/System/integration/administrator/components/com_users/Users.cy.js index dd652765da4ac..07014f18666b4 100644 --- a/tests/System/integration/administrator/components/com_users/Users.cy.js +++ b/tests/System/integration/administrator/components/com_users/Users.cy.js @@ -1,4 +1,4 @@ -describe('Test that the user back end list', () => { +describe('Test in backend that the user list', () => { beforeEach(() => { cy.doAdministratorLogin(); cy.visit('administrator/index.php?option=com_users&view=users&filter='); @@ -8,7 +8,7 @@ describe('Test that the user back end list', () => { cy.get('h1.page-title').should('contain.text', 'Users'); }); - it('can show a list of users', () => { + it('can display a list of users', () => { cy.db_createUser({ name: 'Test user' }).then(() => { cy.reload(); diff --git a/tests/System/integration/site/components/com_contact/Categories.cy.js b/tests/System/integration/site/components/com_contact/Categories.cy.js index 808773bd00d49..651fa5be91203 100644 --- a/tests/System/integration/site/components/com_contact/Categories.cy.js +++ b/tests/System/integration/site/components/com_contact/Categories.cy.js @@ -1,5 +1,5 @@ -describe('Test that the Categories of com_contact ', () => { - it('can display a list of categories of contacts in menu item', () => { +describe('Test in frontend that the contact categories view', () => { + it('can display a list of contact categories in a menu item', () => { cy.db_createCategory({ title: 'automated test category 1', extension: 'com_contact' }) .then((id) => cy.db_createContact({ name: 'automated test contact 1', catid: id })) .then(() => cy.db_createCategory({ title: 'automated test category 2', extension: 'com_contact' })) diff --git a/tests/System/integration/site/components/com_contact/Category.cy.js b/tests/System/integration/site/components/com_contact/Category.cy.js index eca265b510700..85ad018eff156 100644 --- a/tests/System/integration/site/components/com_contact/Category.cy.js +++ b/tests/System/integration/site/components/com_contact/Category.cy.js @@ -1,5 +1,5 @@ -describe('Test that the list view ', () => { - it('can display a list of contacts in menu item', () => { +describe('Test in frontend that the contact category view', () => { + it('can display a list of contacts in a menu item', () => { cy.db_createContact({ name: 'automated test contact 1', featured: 1 }) .then(() => cy.db_createContact({ name: 'automated test contact 2', featured: 1 })) .then(() => cy.db_createContact({ name: 'automated test contact 3', featured: 1 })) @@ -16,7 +16,7 @@ describe('Test that the list view ', () => { }); }); - it('can display a list of contacts without menu item', () => { + it('can display a list of contacts without a menu item', () => { cy.db_createContact({ name: 'automated test contact 1' }) .then(() => cy.db_createContact({ name: 'automated test contact 2' })) .then(() => cy.db_createContact({ name: 'automated test contact 3' })) diff --git a/tests/System/integration/site/components/com_contact/Contact.cy.js b/tests/System/integration/site/components/com_contact/Contact.cy.js index 2527403e1e849..c6fec34212c39 100644 --- a/tests/System/integration/site/components/com_contact/Contact.cy.js +++ b/tests/System/integration/site/components/com_contact/Contact.cy.js @@ -1,5 +1,5 @@ -describe('Test that the Contact Form', () => { - it('can display a Contact Form', () => { +describe('Test in frontend that the contact details view', () => { + it('can display a form', () => { cy.db_getUserId().then((id) => cy.db_createContact({ name: 'contact 1', user_id: id })) .then((contactId) => { cy.visit(`index.php?option=com_contact&view=contact&id='${contactId}'`); @@ -9,7 +9,7 @@ describe('Test that the Contact Form', () => { }); }); - it('can display an added field', () => { + it('can display a custom field', () => { cy.db_createFieldGroup({ title: 'automated test_field group', context: 'com_contact.mail' }) .then((id) => cy.db_createField({ group_id: id, context: 'com_contact.mail', type: 'checkboxes', fieldparams: JSON.stringify({ options: { options0: { name: 'test value', value: '' } } }), diff --git a/tests/System/integration/site/components/com_contact/Featured.cy.js b/tests/System/integration/site/components/com_contact/Featured.cy.js index 85e8b052933e5..82137015ac6f7 100644 --- a/tests/System/integration/site/components/com_contact/Featured.cy.js +++ b/tests/System/integration/site/components/com_contact/Featured.cy.js @@ -1,5 +1,5 @@ -describe('Test that the featured contacts menu item type', () => { - it('can display featured contact', () => { +describe('Test in frontend that the contact featured view', () => { + it('can display featured contacts', () => { cy.db_createContact({ name: 'automated test contact 1', featured: 1 }) .then(() => cy.db_createContact({ name: 'automated test contact 2', featured: 1 })) .then(() => cy.db_createContact({ name: 'automated test contact 3', featured: 1 })) @@ -23,6 +23,7 @@ describe('Test that the featured contacts menu item type', () => { .then(() => { cy.visit('/'); cy.get('a:contains(automated test)').click(); + cy.contains('automated test contact 1').should('not.exist'); cy.contains('automated test contact 2').should('not.exist'); }); diff --git a/tests/System/integration/site/components/com_contact/Form.cy.js b/tests/System/integration/site/components/com_contact/Form.cy.js index 08f542ff22011..89c4b17a187c8 100644 --- a/tests/System/integration/site/components/com_contact/Form.cy.js +++ b/tests/System/integration/site/components/com_contact/Form.cy.js @@ -1,7 +1,7 @@ -describe('Test that the form view ', () => { +describe('Test in frontend that the contact form view', () => { afterEach(() => cy.task('queryDB', 'DELETE FROM #__contact_details')); - it('Can create contact through form view', () => { + it('can create a contact through a form', () => { cy.doFrontendLogin(); cy.visit('index.php?option=com_contact&view=form&layout=edit'); cy.get('#jform_name').type('test contact 1'); diff --git a/tests/System/integration/site/components/com_content/Category.cy.js b/tests/System/integration/site/components/com_content/Category.cy.js index ab622d1fb4bf3..ef5e10ed3300f 100644 --- a/tests/System/integration/site/components/com_content/Category.cy.js +++ b/tests/System/integration/site/components/com_content/Category.cy.js @@ -1,4 +1,4 @@ -describe('Test that the articles category menu item type ', () => { +describe('Test in frontend that the content category view', () => { ['default', 'blog'].forEach((layout) => { it(`can display a list of articles in the ${layout} layout in a menu item`, () => { cy.db_createArticle({ title: 'article 1' }) diff --git a/tests/System/integration/site/components/com_content/Featured.cy.js b/tests/System/integration/site/components/com_content/Featured.cy.js index 77873656f8043..fdf66d2443bd4 100644 --- a/tests/System/integration/site/components/com_content/Featured.cy.js +++ b/tests/System/integration/site/components/com_content/Featured.cy.js @@ -1,4 +1,4 @@ -describe('Test that the featured articles menu item type', () => { +describe('Test in frontend that the content featured view', () => { it('can display an article', () => { cy.db_createArticle({ title: 'automated test article', featured: 1 }).then(() => { cy.visit('/'); @@ -7,7 +7,7 @@ describe('Test that the featured articles menu item type', () => { }); }); - it('can not display not featured articles article', () => { + it('can not display not featured articles', () => { cy.db_createArticle({ title: 'automated test article', featured: 0 }).then(() => { cy.visit('/'); diff --git a/tests/System/integration/site/components/com_newsfeed/Categories.cy.js b/tests/System/integration/site/components/com_newsfeed/Categories.cy.js index dcf04299c5d6d..06acb86b31b10 100644 --- a/tests/System/integration/site/components/com_newsfeed/Categories.cy.js +++ b/tests/System/integration/site/components/com_newsfeed/Categories.cy.js @@ -1,5 +1,5 @@ -describe('Test that the Categories of com_newsfeeds ', () => { - it('can display a list of categories of newsfeeds', () => { +describe('Test in frontend that the newsfeeds categories view', () => { + it('can display a list of categories', () => { cy.db_createCategory({ title: 'automated test category 1', extension: 'com_newsfeeds' }) .then((id) => cy.db_createNewsFeed({ name: 'automated test feed 1', catid: id })) .then(() => cy.db_createCategory({ title: 'automated test category 2', extension: 'com_newsfeeds' })) diff --git a/tests/System/integration/site/components/com_newsfeed/Category.cy.js b/tests/System/integration/site/components/com_newsfeed/Category.cy.js index ab3a1626c1eb9..ee4e806cfdf73 100644 --- a/tests/System/integration/site/components/com_newsfeed/Category.cy.js +++ b/tests/System/integration/site/components/com_newsfeed/Category.cy.js @@ -1,5 +1,5 @@ -describe('Test that the feed view ', () => { - it('can display a list of feeds in menu item', () => { +describe('Test in frontend that the newsfeeds category view', () => { + it('can display a list of feeds in a menu item', () => { cy.db_createNewsFeed({ name: 'automated test feed 1' }) .then(() => cy.db_createNewsFeed({ name: 'automated test feed 2' })) .then(() => cy.db_createNewsFeed({ name: 'automated test feed 3' })) @@ -16,7 +16,7 @@ describe('Test that the feed view ', () => { }); }); - it('can display a list of feeds without menu item', () => { + it('can display a list of feeds without a menu item', () => { cy.db_createNewsFeed({ name: 'automated test feed 1' }) .then(() => cy.db_createNewsFeed({ name: 'automated test feed 2' })) .then(() => cy.db_createNewsFeed({ name: 'automated test feed 3' })) diff --git a/tests/System/integration/site/components/com_newsfeed/NewsFeed.cy.js b/tests/System/integration/site/components/com_newsfeed/NewsFeed.cy.js index fccf6c1b8f24b..003c3d4599ee9 100644 --- a/tests/System/integration/site/components/com_newsfeed/NewsFeed.cy.js +++ b/tests/System/integration/site/components/com_newsfeed/NewsFeed.cy.js @@ -1,6 +1,6 @@ -describe('Test that the feed view ', () => { +describe('Test in frontend that the newsfeeds details view', () => { ['joomla.org'].forEach((file) => { - it(`can display a feed in menu item from ${file}`, () => { + it(`can display a feed in a menu item from ${file}`, () => { cy.db_createNewsFeed({ name: 'automated test feed 1', link: `${Cypress.config('baseUrl')}/tests/System/data/com_newsfeeds/${file}.xml` }) .then((id) => cy.db_createMenuItem({ title: 'automated test feeds', link: `index.php?option=com_newsfeeds&view=newsfeed&id=${id}` })) .then(() => { @@ -13,7 +13,7 @@ describe('Test that the feed view ', () => { }); }); - it('can display a feed without menu item', () => { + it(`can display a feed without a menu item from ${file}`, () => { cy.db_createNewsFeed({ name: 'automated test feed 1', link: `${Cypress.config('baseUrl')}/tests/System/data/com_newsfeeds/${file}.xml` }) .then((id) => { cy.visit(`index.php?option=com_newsfeeds&view=newsfeed&id=${id}`); diff --git a/tests/System/integration/site/components/com_tag/Tag.cy.js b/tests/System/integration/site/components/com_tag/Tag.cy.js index 02a1c37489012..e12fb8bd9b315 100644 --- a/tests/System/integration/site/components/com_tag/Tag.cy.js +++ b/tests/System/integration/site/components/com_tag/Tag.cy.js @@ -1,5 +1,5 @@ -describe('Test that the tag view ', () => { - it('can display a list of tags in menu item', () => { +describe('Test in frontend that the tags tag view', () => { + it('can display a list of tags in a menu item', () => { cy.db_createTag({ title: 'automated test tag 1' }) .then(() => cy.db_createTag({ title: 'automated test tag 2' })) .then(() => cy.db_createTag({ title: 'automated test tag 3' })) @@ -16,7 +16,7 @@ describe('Test that the tag view ', () => { }); }); - it('can display a list of tags without menu item', () => { + it('can display a list of tags without a menu item', () => { cy.db_createTag({ title: 'automated test tag 1' }) .then(() => cy.db_createTag({ title: 'automated test tag 2' })) .then(() => cy.db_createTag({ title: 'automated test tag 3' })) diff --git a/tests/System/integration/site/components/com_users/Login.cy.js b/tests/System/integration/site/components/com_users/Login.cy.js index beac62b11e9fc..a9b041a237296 100644 --- a/tests/System/integration/site/components/com_users/Login.cy.js +++ b/tests/System/integration/site/components/com_users/Login.cy.js @@ -1,9 +1,8 @@ -describe('Test the login view', () => { - it('can log in for test user', () => { +describe('Test in frontend that the users login view', () => { + it('can log in a test user without a menu item', () => { cy.db_createUser({ username: 'test', password: '098f6bcd4621d373cade4e832627b4f6' }) .then(() => { cy.visit('index.php?option=com_users&view=login'); - cy.get('#username').type('test'); cy.get('#password').type('test'); cy.get('#remember').check(); @@ -13,12 +12,11 @@ describe('Test the login view', () => { }); }); - it('testing log in for test user through menu item', () => { + it('can log in a test user in a menu item', () => { cy.db_createUser({ username: 'test', password: '098f6bcd4621d373cade4e832627b4f6' }) .then(() => cy.db_createMenuItem({ title: 'Automated test login', link: 'index.php?option=com_users&view=login' })) .then(() => { cy.visit('/'); - cy.get('a:contains(Automated test login)').click(); cy.get('#username').type('test'); cy.get('#password').type('test'); diff --git a/tests/System/integration/site/components/com_users/Profile.cy.js b/tests/System/integration/site/components/com_users/Profile.cy.js index 0176140322fd5..63993a4648c1e 100644 --- a/tests/System/integration/site/components/com_users/Profile.cy.js +++ b/tests/System/integration/site/components/com_users/Profile.cy.js @@ -1,11 +1,10 @@ -describe('Test the user profile view', () => { - it('can display user profile for test user', () => { +describe('Test in frontend that the users profile view', () => { + it('can display a user profile for a test user without a menu item', () => { cy.db_createUser({ name: 'automated test user', username: 'automatedtestuser', password: '098f6bcd4621d373cade4e832627b4f6', registerDate: '2023-03-01 20:00:00', }) .then(() => { cy.visit('index.php?option=com_users&view=profile'); - cy.get('#username').type('automatedtestuser'); cy.get('#password').type('test'); cy.get('#remember').check(); @@ -22,14 +21,13 @@ describe('Test the user profile view', () => { }); }); - it('testing user profile display for test user through menu item', () => { + it('can display a user profile for a test user in a menu item', () => { cy.db_createUser({ name: 'automated test user', username: 'automatedtestuser', password: '098f6bcd4621d373cade4e832627b4f6', registerDate: '2023-03-01 20:00:00', }) .then(() => cy.db_createMenuItem({ title: 'Automated test user profile', link: 'index.php?option=com_users&view=profile' })) .then(() => { cy.visit('/'); - cy.get('a:contains(Automated test user profile)').click(); cy.get('#username').type('automatedtestuser'); cy.get('#password').type('test'); diff --git a/tests/System/integration/site/components/com_users/Registration.cy.js b/tests/System/integration/site/components/com_users/Registration.cy.js index a76e7b62c9439..8f4bdfb8c358a 100644 --- a/tests/System/integration/site/components/com_users/Registration.cy.js +++ b/tests/System/integration/site/components/com_users/Registration.cy.js @@ -1,11 +1,8 @@ -describe('Test the registration view', () => { - it('can display the registration view for test user', () => { - cy.db_createUser({ - name: 'test user', username: 'test', email: 'test@example.com', password: '098f6bcd4621d373cade4e832627b4f6', - }) +describe('Test in frontend that the users registration view', () => { + it('can display a registration form for a test user without a menu item', () => { + cy.db_createUser({ username: 'test', password: '098f6bcd4621d373cade4e832627b4f6' }) .then(() => { cy.visit('index.php?option=com_users&view=registration'); - cy.get('#username').type('test'); cy.get('#password').type('test'); cy.get('#remember').check(); @@ -15,14 +12,11 @@ describe('Test the registration view', () => { }); }); - it('testing registration form for test user through menu item', () => { - cy.db_createUser({ - name: 'test user', username: 'test', email: 'test@example.com', password: '098f6bcd4621d373cade4e832627b4f6', - }) + it('can display a registration form for a test user in a menu item', () => { + cy.db_createUser({ username: 'test', password: '098f6bcd4621d373cade4e832627b4f6' }) .then(() => cy.db_createMenuItem({ title: 'Automated test registration', link: 'index.php?option=com_users&view=registration' })) .then(() => { cy.visit('/'); - cy.get('a:contains(Automated test registration)').click(); cy.get('#username').type('test'); cy.get('#password').type('test'); diff --git a/tests/System/integration/site/components/com_users/Remind.cy.js b/tests/System/integration/site/components/com_users/Remind.cy.js index 60bee388fa152..d33d61703d277 100644 --- a/tests/System/integration/site/components/com_users/Remind.cy.js +++ b/tests/System/integration/site/components/com_users/Remind.cy.js @@ -1,10 +1,9 @@ -describe('Test the remind view', () => { - it('can open the reminder form for test user through menu item', () => { +describe('Test in frontend that the users remind view', () => { + it('can send a reminder email for a test user in a menu item', () => { cy.db_createUser({ name: 'test user', email: 'test@example.com' }) .then(() => cy.db_createMenuItem({ title: 'Automated test reminder', link: 'index.php?option=com_users&view=remind' })) .then(() => { cy.visit('/'); - cy.get('a:contains(Automated test reminder)').click(); cy.get('#jform_email').type('test@example.com'); cy.get('.controls > .btn').click(); @@ -13,11 +12,10 @@ describe('Test the remind view', () => { }); }); - it('can display the remind view for test user', () => { + it('can send a reminder email for a test user without a menu item', () => { cy.db_createUser({ name: 'test user', email: 'test@example.com' }) .then(() => { cy.visit('index.php?option=com_users&view=remind'); - cy.get('#jform_email').type('test@example.com'); cy.get('.controls > .btn').click(); diff --git a/tests/System/integration/site/components/com_users/Reset.cy.js b/tests/System/integration/site/components/com_users/Reset.cy.js index 279f8494601b5..62a57d92137b2 100644 --- a/tests/System/integration/site/components/com_users/Reset.cy.js +++ b/tests/System/integration/site/components/com_users/Reset.cy.js @@ -1,9 +1,8 @@ -describe('Test the reset view', () => { - it('can display the reset view for test user', () => { +describe('Test in frontend that the users reset view', () => { + it('can send a reset email for a test user without a menu item', () => { cy.db_createUser({ email: 'test@example.com' }) .then(() => { cy.visit('index.php?option=com_users&view=reset'); - cy.get('#jform_email').type('test@example.com'); cy.get('.controls > .btn').click(); @@ -11,12 +10,11 @@ describe('Test the reset view', () => { }); }); - it('testing reset form for test user through menu item', () => { + it('can send a reset email for a test user in a menu item', () => { cy.db_createUser({ email: 'test@example.com' }) .then(() => cy.db_createMenuItem({ title: 'Automated test reset', link: 'index.php?option=com_users&view=reset' })) .then(() => { cy.visit('/'); - cy.get('a:contains(Automated test reset)').click(); cy.get('#jform_email').type('test@example.com'); cy.get('.controls > .btn').click();