Fix WordPress Playground tests: update port for multisite, improve test reliability

This commit is contained in:
2025-04-22 16:57:56 +01:00
parent fa92ca58df
commit ef60ce0c9d
4 changed files with 57 additions and 8 deletions

View File

@@ -11,13 +11,15 @@ describe('WordPress Playground Multisite Tests', () => {
});
it('Can access the network admin area', () => {
// WordPress Playground should auto-login as admin
cy.get('#wpadminbar').should('exist');
// Visit the network admin dashboard
cy.visit('/wp-admin/network/');
// Check if we're logged in to the network admin
cy.get('body').should('have.class', 'wp-admin');
});
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