添加LOTTERY_E2E环境变量来控制E2E测试相关功能, 包括绕过验证码、登录限制和钱包API URL验证, 同时更新composer.json以包含E2E专用的提供者和服务。
This commit is contained in:
@@ -52,7 +52,7 @@ final class AgentNodeService
|
||||
$password = (string) ($payload['password'] ?? '');
|
||||
if ($password === '') {
|
||||
if (app()->environment('testing')) {
|
||||
$password = 'TestPass1!';
|
||||
$password = '12345678';
|
||||
} else {
|
||||
throw ValidationException::withMessages([
|
||||
'password' => ['required'],
|
||||
@@ -179,7 +179,7 @@ final class AgentNodeService
|
||||
$password = (string) ($payload['password'] ?? '');
|
||||
if ($password === '') {
|
||||
if (app()->environment('testing')) {
|
||||
$password = 'TestPass1!';
|
||||
$password = '12345678';
|
||||
} else {
|
||||
throw ValidationException::withMessages([
|
||||
'password' => ['required'],
|
||||
|
||||
Reference in New Issue
Block a user