@@ -46,6 +46,7 @@ Taskbar.fm is an Electron application that brings Windows-like taskbar functiona
4646If the TaskbarHelper process becomes unresponsive or causes UE errors:
4747
48481 . ** Check Code Signing Configuration** (CRITICAL):
49+
4950 - Open the Xcode project: ` mise run helper `
5051 - Navigate to: ** taskbar.helper target** → ** Signing & Capabilities** tab
5152 - Verify that a valid ** Signing Certificate** is selected
@@ -54,6 +55,7 @@ If the TaskbarHelper process becomes unresponsive or causes UE errors:
5455 - Recommended: Use "Sign to Run Locally" or a valid development certificate
5556
56572 . ** Verify Entitlements** :
58+
5759 - Check that ` taskbar.helper.entitlements ` exists and has proper permissions
5860 - Required entitlements: Screen Recording, Accessibility
5961
@@ -68,6 +70,55 @@ If the TaskbarHelper process becomes unresponsive or causes UE errors:
6870
6971- ` mise run install-app ` - Install built app to /Applications
7072
73+ ## Browser-Based UI Testing
74+
75+ ### Overview
76+
77+ 開発サーバー(` mise run dev ` )を起動すると、ブラウザから直接UIにアクセスしてテストできます。Electron APIのモックが自動的に注入され、実際のElectron環境と同じようにUIが動作します。
78+
79+ ### アクセス方法
80+
81+ 開発サーバー起動後、以下のURLにブラウザまたはPlaywright MCPでアクセス:
82+
83+ - ** メインタスクバー** : http://localhost:10234/
84+ - ** 設定画面** : http://localhost:10234/option.html
85+ - ** メニュー** : http://localhost:10234/menu.html
86+ - ** 全ウィンドウリスト** : http://localhost:10234/fullWindowList.html
87+
88+ ### モック機能
89+
90+ - ** 自動イベント発火** : ` Electron.send('windowReady') ` が呼ばれると、自動的にサンプルデータが送信されます
91+
92+ - ` process ` - サンプルウィンドウデータ(TextEdit, Chrome, VS Code, Terminal)
93+ - ` iconUpdate ` - アイコンデータ
94+ - ` displayInfo ` - ディスプレイ情報
95+ - ` updateOptions ` - オプション設定
96+
97+ - ** 開発者ヘルパー** : ブラウザコンソールから ` window.__mockHelpers ` を使用して手動でイベントを発火できます
98+
99+ ``` javascript
100+ // 例: ウィンドウデータを更新
101+ __mockHelpers .updateWindows ([... ])
102+
103+ // 例: イベントを手動発火
104+ __mockHelpers .emit (' process' , __mockHelpers .sampleWindows )
105+
106+ // 例: windowReadyを再トリガー
107+ __mockHelpers .triggerWindowReady ()
108+ ```
109+
110+ ### フィクスチャーのカスタマイズ
111+
112+ サンプルデータは ` src/renderer/src/mocks/sample-fixture.ts ` で定義されています。テストシナリオに合わせてカスタマイズ可能です。
113+
114+ ### Playwright MCP による自動テスト
115+
116+ Playwright MCPを使用して、ブラウザ上でのUI動作を自動的にテストできます。モックが自動注入されるため、実際のElectron環境なしでUIの動作確認が可能です。
117+
118+ ### 一時ファイルの保存先
119+
120+ ** 重要** : Playwright MCPで作業的にファイル(スクリーンショット、テストログなど)を作成する場合は、` .playwright-mcp/ ` ディレクトリを使用してください。このディレクトリは ` .gitignore ` に含まれており、リポジトリを汚しません。
121+
71122## Architecture
72123
73124### Main Process Structure
0 commit comments