Skip to content

Commit e0f124b

Browse files
committed
fix: update test expectations to handle comment deletion order
1 parent 6dbf62d commit e0f124b

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

features/comment.feature

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,11 +489,20 @@ Feature: Manage WordPress comments
489489
"""
490490

491491
When I run `wp comment delete --all`
492-
Then STDOUT should be:
492+
Then STDOUT should contain:
493493
"""
494494
Success: Trashed comment 1.
495+
"""
496+
And STDOUT should contain:
497+
"""
495498
Success: Trashed comment {COMMENT_ID_1}.
499+
"""
500+
And STDOUT should contain:
501+
"""
496502
Success: Trashed comment {COMMENT_ID_2}.
503+
"""
504+
And STDOUT should contain:
505+
"""
497506
Success: Trashed comment {COMMENT_ID_3}.
498507
"""
499508

@@ -517,10 +526,16 @@ Feature: Manage WordPress comments
517526
"""
518527

519528
When I run `wp comment delete --all --force`
520-
Then STDOUT should be:
529+
Then STDOUT should contain:
521530
"""
522531
Success: Deleted comment 1.
532+
"""
533+
And STDOUT should contain:
534+
"""
523535
Success: Deleted comment {COMMENT_ID_1}.
536+
"""
537+
And STDOUT should contain:
538+
"""
524539
Success: Deleted comment {COMMENT_ID_2}.
525540
"""
526541

0 commit comments

Comments
 (0)