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
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
describe('Test in backend that the installed languages', () => {
beforeEach(() => {
cy.doAdministratorLogin();
cy.visit('/administrator/index.php?option=com_languages&view=installed');
});

it('have a title', () => {
cy.get('h1.page-title').should('contain.text', 'Languages');
});

it('have English Language', () => {
cy.get('tr.row0').should('contain.text', 'English');
});

it('have a Language as default', () => {
cy.get('span.icon-color-featured').should('exist');
});

it('have install languages link', () => {
cy.contains(' Install Languages ');
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
describe('Test in frontend that the languages module', () => {
it('can display languages', () => {
cy.db_createModule({ title: 'Languages', module: 'mod_languages' })
.then(() => {
cy.visit('/');
cy.contains('Languages');
});
});
});