Fix WordPress Playground tests: update blueprints to use installPlugin step, update test command

This commit is contained in:
2025-04-22 16:19:04 +01:00
parent c29841b8ae
commit 0f83330d85
7 changed files with 39 additions and 11 deletions

View File

@@ -12,9 +12,23 @@
"WP_DEBUG": true
}
},
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "plugin-toggle"
}
},
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "kadence-blocks"
}
},
{
"step": "wp-cli",
"command": "wp plugin install plugin-toggle kadence-blocks --activate"
"command": "wp plugin activate plugin-toggle kadence-blocks"
}
]
}

View File

@@ -21,6 +21,6 @@
</style>
</head>
<body>
<iframe src="https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/main/playground/blueprint.json&_t=1" title="WordPress Playground Single Site Environment"></iframe>
<iframe src="https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/main/playground/blueprint.json&_t=2" title="WordPress Playground Single Site Environment"></iframe>
</body>
</html>

View File

@@ -19,9 +19,23 @@
"step": "wp-cli",
"command": "wp site create --slug=testsite"
},
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "plugin-toggle"
}
},
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "kadence-blocks"
}
},
{
"step": "wp-cli",
"command": "wp plugin install plugin-toggle kadence-blocks --activate-network"
"command": "wp plugin activate plugin-toggle kadence-blocks --network"
}
]
}

View File

@@ -21,6 +21,6 @@
</style>
</head>
<body>
<iframe src="https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/main/playground/multisite-blueprint.json&_t=1" title="WordPress Playground Multisite Environment"></iframe>
<iframe src="https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/main/playground/multisite-blueprint.json&_t=2" title="WordPress Playground Multisite Environment"></iframe>
</body>
</html>