Skip to content

Commit 217fb08

Browse files
author
Nataliya Hristova
authored
fix: update logs - CLI changes (#340)
1 parent 10912f3 commit 217fb08

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tests/runtimes/android/android_runtime_tests.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ def test_317_check_native_crash_will_not_crash_when_discardUncaughtJsExceptions_
167167
Device.click(self.emulator, "TAP", True)
168168
if self.emulator.version == 6.0:
169169
stack_trace_first_part = r"""### Stack Trace Start
170-
JS: viewModel\.onTapfile:///app/main-view-model\.js:\d+:\d+
171-
JS: at push\.\.\./node_modules/tns-core-modules/data/observable/observable\.js\.Observable\.notifyfile:///node_modules/tns-core-modules/data/observable/observable\.js:\d+:\d+
172-
JS: at push\.\.\./node_modules/tns-core-modules/data/observable/observable\.js\.Observable\._emitfile:///node_modules/tns-core-modules/data/observable/observable\.js:\d+:\d+
173-
JS: at ClickListenerImpl\.onClickfile:///node_modules/tns-core-modules/ui/button/button\.js:\d+:\d+
170+
JS: viewModel\.onTap\(file:\/\/\/app\/main-view-model\.js:\d+:\d+\)
171+
JS: at push\.\.\.\/node_modules\/tns-core-modules\/data\/observable\/observable\.js\.Observable\.notify\(file:\/\/\/node_modules\/tns-core-modules\/data\/observable\/observable\.js:\d+:\d+\)
172+
JS: at push\.\.\.\/node_modules\/tns-core-modules\/data\/observable\/observable\.js\.Observable\._emit\(file:\/\/\/node_modules\/tns-core-modules\/data\/observable\/observable\.js:\d+:\d+\)
173+
JS: at ClickListenerImpl\.onClick\(file:\/\/\/node_modules\/tns-core-modules\/ui\/button\/button\.js:\d+:\d+\)
174174
JS: at com\.tns\.Runtime\.callJSMethodNative\(Native Method\)
175175
JS: at com\.tns\.Runtime\.dispatchCallJSMethodNative\(Runtime\.java:\d+\)
176176
JS: at com\.tns\.Runtime\.callJSMethodImpl\(Runtime\.java:\d+\)
@@ -193,10 +193,10 @@ def test_317_check_native_crash_will_not_crash_when_discardUncaughtJsExceptions_
193193
JS: ### Stack Trace End""" # noqa: E501
194194
else:
195195
stack_trace_first_part = r"""### Stack Trace Start
196-
JS: viewModel\.onTapfile:///app/main-view-model\.js:\d+:\d+
197-
JS: at push\.\.\./node_modules/tns-core-modules/data/observable/observable\.js\.Observable\.notifyfile:///node_modules/tns-core-modules/data/observable/observable\.js:\d+:\d+
198-
JS: at push\.\.\./node_modules/tns-core-modules/data/observable/observable\.js\.Observable\._emitfile:///node_modules/tns-core-modules/data/observable/observable\.js:\d+:\d+
199-
JS: at ClickListenerImpl\.onClickfile:///node_modules/tns-core-modules/ui/button/button\.js:\d+:\d+
196+
JS: viewModel\.onTap\(file:\/\/\/app\/main-view-model\.js:\d+:\d+\)
197+
JS: at push\.\.\.\/node_modules\/tns-core-modules\/data\/observable\/observable\.js\.Observable\.notify\(file:\/\/\/node_modules\/tns-core-modules\/data\/observable\/observable\.js:\d+:\d+\)
198+
JS: at push\.\.\.\/node_modules\/tns-core-modules\/data\/observable\/observable\.js\.Observable\._emit\(file:\/\/\/node_modules\/tns-core-modules\/data\/observable\/observable\.js:\d+:\d+\)
199+
JS: at ClickListenerImpl\.onClick\(file:\/\/\/node_modules\/tns-core-modules\/ui\/button\/button\.js:\d+:\d+\)
200200
JS: at com\.tns\.Runtime\.callJSMethodNative\(Native Method\)
201201
JS: at com\.tns\.Runtime\.dispatchCallJSMethodNative\(Runtime\.java:\d+\)
202202
JS: at com\.tns\.Runtime\.callJSMethodImpl\(Runtime\.java:\d+\)

tests/runtimes/ios/ios_runtime_tests.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ def test_386_check_native_crash_will_not_crash_when_discardUncaughtJsExceptions_
147147

148148
log = Tns.run_ios(app_name=APP_NAME, emulator=True)
149149

150-
strings = ['CONSOLE LOG file:///app/app.js:47:0 The folder “not-existing-path” doesn’t exist.',
151-
'JS:\ncontentsOfDirectoryAtPathError(file:///app/main-view-model.js:6:0']
150+
strings = ['CONSOLE LOG file:///app/app.js:47:0: The folder “not-existing-path” doesn’t exist.',
151+
'JS:\ncontentsOfDirectoryAtPathError(file:///app/main-view-model.js:6:0)']
152152

153153
test_result = Wait.until(lambda: all(string in File.read(log.log_file) for string in strings), timeout=300,
154154
period=5)

0 commit comments

Comments
 (0)