From 6ed263aa2b59e254b7a83fb47c7d6bcc93e1c4df Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Mon, 2 Nov 2026 04:04:00 +0100 Subject: [PATCH] Run setup commands in a single process in tests Co-Authored-By: Claude Opus 5.5 --- features/widget.feature | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/features/widget.feature b/features/widget.feature index 121c697c..1d368c4d 100644 --- a/features/widget.feature +++ b/features/widget.feature @@ -9,13 +9,15 @@ Feature: Manage widgets in WordPress sidebar """ 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