@@ -13,7 +13,7 @@ describe('plain infoviews', function()
1313 it (
1414 ' shows goals accomplished on the first line of a solved goal' ,
1515 helpers .clean_buffer ([[ example : 37 = 37 := by rfl]] , function ()
16- helpers .move_cursor { to = { 1 , 26 } }
16+ helpers .search ' rfl '
1717 assert .infoview_contents .are ' Goals accomplished 🎉'
1818 end )
1919 )
@@ -28,7 +28,7 @@ describe('plain infoviews', function()
2828 · sorry
2929 ]] ,
3030 function ()
31- helpers .move_cursor { to = { 2 , 3 } }
31+ helpers .search ' ases n '
3232 assert .infoview_contents .are [[
3333 ▼ 2 goals
3434 case zero
@@ -367,7 +367,7 @@ describe('plain infoviews', function()
367367 #knownWidget
368368 ]] ,
369369 function ()
370- helpers .move_cursor { to = { 20 , 2 } }
370+ helpers .search ' ^#knownWidget '
371371 assert .infoview_contents .are [[
372372 ▼ 20:1-20:13: information:
373373 This will be in the hover.
@@ -395,7 +395,7 @@ describe('plain infoviews', function()
395395 #unknownWidget
396396 ]] ,
397397 function ()
398- helpers .move_cursor { to = { 13 , 2 } }
398+ helpers .search ' ^#unknownWidget '
399399 assert .infoview_contents .are [[
400400 ▼ 13:1-13:15: information:
401401 You're gonna see this alternate text.
0 commit comments