diff --git a/.wiki/Playground-Testing.md b/.wiki/Playground-Testing.md index 24eca5c..02c5886 100644 --- a/.wiki/Playground-Testing.md +++ b/.wiki/Playground-Testing.md @@ -15,9 +15,9 @@ This document explains how to use WordPress Playground for testing our plugin. The easiest way to test our plugin with WordPress Playground is to use the online version: -1. Single site testing: [Open in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/blueprint.json&_t=8) +1. Single site testing: [Open in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/blueprint.json&_t=9) -2. Multisite testing: [Open in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/multisite-blueprint.json&_t=21) +2. Multisite testing: [Open in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/multisite-blueprint.json&_t=23) These links will automatically set up WordPress with multisite enabled, WP_DEBUG enabled, and both the Plugin Toggle and Hello Dolly plugins activated. @@ -111,8 +111,8 @@ We have two blueprints for testing: To run tests with WordPress Playground: 1. Open the appropriate WordPress Playground link: - - [Single site](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/blueprint.json&_t=8) - - [Multisite](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/multisite-blueprint.json&_t=21) + - [Single site](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/blueprint.json&_t=9) + - [Multisite](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/multisite-blueprint.json&_t=23) 2. Test the plugin manually in the browser @@ -182,8 +182,7 @@ await playground.run({ { step: 'enableMultisite' }, { step: 'wp-cli', command: 'wp site create --slug=testsite' }, { step: 'wp-cli', command: 'wp plugin install plugin-toggle --activate-network' }, - { step: 'installPlugin', pluginData: { resource: 'wordpress.org/plugins', slug: 'hello-dolly' } }, - { step: 'wp-cli', command: 'wp plugin activate hello-dolly --network' } + { step: 'wp-cli', command: 'wp plugin install hello-dolly' } ] }); @@ -218,8 +217,7 @@ describe('Plugin Tests', () => { { step: 'enableMultisite' }, { step: 'wp-cli', command: 'wp site create --slug=testsite' }, { step: 'wp-cli', command: 'wp plugin install plugin-toggle --activate-network' }, - { step: 'installPlugin', pluginData: { resource: 'wordpress.org/plugins', slug: 'hello-dolly' } }, - { step: 'wp-cli', command: 'wp plugin activate hello-dolly --network' } + { step: 'wp-cli', command: 'wp plugin install hello-dolly' } ] }); }); diff --git a/.wiki/Testing.md b/.wiki/Testing.md index b675d67..047679f 100644 --- a/.wiki/Testing.md +++ b/.wiki/Testing.md @@ -104,9 +104,9 @@ WordPress Playground runs WordPress entirely in the browser using WebAssembly. T The easiest way to test our plugin with WordPress Playground is to use the online version: -1. Single site testing: [Open in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/blueprint.json&_t=8) +1. Single site testing: [Open in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/blueprint.json&_t=9) -2. Multisite testing: [Open in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/multisite-blueprint.json&_t=21) +2. Multisite testing: [Open in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/multisite-blueprint.json&_t=23) These links will automatically set up WordPress with multisite enabled, WP_DEBUG enabled, and both the Plugin Toggle and Hello Dolly plugins activated. diff --git a/playground/blueprint.json b/playground/blueprint.json index aa11b89..fe4df61 100644 --- a/playground/blueprint.json +++ b/playground/blueprint.json @@ -22,10 +22,6 @@ "resource": "wordpress.org/plugins", "slug": "hello-dolly" } - }, - { - "step": "wp-cli", - "command": "wp plugin activate hello-dolly" } ] } diff --git a/playground/index.html b/playground/index.html index 25cb235..24d897e 100644 --- a/playground/index.html +++ b/playground/index.html @@ -20,6 +20,6 @@ - + diff --git a/playground/multisite-blueprint.json b/playground/multisite-blueprint.json index 0ecce88..cde9d03 100644 --- a/playground/multisite-blueprint.json +++ b/playground/multisite-blueprint.json @@ -23,16 +23,9 @@ "step": "wp-cli", "command": "wp plugin install plugin-toggle --activate-network" }, - { - "step": "installPlugin", - "pluginData": { - "resource": "wordpress.org/plugins", - "slug": "hello-dolly" - } - }, { "step": "wp-cli", - "command": "wp plugin activate hello-dolly --network" + "command": "wp plugin install hello-dolly" } ] } diff --git a/playground/multisite.html b/playground/multisite.html index 2e6e022..e85b6b9 100644 --- a/playground/multisite.html +++ b/playground/multisite.html @@ -20,6 +20,6 @@ - + diff --git a/playground/test.html b/playground/test.html index 94dff9d..586149a 100644 --- a/playground/test.html +++ b/playground/test.html @@ -77,10 +77,6 @@ "resource": "wordpress.org/plugins", "slug": "hello-dolly" } - }, - { - "step": "wp-cli", - "command": "wp plugin activate hello-dolly" } ] }; @@ -111,16 +107,9 @@ "step": "wp-cli", "command": "wp plugin install plugin-toggle --activate-network" }, - { - "step": "installPlugin", - "pluginData": { - "resource": "wordpress.org/plugins", - "slug": "hello-dolly" - } - }, { "step": "wp-cli", - "command": "wp plugin activate hello-dolly --network" + "command": "wp plugin install hello-dolly" } ] };