Skip to content

Commit

Permalink
[cypress] + com_mails (#43655)
Browse files Browse the repository at this point in the history
* cy.mails

* Update tests/System/integration/administrator/components/com_mails/Templates.cy.js

Co-authored-by: Brian Teeman <brian@teeman.net>

---------

Co-authored-by: Brian Teeman <brian@teeman.net>
  • Loading branch information
alikon and brianteeman committed Jun 20, 2024
1 parent 6de4a74 commit f4cb8dd
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
describe('Test in backend that the mails', () => {
beforeEach(() => {
cy.doAdministratorLogin();
cy.visit('/administrator/index.php?option=com_mails&view=templates');
});

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

it('can display a list of mail templates', () => {
cy.get('tr.row0').should('contain.text', 'User Actions Log');
});

it('check redirection to list view', () => {
cy.visit('/administrator/index.php?option=com_mails&task=template.edit&template_id=com_actionlogs.notification&language=en-GB');
cy.intercept('index.php?option=com_mails&view=templates').as('listview');
cy.clickToolbarButton('Cancel');

cy.wait('@listview');
});
});

0 comments on commit f4cb8dd

Please sign in to comment.