7
7
from core .settings import Settings
8
8
from core .utils .npm import Npm
9
9
from data .changes import Changes
10
- from data .const import Colors
11
10
from data .templates import Template
12
11
from products .nativescript .run_type import RunType
13
12
from products .nativescript .tns import Tns
17
16
class TestRunWithScopePackageOnly (TnsRunTest ):
18
17
app_name = Settings .AppName .DEFAULT
19
18
app_path = os .path .join (Settings .TEST_RUN_HOME , Settings .AppName .DEFAULT )
19
+
20
20
@classmethod
21
21
def setUpClass (cls ):
22
22
TnsRunTest .setUpClass ()
23
23
24
24
# Create app
25
- Tns .create (app_name = cls .app_name , template = Template .HELLO_WORLD_TS .local_package , update = True )
25
+ Tns .create (app_name = cls .app_name , template = Template .HELLO_WORLD_NG .local_package , update = True )
26
26
Npm .uninstall (package = 'tns-core-modules' , option = '--save' , folder = cls .app_path )
27
27
Npm .install (package = Settings .Packages .NATIVESCRIPT_CORE , option = '--save --save-exact' , folder = cls .app_path )
28
28
Tns .platform_add_android (app_name = cls .app_name , framework_path = Settings .Android .FRAMEWORK_PATH )
@@ -48,9 +48,4 @@ def run_app(self, platform, device):
48
48
strings = TnsLogs .run_messages (app_name = self .app_name , platform = platform , run_type = RunType .UNKNOWN ,
49
49
device = device )
50
50
TnsLogs .wait_for_log (log_file = result .log_file , string_list = strings , timeout = 240 )
51
-
52
- # Verify it looks properly
53
- device .wait_for_text (text = Changes .TSHelloWord .TS .old_text )
54
- device .wait_for_text (text = Changes .TSHelloWord .XML .old_text )
55
- blue_count = device .get_pixels_by_color (color = Colors .LIGHT_BLUE )
56
- assert blue_count > 100 , 'Failed to find blue color on {0}' .format (device .name )
51
+ device .wait_for_text (text = Changes .NGHelloWorld .TS .old_text )
0 commit comments