test: fix flaky before-input-event test (#16027)
test: fix flaky before-input-event test (#16027)


gerhardberger/electron,electron/electron,seanchas116/electron,gerhardberger/electron,bpasero/electron,the-ress/electron,electron/electron,bpasero/electron,the-ress/electron,gerhardberger/electron,seanchas116/electron,bpasero/electron,seanchas116/electron,electron/electron,electron/electron,gerhardberger/electron,gerhardberger/electron,seanchas116/electron,seanchas116/electron,bpasero/electron,bpasero/electron,bpasero/electron,the-ress/electron,the-ress/electron,bpasero/electron,electron/electron,seanchas116/electron,the-ress/electron,the-ress/electron,electron/electron,electron/electron,gerhardberger/electron,gerhardberger/electron,the-ress/electron