Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cypress] + com_plugins #43544

Merged
merged 5 commits into from
May 30, 2024
Merged
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,37 @@
describe('Test in backend that the plugins list', () => {
beforeEach(() => {
cy.doAdministratorLogin();
cy.visit('/administrator/index.php?option=com_plugins&view=plugins');
});

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

it('can display a list of plugins', () => {
cy.contains('Action Log - Joomla');
});

it('can unpublish a plugin', () => {
cy.searchForItem('Action Log - Joomla');
cy.checkAllResults();
cy.contains('Disable').click();
cy.on('window:confirm', () => true);
cy.get('#system-message-container').contains('Plugin disabled.').should('exist');
});

it('can publish a plugin', () => {
cy.searchForItem('Action Log - Joomla');
cy.checkAllResults();
cy.contains('Enable').click();
cy.on('window:confirm', () => true);
cy.get('#system-message-container').contains('Plugin enabled.').should('exist');
});

it('can edit a plugin', () => {
cy.searchForItem('Action Log - Joomla');
cy.get('a').contains('Action Log - Joomla').click();
cy.contains('Plugins: Action Log - Joomla');
cy.contains('Close').click();
});
});