diff --git a/src/Command/ProjectCommands.php b/src/Command/ProjectCommands.php index c811863..1d1ba70 100644 --- a/src/Command/ProjectCommands.php +++ b/src/Command/ProjectCommands.php @@ -47,7 +47,7 @@ public function projectTestCypress(array $args) // Clean up environment. $this->deleteTestUsers(); - + return $result; } @@ -99,6 +99,14 @@ protected function installNpmDependencies(): void if ($result->getExitCode() !== 0) { throw new \RuntimeException('Failed to install test dependencies'); } + + $this->io()->say('Verifying Cypress...'); + $verify = $this->taskExec('CYPRESS_baseUrl="http://$DKTL_PROXY_DOMAIN" npx cypress verify') + ->dir(self::TESTS_DIR) + ->run(); + if ($verify && $verify->getExitCode() !== 0) { + throw new \RuntimeException('Failed to verify cypress'); + } } /**