diff --git a/tests/cli/build/android_app_bundle_tests.py b/tests/cli/build/android_app_bundle_tests.py index ae96d0d6..9d4d0d02 100644 --- a/tests/cli/build/android_app_bundle_tests.py +++ b/tests/cli/build/android_app_bundle_tests.py @@ -65,13 +65,11 @@ def test_200_build_android_app_bundle(self): """Build app with android app bundle option. Verify the output(app.aab) and use bundletool to deploy on device""" path_to_aab = os.path.join(self.app_name, "platforms", "android", "app", "build", "outputs", - "bundle", "debug", "app.aab") + "bundle", "debug", "app-debug.aab") - Tns.build_android(self.app_path, aab=True, verify=False) - # There is an issue at the moment that the path is not shown in log. - # TODO: uncomment this when the issue is fixed - # assert "The build result is located at:" in result.output - # assert path_to_aab in result.output + result = Tns.build_android(self.app_path, aab=True, verify=False) + assert "The build result is located at:" in result.output + assert path_to_aab in result.output assert File.exists(path_to_aab) # Verify app can be deployed on emulator via bundletool @@ -95,7 +93,7 @@ def test_205_build_android_app_bundle_env_snapshot(self): # This test will not run on windows because env.snapshot option is not available on that OS path_to_aab = os.path.join(self.app_name, "platforms", "android", "app", "build", - "outputs", "bundle", "release", "app.aab") + "outputs", "bundle", "release", "app-release.aab") # Configure app with snapshot optimisations source = os.path.join('assets', 'abdoid-app-bundle', 'app.gradle') @@ -107,12 +105,10 @@ def test_205_build_android_app_bundle_env_snapshot(self): \nuseLibs: true,\nandroidNdkPath: \"$ANDROID_NDK_HOME\"""") # env.snapshot is applicable only in release build - Tns.build_android(self.app_path, aab=True, release=True, snapshot=True, - uglify=True, verify=False) - # There is an issue at the moment that the path is not shown in log. - # TODO: uncomment this when the issue is fixed - # assert "The build result is located at:" in result.output - # assert path_to_aab in result.output + result = Tns.build_android(self.app_path, aab=True, release=True, snapshot=True, + uglify=True, verify=False) + assert "The build result is located at:" in result.output + assert path_to_aab in result.output assert File.exists(path_to_aab) # Verify app can be deployed on emulator via bundletool