* refactor: add untility for waiting until condition completed
* test: cli
* test: separate config of generate and build in cli test
* test: increase timeout of cli test slightly
* refactor: move waitUntil to test utils
* fix: use waitUntil in test utils