@@ -22,7 +22,7 @@ T["suggestion()"]["suggestion works"] = function()
22
22
child .type_keys (" i123" , " <Esc>" , " o456" , " <Esc>" , " o7" )
23
23
child .wait_for_suggestion ()
24
24
25
- reference_screenshot (child .get_screenshot (), nil , { ignore_lines = { 9 , 10 } })
25
+ reference_screenshot (child .get_screenshot (), nil , { ignore_text = { 9 , 10 }, ignore_attr = { 9 , 10 } })
26
26
end
27
27
28
28
T [" suggestion()" ][" auto_trigger is false, will not show ghost test" ] = function ()
@@ -32,7 +32,7 @@ T["suggestion()"]["auto_trigger is false, will not show ghost test"] = function(
32
32
vim .loop .sleep (3000 )
33
33
child .lua (" vim.wait(0)" )
34
34
35
- reference_screenshot (child .get_screenshot (), nil , { ignore_lines = { 9 , 10 } })
35
+ reference_screenshot (child .get_screenshot (), nil , { ignore_text = { 9 , 10 }, ignore_attr = { 9 , 10 } })
36
36
end
37
37
38
38
T [" suggestion()" ][" accept keymap to trigger sugestion" ] = function ()
@@ -42,7 +42,7 @@ T["suggestion()"]["accept keymap to trigger sugestion"] = function()
42
42
child .type_keys (" i123" , " <Esc>" , " o456" , " <Esc>" , " o7" , " <Tab>" )
43
43
child .wait_for_suggestion ()
44
44
45
- reference_screenshot (child .get_screenshot (), nil , { ignore_lines = { 9 , 10 } })
45
+ reference_screenshot (child .get_screenshot (), nil , { ignore_text = { 9 , 10 }, ignore_attr = { 9 , 10 } })
46
46
end
47
47
48
48
T [" suggestion()" ][" accept keymap, no suggestion, execute normal keystroke" ] = function ()
@@ -53,7 +53,7 @@ T["suggestion()"]["accept keymap, no suggestion, execute normal keystroke"] = fu
53
53
child .configure_copilot ()
54
54
child .type_keys (" i123" , " <Esc>" , " o456" , " <Esc>" , " o7" , " <Tab>" )
55
55
56
- reference_screenshot (child .get_screenshot (), nil , { ignore_lines = { 9 , 10 } })
56
+ reference_screenshot (child .get_screenshot (), nil , { ignore_text = { 9 , 10 }, ignore_attr = { 9 , 10 } })
57
57
end
58
58
59
59
T [" suggestion()" ][" accept_word, 1 word, works" ] = function ()
@@ -64,7 +64,7 @@ T["suggestion()"]["accept_word, 1 word, works"] = function()
64
64
child .wait_for_suggestion ()
65
65
child .type_keys (" <C-e>" , " <Esc>" )
66
66
67
- reference_screenshot (child .get_screenshot (), nil , { ignore_lines = { 9 , 10 } })
67
+ reference_screenshot (child .get_screenshot (), nil , { ignore_text = { 9 , 10 }, ignore_attr = { 9 , 10 } })
68
68
end
69
69
70
70
T [" suggestion()" ][" accept_word, 3 words, works" ] = function ()
@@ -75,7 +75,7 @@ T["suggestion()"]["accept_word, 3 words, works"] = function()
75
75
child .wait_for_suggestion ()
76
76
child .type_keys (" <C-e>" , " <C-e>" , " <C-e>" , " <Esc>" )
77
77
78
- reference_screenshot (child .get_screenshot (), nil , { ignore_lines = { 9 , 10 } })
78
+ reference_screenshot (child .get_screenshot (), nil , { ignore_text = { 9 , 10 }, ignore_attr = { 9 , 10 } })
79
79
end
80
80
81
81
-- - accept_word, 1 word then next
@@ -91,7 +91,7 @@ T["suggestion()"]["accept_word, 1 word, then dismiss"] = function()
91
91
child .wait_for_suggestion ()
92
92
child .type_keys (" <C-e>" , " <Tab>" )
93
93
94
- reference_screenshot (child .get_screenshot (), nil , { ignore_lines = { 9 , 10 } })
94
+ reference_screenshot (child .get_screenshot (), nil , { ignore_text = { 9 , 10 }, ignore_attr = { 9 , 10 } })
95
95
end
96
96
97
97
T [" suggestion()" ][" accept_word, 1 word, then accept" ] = function ()
@@ -104,7 +104,7 @@ T["suggestion()"]["accept_word, 1 word, then accept"] = function()
104
104
child .wait_for_suggestion ()
105
105
child .type_keys (" <C-e>" , " <Tab>" )
106
106
107
- reference_screenshot (child .get_screenshot (), nil , { ignore_lines = { 9 , 10 } })
107
+ reference_screenshot (child .get_screenshot (), nil , { ignore_text = { 9 , 10 }, ignore_attr = { 9 , 10 } })
108
108
end
109
109
110
110
T [" suggestion()" ][" accept_line, 1 line, works" ] = function ()
@@ -117,7 +117,7 @@ T["suggestion()"]["accept_line, 1 line, works"] = function()
117
117
child .wait_for_suggestion ()
118
118
child .type_keys (" <C-e>" , " <Esc>" )
119
119
120
- reference_screenshot (child .get_screenshot (), nil , { ignore_lines = { 29 , 30 } })
120
+ reference_screenshot (child .get_screenshot (), nil , { ignore_text = { 29 , 30 }, ignore_attr = { 29 , 30 } })
121
121
end
122
122
123
123
T [" suggestion()" ][" accept_line, 3 lines, works" ] = function ()
@@ -130,7 +130,7 @@ T["suggestion()"]["accept_line, 3 lines, works"] = function()
130
130
child .wait_for_suggestion ()
131
131
child .type_keys (" <C-e>" , " <C-e>" , " <C-e>" , " <Esc>" )
132
132
133
- reference_screenshot (child .get_screenshot (), nil , { ignore_lines = { 49 , 50 } })
133
+ reference_screenshot (child .get_screenshot (), nil , { ignore_text = { 49 , 50 }, ignore_attr = { 49 , 50 } })
134
134
end
135
135
136
136
-- - accept_line, 1 line then next
@@ -148,7 +148,7 @@ T["suggestion()"]["accept_line, 1 line, then dismiss"] = function()
148
148
child .wait_for_suggestion ()
149
149
child .type_keys (" <C-e>" , " <Tab>" )
150
150
151
- reference_screenshot (child .get_screenshot (), nil , { ignore_lines = { 29 , 30 } })
151
+ reference_screenshot (child .get_screenshot (), nil , { ignore_text = { 29 , 30 }, ignore_attr = { 29 , 30 } })
152
152
end
153
153
154
154
T [" suggestion()" ][" accept_line, 1 line, then accept" ] = function ()
@@ -164,7 +164,7 @@ T["suggestion()"]["accept_line, 1 line, then accept"] = function()
164
164
child .wait_for_suggestion ()
165
165
child .type_keys (" <C-e>" , " <Tab>" )
166
166
167
- reference_screenshot (child .get_screenshot (), nil , { ignore_lines = { 49 , 50 } })
167
+ reference_screenshot (child .get_screenshot (), nil , { ignore_text = { 49 , 50 }, ignore_attr = { 49 , 50 } })
168
168
end
169
169
170
170
return T
0 commit comments