36 lines
1.0 KiB
JavaScript
36 lines
1.0 KiB
JavaScript
/* eslint-env mocha, jquery, cypress */
|
|
describe('WordPress Playground Multisite Tests', () => {
|
|
beforeEach(() => {
|
|
// Visit the WordPress Playground page
|
|
cy.visit('/');
|
|
});
|
|
|
|
it('Can access the site', () => {
|
|
// Check if the page loaded
|
|
cy.get('body').should('exist');
|
|
});
|
|
|
|
it('Can access the network admin area', () => {
|
|
// WordPress Playground should auto-login as admin
|
|
cy.get('#wpadminbar').should('exist');
|
|
});
|
|
|
|
it('Plugin is network activated', () => {
|
|
// Navigate to network plugins page
|
|
cy.get('#wp-admin-bar-network-admin a').click();
|
|
cy.visit('/wp-admin/network/plugins.php');
|
|
|
|
// Check if the plugins are active
|
|
cy.contains('Plugin Toggle').should('exist');
|
|
cy.contains('Kadence Blocks').should('exist');
|
|
});
|
|
|
|
it('Network settings page loads correctly', () => {
|
|
// Navigate to the network settings page
|
|
cy.visit('/wp-admin/network/settings.php');
|
|
|
|
// Check if the network settings page loaded correctly
|
|
cy.get('#wpbody-content').should('exist');
|
|
});
|
|
});
|