Skip to content

Commit fa1427a

Browse files
committed
test(web): terminal edge autoscroll test checks the selection reaches the last row
1 parent b1f5933 commit fa1427a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎apps/web/src/terminal/ghostty/surface.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@ describe("GhosttyTerminalSurface visibility", () => {
626626
expect(surface.isAtBottom()).toBe(true);
627627
expect(harness.renderedSnapshot.rowData[0]?.text).toBe(latest);
628628
expect(surface.getSelection()).not.toBe("");
629+
expect(surface.getSelectionPosition()?.end.y).toBe(39);
629630
});
630631

631632
it("pastes the terminal selection, and only that, on a Linux middle click", async () => {

0 commit comments

Comments
 (0)