迁移功能菜单和每日状态事件绑定

This commit is contained in:
2026-04-25 03:53:29 +08:00
parent 3e525eaa36
commit ef471ec68b
3 changed files with 120 additions and 30 deletions
+11 -9
View File
@@ -290,18 +290,20 @@ class ChatControllerTest extends TestCase
$response = $this->actingAs($user)->get(route('chat.room', $room->id));
$response->assertOk();
$response->assertSee('toggleFeatureMenu(event)', false);
$response->assertSee('data-chat-feature-menu-toggle', false);
$response->assertSee('功能');
$response->assertSee('设个状态', false);
$response->assertSee('runFeatureShortcut(\'shop\')', false);
$response->assertSee('runFeatureShortcut(\'vip\')', false);
$response->assertSee('runFeatureShortcut(\'game\')', false);
$response->assertSee('runFeatureShortcut(\'avatar\')', false);
$response->assertSee('runFeatureShortcut(\'bank\')', false);
$response->assertSee('runFeatureShortcut(\'marriage\')', false);
$response->assertSee('runFeatureShortcut(\'friend\')', false);
$response->assertSee('runFeatureShortcut(\'settings\')', false);
$response->assertSee('data-chat-daily-status-open', false);
$response->assertSee('data-chat-feature-shortcut="shop"', false);
$response->assertSee('data-chat-feature-shortcut="vip"', false);
$response->assertSee('data-chat-feature-shortcut="game"', false);
$response->assertSee('data-chat-feature-shortcut="avatar"', false);
$response->assertSee('data-chat-feature-shortcut="bank"', false);
$response->assertSee('data-chat-feature-shortcut="marriage"', false);
$response->assertSee('data-chat-feature-shortcut="friend"', false);
$response->assertSee('data-chat-feature-shortcut="settings"', false);
$response->assertSee('本地清屏', false);
$response->assertDontSee('onclick="toggleFeatureMenu(event)"', false);
$response->assertDontSee('onclick="localClearScreen()"', false);
}