Test suite: lost key presses
See #19237 for an analysis of the code that's involved here.
On #15460 (closed), we experienced some lost key presses and @anonym fine-tuned some parameters to fix this problem. Unfortunately, this was not enough:
Scenario: Use Unlock VeraCrypt Volumes to unlock a hidden VeraCrypt file container # features/veracrypt.feature:36 When I plug and mount a USB drive containing a hidden VeraCrypt file container # features/step_definitions/veracrypt.rb:130 05:35:37.189037387: Screen: waiting for GnomeApplicationsMenu.png 05:35:37.658755991: Screen: found GnomeApplicationsMenu.png at (60, 15) 05:35:37.659286927: Remote shell: calling as amnesia: xdotool key Super 05:35:38.014859512: Remote shell: call returned: [0, "", ""] 05:35:38.015076747: Screen: waiting for GnomeActivitiesOverview.png 05:35:40.606463595: Screen: found GnomeActivitiesOverview.png at (357, 68) 05:35:40.606779894: Keyboard: typing: U 05:35:42.670333728: Keyboard: typing: nlock VeraCrypt Volumes 05:35:46.167992012: Keyboard: pressing: ctrl+Return 05:35:46.231205920: Screen: waiting for UnlockVeraCryptVolumesAddButton.png 05:35:49.837501258: Screen: found UnlockVeraCryptVolumesAddButton.png at (732, 277) 05:35:49.849616341: Mouse: clicking left button at (732, 277) 05:35:49.963059831: Screen: waiting for Gtk3FileChooserDesktopButton.png 05:35:52.212197013: Screen: found Gtk3FileChooserDesktopButton.png at (53, 172) 05:35:52.212610472: Keyboard: typing: /tmp/tmp.VaNbMsQAtE/veracrypt 05:35:56.042655533: Keyboard: pressing: Return 05:35:56.105128533: Screen: waiting for VeraCryptUnlockDialog.png And I unlock and mount this VeraCrypt file container with Unlock VeraCrypt Volumes # features/step_definitions/veracrypt.rb:157 cannot find VeraCryptUnlockDialog.png on the screen (FindFailed) ./features/support/helpers/screen.rb:137:in `rescue in wait' ./features/support/helpers/screen.rb:131:in `wait' ./features/step_definitions/veracrypt.rb:169:in `/^I unlock and mount this VeraCrypt (volume|file container) with Unlock VeraCrypt Volumes$/' features/veracrypt.feature:38:in `And I unlock and mount this VeraCrypt file container with Unlock VeraCrypt Volumes'
05_36_09_Use_Unlock_VeraCrypt_Volumes_to_unlock_a_hidden_VeraCrypt_file_container.mkv
Edited by intrigeri