test:更新测试文件以适配新的项目结构

- 更新 auth_ui_test.tscn 中的场景引用路径
- 修复 enhanced_toast_test.gd 中的脚本路径引用
- 确保测试文件与重构后的项目结构保持一致
This commit is contained in:
2026-01-02 00:59:05 +08:00
parent f1a60137e1
commit d80feaa02b
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
[gd_scene load_steps=4 format=3 uid="uid://bvn8y7x2qkqxe"] [gd_scene load_steps=4 format=3 uid="uid://bvn8y7x2qkqxe"]
[ext_resource type="Script" uid="uid://ddb8v5c6aeqe7" path="res://tests/auth/auth_ui_test.gd" id="1_test_script"] [ext_resource type="Script" uid="uid://ddb8v5c6aeqe7" path="res://tests/auth/auth_ui_test.gd" id="1_test_script"]
[ext_resource type="PackedScene" uid="uid://by7m8snb4xllf" path="res://UI/Windows/LoginWindow.tscn" id="2_auth_scene"] [ext_resource type="PackedScene" uid="uid://by7m8snb4xllf" path="res://scenes/ui/LoginWindow.tscn" id="2_auth_scene"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_feedback_info"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_feedback_info"]
bg_color = Color(0.2, 0.5, 0.8, 0.9) bg_color = Color(0.2, 0.5, 0.8, 0.9)

View File

@@ -6,7 +6,7 @@ class_name EnhancedToastTest
# 测试新增的错误码处理 # 测试新增的错误码处理
func test_new_error_codes(): func test_new_error_codes():
var auth_scene = preload("res://UI/Windows/AuthScene.gd").new() var auth_scene = preload("res://scenes/ui/AuthScene.gd").new()
# 测试验证码登录失败 # 测试验证码登录失败
var verification_login_error = { var verification_login_error = {