5
5
import os
6
6
7
7
from core .enums .app_type import AppType
8
+ from core .enums .platform_type import Platform
8
9
from core .settings import Settings
9
10
from data .changes import Changes , Sync
10
11
from data .const import Colors
@@ -36,8 +37,12 @@ def sync_hello_world_ng(app_name, platform, device, bundle=False, uglify=False,
36
37
TnsLogs .wait_for_log (log_file = result .log_file , string_list = strings , timeout = 180 )
37
38
38
39
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 )
41
46
assert not device .is_text_visible (text = Changes .NGHelloWorld .TS .new_text )
42
47
strings = TnsLogs .run_messages (app_name = app_name , platform = platform , run_type = RunType .INCREMENTAL , bundle = bundle ,
43
48
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,
46
51
47
52
Sync .replace (app_name = app_name , change_set = Changes .NGHelloWorld .CSS )
48
53
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 )
51
60
assert not device .is_text_visible (text = Changes .NGHelloWorld .TS .new_text )
52
61
strings = TnsLogs .run_messages (app_name = app_name , platform = platform , run_type = RunType .INCREMENTAL , bundle = bundle ,
53
62
file_name = 'app.css' , hmr = hmr , instrumented = instrumented , app_type = app_type )
0 commit comments