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