EmulatedCommandBarTest: shorten timeout from 4s to 2s.
Overall this makes the test run in 32s instead of 52s.
Since that timeout is used by both the code and the test, a different value works.
Longer tests are run less often by developers, and take up a CI machine for longer, blocking other jobs.
Edited by David Faure