Created by: Jiansen
There are 3 build-and-start tests in the current e2e.sh.
I placed repeated code in a function.
In the first test, if there is a reason why npm start -- --smoke-test should run before npm run build, I will extract npm start -- --smoke-test out of function build_check.