Skip to content

Commit 8cb502c

Browse files
dtopuzovNataliya Hristova
authored andcommitted
chore: fix test_386_check_native_crash_will_not_crash_when_discardUncaughtJsExceptions_used (#427)
1 parent e725295 commit 8cb502c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

tests/runtimes/ios/ios_runtime_tests.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,24 @@
1010

1111
from core.base_test.tns_test import TnsTest
1212
from core.log.log import Log
13-
from core.utils.device.device import Device
14-
from core.utils.device.device_manager import DeviceManager
15-
from core.utils.wait import Wait
16-
from core.utils.npm import Npm
17-
from core.utils.file_utils import File, Folder
1813
from core.settings import Settings
1914
from core.settings.Settings import Simulators, IOS, TEST_RUN_HOME, AppName
15+
from core.utils.device.device import Device
16+
from core.utils.device.device_manager import DeviceManager
2017
from core.utils.device.simctl import Simctl
18+
from core.utils.file_utils import File, Folder
19+
from core.utils.npm import Npm
20+
from core.utils.wait import Wait
21+
from data.templates import Template
2122
from products.nativescript.tns import Tns
2223
from products.nativescript.tns_logs import TnsLogs
23-
from data.templates import Template
2424

2525
APP_NAME = AppName.DEFAULT
2626
APP_PATH = os.path.join(Settings.TEST_RUN_HOME, APP_NAME)
2727
TAP_THE_BUTTON = 'Tap the button'
2828

2929

30+
# noinspection PyMethodMayBeStatic
3031
class IOSRuntimeTests(TnsTest):
3132
plugin_path = os.path.join(TEST_RUN_HOME, 'assets', 'plugins', 'sample-plugin', 'src')
3233

@@ -147,7 +148,7 @@ def test_386_check_native_crash_will_not_crash_when_discardUncaughtJsExceptions_
147148

148149
log = Tns.run_ios(app_name=APP_NAME, emulator=True)
149150

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

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

0 commit comments

Comments
 (0)