Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kosorin committed Oct 19, 2024
1 parent cdee6b8 commit 41c46af
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test-awesomerc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,12 @@ local steps = {
if count == 2 then
assert(hotkeys_popup ~= nil)
assert(hotkeys_popup.visible)
-- Should disappear on anykey
root.fake_input("key_press", "Super_L")
-- Should disappear on escape (awful.prompt)
root.fake_input("key_press", "Escape")

elseif count == 3 then
assert(not hotkeys_popup.visible)
root.fake_input("key_release", "Super_L")
root.fake_input("key_release", "Escape")
test_context.hotkeys01_clients_before = #client.get()
-- imitate fake client with name "vim"
-- so hotkeys widget will offer vim hotkeys:
Expand All @@ -314,11 +314,11 @@ local steps = {
assert(visible_hotkeys_widget ~= nil)
assert(visible_hotkeys_widget.current_page == 2)
root.fake_input("key_release", "Next")
-- Should disappear on anykey
root.fake_input("key_press", "Super_L")
-- Should disappear on escape (awful.prompt)
root.fake_input("key_press", "Escape")
elseif (count - test_context.hotkeys01_count_vim) == 3 then
assert(not visible_hotkeys_widget)
root.fake_input("key_release", "Super_L")
root.fake_input("key_release", "Escape")
return true
end
end
Expand Down

0 comments on commit 41c46af

Please sign in to comment.