Skip to content

Commit b34de12

Browse files
committed
fix: live templates
1 parent 38ed4ba commit b34de12

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

core/base_test/tns_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def setUp(self):
4949
def tearDown(self):
5050
# Kill processes
5151
Tns.kill()
52+
Gradle.kill()
5253
Process.kill_all_in_context()
5354

5455
# Analise test result

core_tests/low_contrast.png

49.1 KB
Loading

tests/live/template_tests.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from data.templates import Template
1414
from products.nativescript.app import App
1515
from products.nativescript.tns import Tns
16+
from utils.gradle import Gradle
1617

1718

1819
# noinspection PyUnusedLocal
@@ -79,7 +80,7 @@ def test(self, template_name, template_info):
7980

8081
# Run Android
8182
Adb.open_home(id=self.emu.id)
82-
Tns.run_android(app_name=app_name, device=self.emu.id, bundle=True)
83+
Tns.run_android(app_name=app_name, device=self.emu.id, bundle=True, justlaunch=True)
8384
if template_info.texts is not None:
8485
for text in template_info.texts:
8586
self.emu.wait_for_text(text=text, timeout=30)
@@ -88,12 +89,14 @@ def test(self, template_name, template_info):
8889

8990
# Run iOS
9091
if Settings.HOST_OS is OSType.OSX:
91-
Tns.run_ios(app_name=app_name, device=self.sim.id, bundle=True)
92+
Tns.run_ios(app_name=app_name, device=self.sim.id, bundle=True, justlaunch=True)
9293
if template_info.texts is not None:
9394
for text in template_info.texts:
9495
self.sim.wait_for_text(text=text, timeout=30)
9596
else:
9697
self.sim.wait_for_main_color(color=Colors.WHITE)
9798

9899
# Cleanup
100+
Tns.kill()
101+
Gradle.kill()
99102
Folder.clean(local_path)

0 commit comments

Comments
 (0)