From 5f95ba762e3b36cb871cbf36de7449e963d71d51 Mon Sep 17 00:00:00 2001 From: marcusquinn <6428977+marcusquinn@users.noreply.github.com> Date: Mon, 21 Apr 2025 23:08:28 +0100 Subject: [PATCH] Use official WordPress Playground blueprint examples --- .wiki/Playground-Testing.md | 8 ++--- playground/blueprint.json | 9 ++++-- playground/index.html | 2 +- playground/multisite-blueprint.json | 47 ++++++----------------------- playground/multisite.html | 2 +- 5 files changed, 21 insertions(+), 47 deletions(-) diff --git a/.wiki/Playground-Testing.md b/.wiki/Playground-Testing.md index 34b4b49..d7cbfc6 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=3) +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=4) -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=3) +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=4) These links will automatically set up WordPress with our plugin installed and activated. @@ -31,8 +31,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=3) - - [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=3) + - [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=4) + - [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=4) 2. Test the plugin manually in the browser diff --git a/playground/blueprint.json b/playground/blueprint.json index f0c70e9..6c85a94 100644 --- a/playground/blueprint.json +++ b/playground/blueprint.json @@ -1,10 +1,13 @@ { "landingPage": "/wp-admin/", + "login": true, "steps": [ { - "step": "login", - "username": "admin", - "password": "password" + "step": "installPlugin", + "pluginData": { + "resource": "wordpress.org/plugins", + "slug": "coblocks" + } } ] } diff --git a/playground/index.html b/playground/index.html index 702bae1..93f64c0 100644 --- a/playground/index.html +++ b/playground/index.html @@ -20,6 +20,6 @@
- +