Skip to content

Commit 161c826

Browse files
Vasil ChimevVasil Chimev
Vasil Chimev
authored and
Vasil Chimev
committed
Update livesync_simulator.py
1 parent 57530f3 commit 161c826

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

tests/livesync_simulator.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -171,25 +171,25 @@ def test_103_livesync_ios_simulator_watch_add_css_file(self):
171171
assert "color: #284848;" in output
172172

173173
def test_111_livesync_ios_simulator_watch_change_xml_file(self):
174-
replace("TNS_App/app/test/test.xml", "TEST", "WATCH")
175-
self.wait_for_text_in_output("app/test/test.xml")
174+
replace("TNS_App/app/main-page.xml", "TEST", "WATCH")
175+
self.wait_for_text_in_output("app/main-page.xml")
176176

177-
output = cat_app_file_on_simulator("TNSApp", "app/test/test.xml")
177+
output = cat_app_file_on_simulator("TNSApp", "app/main-page.xml")
178178
assert "<Button text=\"WATCH\" tap=\"{{ tapAction }}\" />" in output
179179

180180
def test_112_livesync_ios_simulator_watch_change_js_file(self):
181-
replace("TNS_App/app/test/test.js", "start();", "start(); // test")
182-
self.wait_for_text_in_output("app/test/test.js")
181+
replace("TNS_App/app/main-view-model.js", "clicks", "tricks")
182+
self.wait_for_text_in_output("app/main-view-model.js")
183183
time.sleep(2)
184184

185-
output = cat_app_file_on_simulator("TNSApp", "app/test/test.js")
186-
assert "application.start(); // test" in output
185+
output = cat_app_file_on_simulator("TNSApp", "app/main-view-model.js")
186+
assert "this.set(\"message\", this.counter + \" tricks left\");" in output
187187

188188
def test_113_livesync_ios_simulator_watch_change_css_file(self):
189-
replace("TNS_App/app/test/test.css", "#284848", "lightgreen")
190-
self.wait_for_text_in_output("app/test/test.css")
189+
replace("TNS_App/app/app.css", "#284848", "lightgreen")
190+
self.wait_for_text_in_output("app/app.css")
191191

192-
output = cat_app_file_on_simulator("TNSApp", "app/test/test.css")
192+
output = cat_app_file_on_simulator("TNSApp", "app/app.css")
193193
assert "color: lightgreen;" in output
194194

195195
# https://github.com/NativeScript/nativescript-cli/issues/1210

tns_tests_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ def run_tests():
100100
# suite.addTests(unittest.TestLoader().loadTestsFromTestCase(Help))
101101

102102
if ('TEST_RUN' in os.environ) and ("LIVESYNC" in os.environ['TEST_RUN']):
103-
# suite.addTests(unittest.TestLoader().loadTestsFromTestCase(LiveSyncEmulator))
104-
# suite.addTests(unittest.TestLoader().loadTestsFromTestCase(LiveSyncAndroid))
105103
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(LiveSyncSimulator))
106104
# suite.addTests(unittest.TestLoader().loadTestsFromTestCase(LiveSynciOS))
105+
# suite.addTests(unittest.TestLoader().loadTestsFromTestCase(LiveSyncEmulator))
106+
# suite.addTests(unittest.TestLoader().loadTestsFromTestCase(LiveSyncAndroid))
107107
else:
108108
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(LogTrace))
109109
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(Autocomplete))

0 commit comments

Comments
 (0)