Skip to content

Commit ecb0479

Browse files
committed
chore: update the test to use NG
1 parent 70e7886 commit ecb0479

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tests/cli/run/tests/test_run_scope_package_only.py

+3-8
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from core.settings import Settings
88
from core.utils.npm import Npm
99
from data.changes import Changes
10-
from data.const import Colors
1110
from data.templates import Template
1211
from products.nativescript.run_type import RunType
1312
from products.nativescript.tns import Tns
@@ -17,12 +16,13 @@
1716
class TestRunWithScopePackageOnly(TnsRunTest):
1817
app_name = Settings.AppName.DEFAULT
1918
app_path = os.path.join(Settings.TEST_RUN_HOME, Settings.AppName.DEFAULT)
19+
2020
@classmethod
2121
def setUpClass(cls):
2222
TnsRunTest.setUpClass()
2323

2424
# Create app
25-
Tns.create(app_name=cls.app_name, template=Template.HELLO_WORLD_TS.local_package, update=True)
25+
Tns.create(app_name=cls.app_name, template=Template.HELLO_WORLD_NG.local_package, update=True)
2626
Npm.uninstall(package='tns-core-modules', option='--save', folder=cls.app_path)
2727
Npm.install(package=Settings.Packages.NATIVESCRIPT_CORE, option='--save --save-exact', folder=cls.app_path)
2828
Tns.platform_add_android(app_name=cls.app_name, framework_path=Settings.Android.FRAMEWORK_PATH)
@@ -48,9 +48,4 @@ def run_app(self, platform, device):
4848
strings = TnsLogs.run_messages(app_name=self.app_name, platform=platform, run_type=RunType.UNKNOWN,
4949
device=device)
5050
TnsLogs.wait_for_log(log_file=result.log_file, string_list=strings, timeout=240)
51-
52-
# Verify it looks properly
53-
device.wait_for_text(text=Changes.TSHelloWord.TS.old_text)
54-
device.wait_for_text(text=Changes.TSHelloWord.XML.old_text)
55-
blue_count = device.get_pixels_by_color(color=Colors.LIGHT_BLUE)
56-
assert blue_count > 100, 'Failed to find blue color on {0}'.format(device.name)
51+
device.wait_for_text(text=Changes.NGHelloWorld.TS.old_text)

0 commit comments

Comments
 (0)