|
10 | 10 |
|
11 | 11 | from core.base_test.tns_test import TnsTest
|
12 | 12 | 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 |
18 | 13 | from core.settings import Settings
|
19 | 14 | 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 |
20 | 17 | 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 |
21 | 22 | from products.nativescript.tns import Tns
|
22 | 23 | from products.nativescript.tns_logs import TnsLogs
|
23 |
| -from data.templates import Template |
24 | 24 |
|
25 | 25 | APP_NAME = AppName.DEFAULT
|
26 | 26 | APP_PATH = os.path.join(Settings.TEST_RUN_HOME, APP_NAME)
|
27 | 27 | TAP_THE_BUTTON = 'Tap the button'
|
28 | 28 |
|
29 | 29 |
|
| 30 | +# noinspection PyMethodMayBeStatic |
30 | 31 | class IOSRuntimeTests(TnsTest):
|
31 | 32 | plugin_path = os.path.join(TEST_RUN_HOME, 'assets', 'plugins', 'sample-plugin', 'src')
|
32 | 33 |
|
@@ -147,7 +148,7 @@ def test_386_check_native_crash_will_not_crash_when_discardUncaughtJsExceptions_
|
147 | 148 |
|
148 | 149 | log = Tns.run_ios(app_name=APP_NAME, emulator=True)
|
149 | 150 |
|
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.', |
151 | 152 | 'JS:\ncontentsOfDirectoryAtPathError(file:///app/main-view-model.js:6:0)']
|
152 | 153 |
|
153 | 154 | test_result = Wait.until(lambda: all(string in File.read(log.log_file) for string in strings), timeout=300,
|
|
0 commit comments