Skip to content

fix: fix regression ios tests #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions data/sync/hello_world_ng.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import os

from core.enums.app_type import AppType
from core.enums.platform_type import Platform
from core.settings import Settings
from data.changes import Changes, Sync
from data.const import Colors
Expand Down Expand Up @@ -36,8 +37,12 @@ def sync_hello_world_ng(app_name, platform, device, bundle=False, uglify=False,
TnsLogs.wait_for_log(log_file=result.log_file, string_list=strings, timeout=180)

Sync.replace(app_name=app_name, change_set=Changes.NGHelloWorld.HTML)
for number in ["8", "9"]:
device.wait_for_text(text=number)
if platform == Platform.IOS:
for number in ["10", "11"]:
device.wait_for_text(text=number)
else:
for number in ["8", "9"]:
device.wait_for_text(text=number)
assert not device.is_text_visible(text=Changes.NGHelloWorld.TS.new_text)
strings = TnsLogs.run_messages(app_name=app_name, platform=platform, run_type=RunType.INCREMENTAL, bundle=bundle,
file_name='items.component.html', hmr=hmr, instrumented=instrumented,
Expand All @@ -46,8 +51,12 @@ def sync_hello_world_ng(app_name, platform, device, bundle=False, uglify=False,

Sync.replace(app_name=app_name, change_set=Changes.NGHelloWorld.CSS)
device.wait_for_main_color(color=Colors.DARK)
for number in ["8", "9"]:
device.wait_for_text(text=number)
if platform == Platform.IOS:
for number in ["10", "1"]:
device.wait_for_text(text=number)
else:
for number in ["8", "9"]:
device.wait_for_text(text=number)
assert not device.is_text_visible(text=Changes.NGHelloWorld.TS.new_text)
strings = TnsLogs.run_messages(app_name=app_name, platform=platform, run_type=RunType.INCREMENTAL, bundle=bundle,
file_name='app.css', hmr=hmr, instrumented=instrumented, app_type=app_type)
Expand Down