more decoupling editor tests from App

This commit is contained in:
Kartik K. Agaram 2022-07-16 08:33:05 -07:00
parent a2b654b534
commit c26b377ab3
1 changed files with 1 additions and 1 deletions

View File

@ -535,7 +535,7 @@ function test_edit_with_shift_key_deletes_selection()
-- mimic precise keypresses for a capital letter
App.fake_key_press('lshift')
edit.keychord_pressed(Editor_state, 'd', 'd')
App.textinput('D')
edit.textinput(Editor_state, 'D')
edit.key_released(Editor_state, 'd')
App.fake_key_release('lshift')
-- selected text is deleted and replaced with the key