diff --git a/src/src/Commands/CustomTests/RunE2ECommand.php b/src/src/Commands/CustomTests/RunE2ECommand.php index 997ef87d..1f794eff 100644 --- a/src/src/Commands/CustomTests/RunE2ECommand.php +++ b/src/src/Commands/CustomTests/RunE2ECommand.php @@ -138,6 +138,18 @@ protected function execute( InputInterface $input, OutputInterface $output ): in } $woo_extension = sprintf( '%s:test:%s', $woo_extension, realpath( $test ) ); } + + $has_action = false; + foreach ( Extension::ACTIONS as $action ) { + if ( strpos( $woo_extension, ":$action" ) !== false ) { + $has_action = true; + break; + } + } + + if ( ! $has_action ) { + $woo_extension = "$woo_extension:test"; + } if ( $input->getOption( 'testing_theme' ) === 'true' ) { $env_up_options['--theme'][] = $woo_extension; } else {