Skip to content

Commit a636559

Browse files
committed
fix: workaround nativescript-cli/issues/4284
Workaround NativeScript/nativescript-cli#4284
1 parent de706a7 commit a636559

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

data/sync/hello_world_js.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __sync_hello_world_js_ts(app_type, app_name, platform, device,
5252
css_change = Changes.TSHelloWord.CSS
5353
else:
5454
raise ValueError('Invalid app_type value.')
55-
result = Tns.run(app_name=app_name, platform=platform, device=device.id, wait=False,
55+
result = Tns.run(app_name=app_name, platform=platform, emulator=True, wait=False,
5656
bundle=bundle, hmr=hmr, uglify=uglify, aot=aot, snapshot=snapshot)
5757
__verify_snapshot_skipped(snapshot, result)
5858

data/sync/hello_world_ng.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111

1212

1313
def sync_hello_world_ng(app_name, platform, device, bundle=False, uglify=False, aot=False):
14-
Tns.run(app_name=app_name, platform=platform, device=device.id, wait=False,
15-
bundle=bundle, aot=aot, uglify=uglify)
14+
Tns.run(app_name=app_name, platform=platform, emulator=True, wait=False, bundle=bundle, aot=aot, uglify=uglify)
1615
# Verify it looks properly
1716
device.wait_for_text(text=Changes.NGHelloWorld.TS.old_text, timeout=60, retry_delay=5)
1817
device.wait_for_main_color(color=Colors.WHITE)

data/sync/master_details_ng.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515

1616
def sync_master_detail_ng(app_name, platform, device, bundle=False, uglify=False, aot=False):
17-
Tns.run(app_name=app_name, platform=platform, device=device.id, wait=False, bundle=bundle, aot=aot,
18-
uglify=uglify)
17+
Tns.run(app_name=app_name, platform=platform, emulator=True, wait=False, bundle=bundle, aot=aot, uglify=uglify)
1918
# Verify it looks properly
2019
device.wait_for_text(text=Changes.MasterDetailNG.TS.old_text, timeout=60, retry_delay=5)
2120
device.wait_for_text(text=Changes.MasterDetailNG.HTML.old_text, timeout=30)

0 commit comments

Comments
 (0)