Repository navigation
test: window splits - #7
Conversation
There was a problem hiding this comment.
Pull request overview
Adds coverage for how the Zen side buffers behave when creating/closing window splits, expanding the existing MiniTest-based test suite around opening/closing/resizing behavior.
Changes:
- Add new
tests/test_splits.luacovering:vsplitinteractions with Zen side buffers (close on open, reopen on close). - Add a
:vsplit+ resize-below-min-width scenario to ensure side buffers do not reopen when the editor is too narrow. - Introduce an
hsplittest set (currently with a placeholder test).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| T["hsplit"] = MiniTest.new_set({}) | ||
|
|
||
| T["hsplit"]["opening does not close the side buffers"] = function() | ||
| -- TODO |
There was a problem hiding this comment.
This test case is currently a placeholder (no setup/actions/assertions), so it will always pass without validating the intended hsplit behavior. Either implement the assertions for how hsplit should interact with zen side buffers, or remove the empty test until the behavior is ready to be tested.
| -- TODO | |
| child.cmd("edit test.lua") | |
| child.cmd("split test2.lua") | |
| Helpers.expect.layout(child, { | |
| type = "row", | |
| children = { | |
| { type = "leaf", filetype = "zen-left", buftype = "nofile", width = 46, height = 50 }, | |
| { | |
| type = "col", | |
| children = { | |
| { type = "leaf", filetype = "lua", buftype = "", width = 146, height = 25 }, | |
| { type = "leaf", filetype = "lua", buftype = "", width = 146, height = 24 }, | |
| }, | |
| }, | |
| { type = "leaf", filetype = "zen-right", buftype = "nofile", width = 46, height = 50 }, | |
| }, | |
| }) |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.