canola.nvim/spec
Barrett Ruth fc15d14bdb
fix(test): resolve busted migration test isolation issues
Problem: Two issues introduced during the plenary-to-busted migration
(6be0148). First, altbuf_spec waited for two BufEnter events but
oil:// → file resolution only fires one async BufEnter (the synchronous
one from vim.cmd.edit fires before wait_for_autocmd is registered).
Second, reset_editor kept the first window which could be a preview
window with stale oil_preview/oil_source_win state, causing
close_preview_window_if_not_in_oil to close the wrong window in
subsequent tests.

Solution: Wait for a single BufEnter in the altbuf test. Replace the
window-keeping logic in reset_editor with vim.cmd.new() +
vim.cmd.only() to guarantee a fresh window with no inherited state.
This also fixes the preview_spec.lua:30 timeout which had the same
root cause. 114/114 tests pass.
2026-02-22 12:13:43 -05:00
..
altbuf_spec.lua fix(test): resolve busted migration test isolation issues 2026-02-22 12:13:43 -05:00
close_spec.lua build: migrate test framework from plenary to busted 2026-02-22 00:26:54 -05:00
config_spec.lua build: migrate test framework from plenary to busted 2026-02-22 00:26:54 -05:00
files_spec.lua build: migrate test framework from plenary to busted 2026-02-22 00:26:54 -05:00
manual_progress.lua build: migrate test framework from plenary to busted 2026-02-22 00:26:54 -05:00
minimal_init.lua fix(ci): set ft plugin indent 2026-02-22 00:32:41 -05:00
move_rename_spec.lua build: migrate test framework from plenary to busted 2026-02-22 00:26:54 -05:00
mutator_spec.lua build: migrate test framework from plenary to busted 2026-02-22 00:26:54 -05:00
parser_spec.lua build: migrate test framework from plenary to busted 2026-02-22 00:26:54 -05:00
path_spec.lua build: migrate test framework from plenary to busted 2026-02-22 00:26:54 -05:00
preview_spec.lua build: migrate test framework from plenary to busted 2026-02-22 00:26:54 -05:00
regression_spec.lua build: migrate test framework from plenary to busted 2026-02-22 00:26:54 -05:00
select_spec.lua build: migrate test framework from plenary to busted 2026-02-22 00:26:54 -05:00
test_util.lua fix(test): resolve busted migration test isolation issues 2026-02-22 12:13:43 -05:00
tmpdir.lua build: migrate test framework from plenary to busted 2026-02-22 00:26:54 -05:00
trash_spec.lua build: migrate test framework from plenary to busted 2026-02-22 00:26:54 -05:00
url_spec.lua build: migrate test framework from plenary to busted 2026-02-22 00:26:54 -05:00
util_spec.lua build: migrate test framework from plenary to busted 2026-02-22 00:26:54 -05:00
win_options_spec.lua build: migrate test framework from plenary to busted 2026-02-22 00:26:54 -05:00