Skip to content

Commit 75d0431

Browse files
fix ios tests (#55)
1 parent 2256f9e commit 75d0431

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

data/sync/hello_world_ng.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import os
66

77
from core.enums.app_type import AppType
8+
from core.enums.platform_type import Platform
89
from core.settings import Settings
910
from data.changes import Changes, Sync
1011
from data.const import Colors
@@ -36,8 +37,12 @@ def sync_hello_world_ng(app_name, platform, device, bundle=False, uglify=False,
3637
TnsLogs.wait_for_log(log_file=result.log_file, string_list=strings, timeout=180)
3738

3839
Sync.replace(app_name=app_name, change_set=Changes.NGHelloWorld.HTML)
39-
for number in ["8", "9"]:
40-
device.wait_for_text(text=number)
40+
if platform == Platform.IOS:
41+
for number in ["10", "11"]:
42+
device.wait_for_text(text=number)
43+
else:
44+
for number in ["8", "9"]:
45+
device.wait_for_text(text=number)
4146
assert not device.is_text_visible(text=Changes.NGHelloWorld.TS.new_text)
4247
strings = TnsLogs.run_messages(app_name=app_name, platform=platform, run_type=RunType.INCREMENTAL, bundle=bundle,
4348
file_name='items.component.html', hmr=hmr, instrumented=instrumented,
@@ -46,8 +51,12 @@ def sync_hello_world_ng(app_name, platform, device, bundle=False, uglify=False,
4651

4752
Sync.replace(app_name=app_name, change_set=Changes.NGHelloWorld.CSS)
4853
device.wait_for_main_color(color=Colors.DARK)
49-
for number in ["8", "9"]:
50-
device.wait_for_text(text=number)
54+
if platform == Platform.IOS:
55+
for number in ["10", "1"]:
56+
device.wait_for_text(text=number)
57+
else:
58+
for number in ["8", "9"]:
59+
device.wait_for_text(text=number)
5160
assert not device.is_text_visible(text=Changes.NGHelloWorld.TS.new_text)
5261
strings = TnsLogs.run_messages(app_name=app_name, platform=platform, run_type=RunType.INCREMENTAL, bundle=bundle,
5362
file_name='app.css', hmr=hmr, instrumented=instrumented, app_type=app_type)

0 commit comments

Comments
 (0)