Issue #3143948 by MasatoTakada, yas: Refactor the duplicated condition in another if / elseif branch in CloudProjectTest::testLaunchProject()