Enhance testing framework with WordPress Playground integration

This commit is contained in:
2025-04-21 22:30:10 +01:00
parent 572c23df89
commit d6b2349af8
5 changed files with 245 additions and 24 deletions

View File

@@ -28,11 +28,11 @@ describe('WordPress Multisite Tests', () => {
});
it('Plugin is network activated', () => {
cy.loginAsAdmin();
// Use our custom command to check and network activate the plugin if needed
cy.networkActivatePlugin('wp-plugin-starter-template-for-ai-coding');
// Check plugins page
cy.visit('/wp-admin/network/plugins.php');
cy.contains('tr', 'WP Plugin Starter Template').should('contain', 'Network Active');
// Verify it's network active
cy.get('tr[data-slug="wp-plugin-starter-template-for-ai-coding"] .network_active').should('exist');
});
it('Network settings page loads correctly', () => {