Fix Hello Dolly plugin installation errors in WordPress Playground blueprints
This commit is contained in:
@@ -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:
|
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.
|
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:
|
To run tests with WordPress Playground:
|
||||||
|
|
||||||
1. Open the appropriate WordPress Playground link:
|
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)
|
- [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=21)
|
- [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
|
2. Test the plugin manually in the browser
|
||||||
|
|
||||||
@@ -182,8 +182,7 @@ await playground.run({
|
|||||||
{ step: 'enableMultisite' },
|
{ step: 'enableMultisite' },
|
||||||
{ step: 'wp-cli', command: 'wp site create --slug=testsite' },
|
{ step: 'wp-cli', command: 'wp site create --slug=testsite' },
|
||||||
{ step: 'wp-cli', command: 'wp plugin install plugin-toggle --activate-network' },
|
{ 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 install hello-dolly' }
|
||||||
{ step: 'wp-cli', command: 'wp plugin activate hello-dolly --network' }
|
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -218,8 +217,7 @@ describe('Plugin Tests', () => {
|
|||||||
{ step: 'enableMultisite' },
|
{ step: 'enableMultisite' },
|
||||||
{ step: 'wp-cli', command: 'wp site create --slug=testsite' },
|
{ step: 'wp-cli', command: 'wp site create --slug=testsite' },
|
||||||
{ step: 'wp-cli', command: 'wp plugin install plugin-toggle --activate-network' },
|
{ 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 install hello-dolly' }
|
||||||
{ step: 'wp-cli', command: 'wp plugin activate hello-dolly --network' }
|
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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:
|
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.
|
These links will automatically set up WordPress with multisite enabled, WP_DEBUG enabled, and both the Plugin Toggle and Hello Dolly plugins activated.
|
||||||
|
|
||||||
|
|||||||
@@ -22,10 +22,6 @@
|
|||||||
"resource": "wordpress.org/plugins",
|
"resource": "wordpress.org/plugins",
|
||||||
"slug": "hello-dolly"
|
"slug": "hello-dolly"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"step": "wp-cli",
|
|
||||||
"command": "wp plugin activate hello-dolly"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,6 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<iframe src="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"></iframe>
|
<iframe src="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"></iframe>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -23,16 +23,9 @@
|
|||||||
"step": "wp-cli",
|
"step": "wp-cli",
|
||||||
"command": "wp plugin install plugin-toggle --activate-network"
|
"command": "wp plugin install plugin-toggle --activate-network"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"step": "installPlugin",
|
|
||||||
"pluginData": {
|
|
||||||
"resource": "wordpress.org/plugins",
|
|
||||||
"slug": "hello-dolly"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"step": "wp-cli",
|
"step": "wp-cli",
|
||||||
"command": "wp plugin activate hello-dolly --network"
|
"command": "wp plugin install hello-dolly"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,6 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<iframe src="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=22"></iframe>
|
<iframe src="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"></iframe>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -77,10 +77,6 @@
|
|||||||
"resource": "wordpress.org/plugins",
|
"resource": "wordpress.org/plugins",
|
||||||
"slug": "hello-dolly"
|
"slug": "hello-dolly"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"step": "wp-cli",
|
|
||||||
"command": "wp plugin activate hello-dolly"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@@ -111,16 +107,9 @@
|
|||||||
"step": "wp-cli",
|
"step": "wp-cli",
|
||||||
"command": "wp plugin install plugin-toggle --activate-network"
|
"command": "wp plugin install plugin-toggle --activate-network"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"step": "installPlugin",
|
|
||||||
"pluginData": {
|
|
||||||
"resource": "wordpress.org/plugins",
|
|
||||||
"slug": "hello-dolly"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"step": "wp-cli",
|
"step": "wp-cli",
|
||||||
"command": "wp plugin activate hello-dolly --network"
|
"command": "wp plugin install hello-dolly"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user