From 3d663a353eaec58cbbf5b23a95d9fc27c00b81e6 Mon Sep 17 00:00:00 2001 From: Natalia-Hristova Date: Mon, 9 Jul 2018 10:53:53 +0300 Subject: [PATCH 1/2] Update verification --- core/tns/tns_verifications.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/tns/tns_verifications.py b/core/tns/tns_verifications.py index 57a126ee..7c4c59ef 100644 --- a/core/tns/tns_verifications.py +++ b/core/tns/tns_verifications.py @@ -150,7 +150,8 @@ def platform_added(app_name, platform=Platform.NONE, output=None): # Verify console output is correct if output is not None: assert 'Copying template files...' in output - assert 'Project successfully created.' in output + assert 'Platform {0} successfully added.'.format(platform) in output + assert 'Project successfully created.' not in output # This is to handle test for app with space. # In this case we put app name inside ''. From bd8176ba6e1e308c98a6b377c96f8b365d2a079a Mon Sep 17 00:00:00 2001 From: Natalia-Hristova Date: Mon, 9 Jul 2018 12:46:41 +0300 Subject: [PATCH 2/2] fix: verification --- core/tns/tns_verifications.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/tns/tns_verifications.py b/core/tns/tns_verifications.py index 7c4c59ef..e8789a04 100644 --- a/core/tns/tns_verifications.py +++ b/core/tns/tns_verifications.py @@ -150,7 +150,10 @@ def platform_added(app_name, platform=Platform.NONE, output=None): # Verify console output is correct if output is not None: assert 'Copying template files...' in output - assert 'Platform {0} successfully added.'.format(platform) in output + if platform is Platform.ANDROID: + assert 'Platform android successfully added' in output + if platform is Platform.IOS: + assert 'Platform ios successfully added.' in output assert 'Project successfully created.' not in output # This is to handle test for app with space.