Repository navigation
feat: add mobile sidebar toggle functionality in file manager tests - #799
Conversation
There was a problem hiding this comment.
Important
The new toggle opens the mobile sidebar but never dismisses it, so the test still fails on mobile-chrome and mobile-safari at the next step. Details inline.
Approach: right idea — open the collapsed mobile sidebar before asserting its links — but incomplete, because the mobile sidebar is a modal Sheet that has to be closed before the test touches <main> again.
Reviewed changes — the single commit a0d7c48c touching apps/e2e/tests/files/file-manager.spec.ts:
- Mobile sidebar toggle — detects a
<= 768viewport and clicks theToggle Sidebarbutton before asserting theFiles/Recent/Starred/Trashlinks, so the phone projects can see the collapsed sidebar's contents.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Approach: sound — the mobile sheet is opened only when the viewport is narrow, then dismissed with the same Escape + toBeHidden sequence docs.spec.ts already uses, so the rest of the test runs against an interactive <main>.
Reviewed changes — commit 74237e35 since the prior pullfrog review on a0d7c48c, touching apps/e2e/tests/files/file-manager.spec.ts:
- Sidebar dismissal — after the
Files/Recent/Starred/Trashlink loop, mobile runs pressEscapeand await theSidebardialog hidden, removing the modal overlay/inert state that blocked the subsequent right-click onTask attachments. isMobilehoisted — the viewport check is computed once, so the open and close steps share one condition.
The dialog name (Sidebar) and the Escape behaviour match the base-ui Sheet in apps/web/src/components/ui/sidebar.tsx and the established closeSidebarIfOpen helper, so the fix closes the loop on the reported failure.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

Summary
Fixes the
File manager › a project starts with its default folders, listed in the sidebar sectione2e test, which failed on bothmobile-chromeandmobile-safariin run 44574828689.Cause
On mobile viewports the sidebar is collapsed behind a toggle, so the
Files,Recent,StarredandTrashlinks are not in the DOM andtoBeVisible()timed out.Change
apps/e2e/tests/files/file-manager.spec.ts: when the viewport is 768px wide or less, click the "Toggle Sidebar" button before asserting the sidebar links. This is the same patternui/sidebar-navigation.spec.tsuses.Not addressed
Other failures in that run look timing-related and are out of scope here: the
board-performanceCPU-blocking budgets on chromium, a WebKit dialog-close animation inprojects/management.spec.ts, and asessions.spec.tstimeout on mobile-safari.Testing
Not yet run locally; needs the dedicated e2e docker stack on a mobile project.