From 464052f58568f620b47bd49bd47ca070fa0c6969 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Fri, 30 Oct 2026 20:44:08 +0100 Subject: [PATCH] Test wp-cli/wp-cli-tests#400 Co-Authored-By: Claude Opus 5.5 --- composer.json | 2 +- features/widget.feature | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index c07c5a89..62296d30 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ }, "require-dev": { "wp-cli/extension-command": "^1.2 || ^2 || ^3", - "wp-cli/wp-cli-tests": "^5" + "wp-cli/wp-cli-tests": "dev-setup-commands-step as 5.3.99" }, "config": { "process-timeout": 7200, diff --git a/features/widget.feature b/features/widget.feature index ff19b073..011fc617 100644 --- a/features/widget.feature +++ b/features/widget.feature @@ -6,13 +6,15 @@ Feature: Manage widgets in WordPress sidebar And I run `wp theme install twentytwelve --activate` And I try `wp widget reset --all` And I try `wp widget delete wp_inactive_widgets $(wp widget list wp_inactive_widgets --format=ids)` - And I run `wp widget add text sidebar-1 --title="Text 1"` - And I run `wp widget add archives sidebar-1 --title="Archives"` - And I run `wp widget add calendar sidebar-1 --title="Calendar"` - And I run `wp widget add search sidebar-1 --title="Quick Search"` - And I run `wp widget add text sidebar-1 --title="Text 2"` - And I run `wp widget add search sidebar-2 --title="Quick Search"` - And I run `wp widget add text sidebar-3 --title="Text"` + And these setup commands: + | command | + | wp widget add text sidebar-1 --title="Text 1" | + | wp widget add archives sidebar-1 --title="Archives" | + | wp widget add calendar sidebar-1 --title="Calendar" | + | wp widget add search sidebar-1 --title="Quick Search" | + | wp widget add text sidebar-1 --title="Text 2" | + | wp widget add search sidebar-2 --title="Quick Search" | + | wp widget add text sidebar-3 --title="Text" | @skip-windows Scenario: Widget CRUD