File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ def teardown
16
16
end
17
17
18
18
def test_image_comparison_match_result
19
- skip 'Requres `npm install -g appium opencv4nodejs`' if `which opencv4nodejs`. empty?
19
+ skip 'Requres `npm install -g appium opencv4nodejs`' unless `npm list -g opencv4nodejs`. include? 'opencv4nodejs'
20
20
21
21
image1 = File . read AppiumLibCoreTest . path_of ( 'test/functional/data/test_normal.png' )
22
22
image2 = File . read AppiumLibCoreTest . path_of ( 'test/functional/data/test_has_blue.png' )
@@ -33,7 +33,7 @@ def test_image_comparison_match_result
33
33
end
34
34
35
35
def test_image_comparison_find_result
36
- skip 'Requres `npm install -g appium opencv4nodejs`' if `which opencv4nodejs`. empty?
36
+ skip 'Requres `npm install -g appium opencv4nodejs`' unless `npm list -g opencv4nodejs`. include? 'opencv4nodejs'
37
37
38
38
image1 = File . read AppiumLibCoreTest . path_of ( 'test/functional/data/test_normal.png' )
39
39
image2 = File . read AppiumLibCoreTest . path_of ( 'test/functional/data/test_has_blue.png' )
@@ -50,7 +50,7 @@ def test_image_comparison_find_result
50
50
end
51
51
52
52
def test_image_comparison_get_images_result
53
- skip 'Requres `npm install -g appium opencv4nodejs`' if `which opencv4nodejs`. empty?
53
+ skip 'Requres `npm install -g appium opencv4nodejs`' unless `npm list -g opencv4nodejs`. include? 'opencv4nodejs'
54
54
55
55
image1 = File . read AppiumLibCoreTest . path_of ( 'test/functional/data/test_normal.png' )
56
56
image2 = File . read AppiumLibCoreTest . path_of ( 'test/functional/data/test_has_blue.png' )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ def setup
12
12
end
13
13
14
14
def test_image_element
15
- skip 'Requres `npm install -g appium opencv4nodejs`' if `which opencv4nodejs`. empty?
15
+ skip 'Requres `npm install -g appium opencv4nodejs`' unless `npm list -g opencv4nodejs`. include? 'opencv4nodejs'
16
16
17
17
@@driver . update_settings ( { fixImageFindScreenshotDims : false ,
18
18
fixImageTemplateSize : true ,
@@ -35,7 +35,7 @@ def test_image_element
35
35
end
36
36
37
37
def test_image_elements
38
- skip 'Requres `npm install -g appium opencv4nodejs`' if `which opencv4nodejs`. empty?
38
+ skip 'Requres `npm install -g appium opencv4nodejs`' unless `npm list -g opencv4nodejs`. include? 'opencv4nodejs'
39
39
40
40
@@driver . update_settings ( { fixImageTemplateSize : true ,
41
41
autoUpdateImageElementPosition : true } )
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ def setup
14
14
end
15
15
16
16
def test_image_comparison_match_result
17
- skip 'Requres `npm install -g appium opencv4nodejs`' if `which opencv4nodejs`. empty?
17
+ skip 'Requres `npm install -g appium opencv4nodejs`' unless `npm list -g opencv4nodejs`. include? 'opencv4nodejs'
18
18
19
19
image1 = File . read './test/functional/data/test_normal.png'
20
20
image2 = File . read './test/functional/data/test_has_blue.png'
@@ -31,7 +31,7 @@ def test_image_comparison_match_result
31
31
end
32
32
33
33
def test_image_comparison_find_result
34
- skip 'Requres `npm install -g appium opencv4nodejs`' if `which opencv4nodejs`. empty?
34
+ skip 'Requres `npm install -g appium opencv4nodejs`' unless `npm list -g opencv4nodejs`. include? 'opencv4nodejs'
35
35
36
36
image1 = File . read './test/functional/data/test_normal.png'
37
37
image2 = File . read './test/functional/data/test_has_blue.png'
@@ -48,7 +48,7 @@ def test_image_comparison_find_result
48
48
end
49
49
50
50
def test_image_comparison_get_images_result
51
- skip 'Requres `npm install -g appium opencv4nodejs`' if `which opencv4nodejs`. empty?
51
+ skip 'Requres `npm install -g appium opencv4nodejs`' unless `npm list -g opencv4nodejs`. include? 'opencv4nodejs'
52
52
53
53
image1 = File . read './test/functional/data/test_normal.png'
54
54
image2 = File . read './test/functional/data/test_has_blue.png'
You can’t perform that action at this time.
0 commit comments