The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import { expect } from "e2e"; |
| 2 | |
| 3 | import { |
| 4 | clickAt, |
| 5 | findHittableRow, |
| 6 | openFileSuggestionsUnderTallDraft, |
| 7 | openThreadWithManyFiles, |
| 8 | wheelSuggestions, |
| 9 | } from "./composer-menu.ts"; |
| 10 | import { test, WEB } from "./t3.ts"; |
| 11 | |
| 12 | test( |
| 13 | "In a short window, file suggestions wheel down to a last file the pointer can pick", |
| 14 | WEB, |
| 15 | async ({ t3, app, browser, screen }) => { |
| 16 | await browser.setViewport({ width: 375, height: 500 }); |
| 17 | await openThreadWithManyFiles(t3); |
| 18 | await openFileSuggestionsUnderTallDraft(browser, screen); |
| 19 | |
| 20 | await wheelSuggestions(browser, "down"); |
| 21 | await app.screenshot("scrolled-to-bottom"); |
| 22 | const last = await findHittableRow(browser, "last-file"); |
| 23 | expect(last.label).toBe("README.md"); |
| 24 | expect(last.point).not.toBeNull(); |
| 25 | |
| 26 | await clickAt(browser, last.point!); |
| 27 | await expect(screen.getByRole("textbox")).toContainText("README.md"); |
| 28 | }, |
| 29 | ); |