Skip to content

Commit 299b6d2

Browse files
committed
fix: template tests
1 parent 664fa06 commit 299b6d2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/live/template_tests.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,20 @@ def test(self, template_name, template_info):
8080
# Run Android with bundle
8181
Adb.open_home(id=self.emu.id)
8282
Tns.run_android(app_name=app_name, device=self.emu.id, bundle=True)
83-
self.emu.wait_for_main_color(color=Colors.WHITE)
8483
if template_info.texts is not None:
8584
for text in template_info.texts:
8685
self.emu.wait_for_text(text=text, timeout=30)
86+
else:
87+
self.emu.wait_for_main_color(color=Colors.WHITE)
8788

8889
# Run iOS with bundle
8990
if Settings.HOST_OS is OSType.OSX:
9091
Tns.run_ios(app_name=app_name, device=self.sim.id, bundle=True)
91-
self.sim.wait_for_main_color(color=Colors.WHITE)
9292
if template_info.texts is not None:
9393
for text in template_info.texts:
9494
self.sim.wait_for_text(text=text, timeout=30)
95+
else:
96+
self.sim.wait_for_main_color(color=Colors.WHITE)
9597

9698
# Build in release
9799
Tns.build_android(app_name=app_name, release=True, bundle=True, aot=True, uglify=True, snapshot=True)

0 commit comments

Comments
 (0)