Skip to content

Commit b409fd1

Browse files
committed
test(pick): adjust builtin.help screenshot tests to work on Nightly
1 parent f82197d commit b409fd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_pick.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3350,7 +3350,7 @@ T['builtin.help()']['handles consecutive applications'] = function()
33503350
set_picker_query({ ':helpg' })
33513351
type_keys('<CR>')
33523352

3353-
child.expect_screenshot({ ignore_attr = child.fn.has('nvim-0.12') == 0 })
3353+
child.expect_screenshot({ ignore_attr = child.fn.has('nvim-0.12') == 0, ignore_text = { 13 } })
33543354
end
33553355

33563356
T['builtin.help()']['works with `builtin.resume()`'] = function()
@@ -3359,15 +3359,15 @@ T['builtin.help()']['works with `builtin.resume()`'] = function()
33593359
type_keys('<CR>')
33603360
sleep(small_time)
33613361
local ignore_attr = child.fn.has('nvim-0.12') == 0
3362-
child.expect_screenshot({ ignore_attr = ignore_attr })
3362+
child.expect_screenshot({ ignore_attr = ignore_attr, ignore_text = { 13 } })
33633363

33643364
child.cmd('close')
33653365
eq(#child.api.nvim_list_wins(), 1)
33663366

33673367
child.lua_notify('MiniPick.builtin.resume()')
33683368
type_keys('<CR>')
33693369
sleep(small_time)
3370-
child.expect_screenshot({ ignore_attr = ignore_attr })
3370+
child.expect_screenshot({ ignore_attr = ignore_attr, ignore_text = { 13 } })
33713371
end
33723372

33733373
T['builtin.help()']['respects `opts`'] = function()

0 commit comments

Comments
 (0)