From e1eb116b36542678ace9e63791cf2e73bcf03c68 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Thu, 10 Nov 2022 04:55:29 -0700 Subject: [PATCH 1/3] See if the installation process is failing --- features/plugin-update.feature | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/features/plugin-update.feature b/features/plugin-update.feature index 1cdc163df..4ac6085ba 100644 --- a/features/plugin-update.feature +++ b/features/plugin-update.feature @@ -4,7 +4,10 @@ Feature: Update WordPress plugins Given a WP install When I run `wp plugin install wordpress-importer --version=0.5 --force` - Then STDOUT should not be empty + Then STDOUT should include: + """ + Success: + """ When I run `wp plugin list --name=wordpress-importer --field=update_version` Then STDOUT should not be empty From 9c40f66792a907d8aa30ba1e728409a7b0b777d5 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Thu, 10 Nov 2022 05:05:15 -0700 Subject: [PATCH 2/3] Fix step definition --- features/plugin-update.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/plugin-update.feature b/features/plugin-update.feature index 4ac6085ba..ba7a275ac 100644 --- a/features/plugin-update.feature +++ b/features/plugin-update.feature @@ -4,7 +4,7 @@ Feature: Update WordPress plugins Given a WP install When I run `wp plugin install wordpress-importer --version=0.5 --force` - Then STDOUT should include: + Then STDOUT should contain: """ Success: """ From 72cec3ea837dd9a384c1624f6386387c4828e9dd Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Thu, 10 Nov 2022 05:25:38 -0700 Subject: [PATCH 3/3] Let's see what this output actually is --- features/plugin-update.feature | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/features/plugin-update.feature b/features/plugin-update.feature index ba7a275ac..5a1e31c9e 100644 --- a/features/plugin-update.feature +++ b/features/plugin-update.feature @@ -10,7 +10,10 @@ Feature: Update WordPress plugins """ When I run `wp plugin list --name=wordpress-importer --field=update_version` - Then STDOUT should not be empty + Then STDOUT should be: + """ + 1234 + """ And save STDOUT as {UPDATE_VERSION} When I run `wp plugin list`