TidGi-Desktop/features/stepDefinitions
lin onetwo e607e5f282 Add E2E test for window-restore blank-view bug + log markers
Two changes:

1. Log markers added to aid diagnosis and enable E2E verification:
   - [test-id-VIEW_SHOWN]             in ViewService.showView()
   - [test-id-REFRESH_ACTIVE_VIEW_START/DONE] in WorkspaceView.refreshActiveWorkspaceView()

2. New E2E feature: features/windowRestore.feature
   Scenario 1: 'Wiki WebContentsView is visible immediately after restoring hidden window'
     - hides main window (same path as close+runOnBackground)
     - triggers second-instance via app.emit('second-instance')
     - asserts [test-id-REFRESH_ACTIVE_VIEW_DONE] and [test-id-VIEW_SHOWN] log markers
     - asserts browser view is within visible window bounds
     - asserts wiki content is readable
   Scenario 2: 'Clicking already-active workspace icon re-shows the WebContentsView'
     - verifies the removed oldId !== newId guard: clicking current workspace must
       now call setActiveWorkspaceView which fires showView

   Two step definitions added to features/stepDefinitions/application.ts:
   - 'I hide the main window as if closing with runOnBackground'
     calls BrowserWindow.hide() directly in main process
   - 'I reopen the main window as second instance would'
     emits app 'second-instance' event in main process
2026-03-29 23:39:40 +08:00
..
agent.ts Fix/misc bug (#686) 2026-03-12 21:19:10 +08:00
application.ts Add E2E test for window-restore blank-view bug + log markers 2026-03-29 23:39:40 +08:00
browserView.ts Fix/misc bug2 (#689) 2026-03-24 18:28:38 +08:00
cleanup.ts Add mobile HTTP git sync tests & merge utilities 2026-02-24 16:50:08 +08:00
logging.ts Fix workspaceID case bug, esbuild outbase, autocomplete panel re-render, VIEW_LOADED handler, streaming status polling, and increase executeInBrowserView timeout for E2E stability. All 52 scenarios pass 2026-02-21 12:36:58 +08:00
menu.ts Feat/git chart (#651) 2025-11-08 15:04:34 +08:00
sync.ts Fix/misc bug1 (#688) 2026-03-23 02:48:46 +08:00
tidgiMiniWindow.ts Fix/misc bug (#686) 2026-03-12 21:19:10 +08:00
ui.ts Fix/misc bug (#686) 2026-03-12 21:19:10 +08:00
wiki.ts Fix/misc bug1 (#688) 2026-03-23 02:48:46 +08:00
window.ts Feat/allow watch fs change on git sync 2025-10-31 02:00:40 +08:00