From b10309b9ac382d5908daec95820ac71b52906536 Mon Sep 17 00:00:00 2001 From: Nilambar Sharma Date: Wed, 2 Apr 2025 17:15:28 +0545 Subject: [PATCH] Fix Gherkin lint issues --- features/cron-event.feature | 2 +- features/cron.feature | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/features/cron-event.feature b/features/cron-event.feature index a3182345..48d01647 100644 --- a/features/cron-event.feature +++ b/features/cron-event.feature @@ -133,7 +133,7 @@ Feature: Manage WP Cron events """ Call to undefined function breakthings() """ - Then the {RUN_DIR}/server.log file should exist + And the {RUN_DIR}/server.log file should exist And the {RUN_DIR}/server.log file should contain: """ LOG A SHUTDOWN FROM ERROR diff --git a/features/cron.feature b/features/cron.feature index 8e093f42..e69e2e6f 100644 --- a/features/cron.feature +++ b/features/cron.feature @@ -75,7 +75,7 @@ Feature: Manage WP-Cron events and schedules Scenario: Scheduling, running, and deleting duplicate events When I run `wp cron event schedule wp_cli_test_event_5 '+20 minutes' --0=banana` - When I run `wp cron event schedule wp_cli_test_event_5 '+20 minutes' --0=bar` + And I run `wp cron event schedule wp_cli_test_event_5 '+20 minutes' --0=bar` Then STDOUT should not be empty When I run `wp cron event list --format=csv --fields=hook,recurrence,args` @@ -111,7 +111,7 @@ Feature: Manage WP-Cron events and schedules """ When I run `wp cron event schedule wp_cli_test_event_5 '+20 minutes' --0=banana` - When I run `wp cron event schedule wp_cli_test_event_5 '+20 minutes' --0=bar` + And I run `wp cron event schedule wp_cli_test_event_5 '+20 minutes' --0=bar` Then STDOUT should not be empty When I run `wp cron event list`