lib/model: Introduce waitForState test utility (#5585)
lib/model: Introduce waitForState test utility (#5585)

* lib/model: Introduce waitForState test utility

* folder id as param to waitForState

imsodin/syncthing,xduugu/syncthing,xduugu/syncthing,wweich/syncthing,syncthing/syncthing,AudriusButkevicius/syncthing,syncthing/syncthing,xduugu/syncthing,xduugu/syncthing,syncthing/syncthing,syncthing/syncthing,wweich/syncthing,imsodin/syncthing,syncthing/syncthing,imsodin/syncthing,AudriusButkevicius/syncthing,AudriusButkevicius/syncthing,syncthing/syncthing,AudriusButkevicius/syncthing,wweich/syncthing,wweich/syncthing,imsodin/syncthing,imsodin/syncthing