From 189622910de84801967bbf12beed0c7ba84a4aa3 Mon Sep 17 00:00:00 2001 From: Nilambar Sharma Date: Fri, 19 Apr 2024 13:21:28 +0545 Subject: [PATCH 1/2] Use TwentyTwelve theme in menu location test --- features/menu-location.feature | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/features/menu-location.feature b/features/menu-location.feature index 74c0155d9..81cc42094 100644 --- a/features/menu-location.feature +++ b/features/menu-location.feature @@ -2,11 +2,10 @@ Feature: Manage WordPress menu locations Background: Given a WP install + And I try `wp theme install twentytwelve --force --activate` Scenario: Assign / remove location from a menu - - When I run `wp theme install p2 --activate` - And I run `wp menu location list` + When I run `wp menu location list` Then STDOUT should be a table containing rows: | location | description | | primary | Primary Menu | From b4906a7fd4dbdd802644bf911811420a0cdbeff0 Mon Sep 17 00:00:00 2001 From: Nilambar Sharma Date: Thu, 25 Apr 2024 22:44:05 +0545 Subject: [PATCH 2/2] Use run instead on try in menu location feature test --- features/menu-location.feature | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/features/menu-location.feature b/features/menu-location.feature index 81cc42094..1568eafd7 100644 --- a/features/menu-location.feature +++ b/features/menu-location.feature @@ -2,7 +2,8 @@ Feature: Manage WordPress menu locations Background: Given a WP install - And I try `wp theme install twentytwelve --force --activate` + And I run `wp theme delete --all --force` + And I run `wp theme install twentytwelve --activate` Scenario: Assign / remove location from a menu When I run `wp menu location list`