From 9b4a1d0f4a59f7fc69d6a7e4da724c87c7695675 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Tue, 19 Sep 2023 16:00:47 -0700 Subject: [PATCH] Increase precision of `wp post generate` test (#425) --- features/post-generate.feature | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/features/post-generate.feature b/features/post-generate.feature index f146c921..361829df 100644 --- a/features/post-generate.feature +++ b/features/post-generate.feature @@ -52,17 +52,19 @@ Feature: Generate new WordPress posts Scenario: Generating post and outputting title and name When I run `wp post generate --count=3 --post_title=Howdy!` - And I run `wp post list --field=post_title --posts_per_page=3` + And I run `wp post list --field=post_title --posts_per_page=4 --orderby=ID --order=asc` Then STDOUT should contain: """ + Hello world! Howdy! Howdy! 2 Howdy! 3 """ And STDERR should be empty - And I run `wp post list --field=post_name --posts_per_page=3` + And I run `wp post list --field=post_name --posts_per_page=4 --orderby=ID --order=asc` Then STDOUT should contain: """ + hello-world howdy howdy-2 howdy-3