Commit aab46a4
fix: restore +New button (desktop only) and fix E2E tests (#155)
Fixes E2E tests that were broken by the code viewer PR (#154).
### Problem
The code viewer PR removed the `+ New` button and hid session name +
status dot on mobile, which broke E2E tests:
- Tests clicking `[data-testid="tab-new-btn"]` couldn't find it
- Mobile tests checking `[data-testid="status-dot"].connected` couldn't
find it
- Mobile test creating sessions via `button[title="New tab"]` failed
### Fix
- **Restored `+ New` button** with `desktopOnly` class — visible on
desktop (where E2E runs at 1280x720), hidden on mobile
- **Keep status dot visible** on all viewports — it's small and useful,
and mobile E2E tests check it
- **Session name hidden** on mobile only (not on desktop)
- **Fixed keybar E2E test**: mobile session-creation test now uses side
panel "`+ New Session`" button instead of the top bar button
### Verification
All 85 E2E tests pass locally:
```
85 passed (1.7m)
```
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 8c2169e commit aab46a4
3 files changed
Lines changed: 30 additions & 3 deletions
File tree
- src/frontend/src/components/TerminalApp
- test
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | 172 | | |
174 | 173 | | |
175 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
373 | 374 | | |
374 | 375 | | |
375 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
376 | 402 | | |
377 | 403 | | |
378 | 404 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
744 | | - | |
745 | | - | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
746 | 748 | | |
747 | 749 | | |
748 | 750 | | |
| |||
0 commit comments