File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ Given the output of the last command should be empty
6666Given /^run the command "(?P<command>(?:[^"]|\\ ")*)" with result code (\d +)$/
6767Given /^run the bash command "(?P<command>(?:[^"]|\\ ")*)" with result code (\d +)$/
6868Given create an environment :name with value :value to be used by occ command
69+ Given /^wait for ([0-9]+) (second|seconds)$/
6970` ` `
7071
7172# # Tips
Original file line number Diff line number Diff line change @@ -258,3 +258,6 @@ Feature: Test this extension
258258 """
259259 I found the environment variable OC_PASS with value 123456
260260 """
261+
262+ Scenario : Wait for seconds
263+ When wait for 1 seconds
Original file line number Diff line number Diff line change @@ -544,6 +544,11 @@ public static function createAnEnvironmentWithValueToBeUsedByOccCommand(string $
544544 self ::$ environments [$ name ] = $ value ;
545545 }
546546
547+ #[Given('/^wait for ([0-9]+) (second|seconds)$/ ' )]
548+ public function waitForXSecond (int $ seconds ): void {
549+ sleep ($ seconds );
550+ }
551+
547552 #[AfterScenario()]
548553 public function tearDown (): void {
549554 self ::$ environments = [];
You can’t perform that action at this time.
0 commit comments