Skip to content

Commit 32c676a

Browse files
author
Tejas Shah
committed
update condition | remove realMobile cap
1 parent 8e1b56c commit 32c676a

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

android/local_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
caps['build'] = 'Ruby Appium Sample'
1111
caps['name'] = 'local_test'
1212
caps['device'] = 'Google Pixel'
13-
caps['realMobile'] = true
1413
caps['browserstack.local'] = true
1514
caps['browserstack.debug'] = true
1615
caps['app'] = 'bs://<hashed app-id>'

android/single_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
caps['build'] = 'Ruby Appium Sample'
1010
caps['name'] = 'single_test'
1111
caps['device'] = 'Google Pixel'
12-
caps['realMobile'] = true
1312
caps['browserstack.debug'] = true
1413
caps['app'] = 'bs://<hashed app-id>'
1514

ios/local_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
caps['build'] = 'Ruby Appium Sample'
1111
caps['name'] = 'local_test'
1212
caps['device'] = 'iPhone 7 Plus'
13-
caps['realMobile'] = true
1413
caps['browserstack.local'] = true
1514
caps['browserstack.debug'] = true
1615
caps['app'] = 'bs://<hashed app-id>'

ios/single_test.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
caps['build'] = 'Ruby Appium Sample'
1010
caps['name'] = 'single_test'
1111
caps['device'] = 'iPhone 7 Plus'
12-
caps['realMobile'] = true
1312
caps['browserstack.debug'] = true
1413
caps['app'] = 'bs://<hashed app-id>'
1514

@@ -34,7 +33,7 @@
3433
sleep 5
3534

3635
results = driver.find_elements(:xpath, "//XCUIElementTypeStaticText")
37-
if results.map(&:text).any?{|x| x.match('not registered on WordPress.com')}
36+
if results.map(&:text).any?{|x| !x.nil? && x.match('not registered on WordPress.com')}
3837
puts "Test Passed"
3938
else
4039
puts "Test Failed"

0 commit comments

Comments
 (0)