File tree Expand file tree Collapse file tree 4 files changed +1
-5
lines changed
Expand file tree Collapse file tree 4 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 1010caps [ 'build' ] = 'Ruby Appium Sample'
1111caps [ 'name' ] = 'local_test'
1212caps [ 'device' ] = 'Google Pixel'
13- caps [ 'realMobile' ] = true
1413caps [ 'browserstack.local' ] = true
1514caps [ 'browserstack.debug' ] = true
1615caps [ 'app' ] = 'bs://<hashed app-id>'
Original file line number Diff line number Diff line change 99caps [ 'build' ] = 'Ruby Appium Sample'
1010caps [ 'name' ] = 'single_test'
1111caps [ 'device' ] = 'Google Pixel'
12- caps [ 'realMobile' ] = true
1312caps [ 'browserstack.debug' ] = true
1413caps [ 'app' ] = 'bs://<hashed app-id>'
1514
Original file line number Diff line number Diff line change 1010caps [ 'build' ] = 'Ruby Appium Sample'
1111caps [ 'name' ] = 'local_test'
1212caps [ 'device' ] = 'iPhone 7 Plus'
13- caps [ 'realMobile' ] = true
1413caps [ 'browserstack.local' ] = true
1514caps [ 'browserstack.debug' ] = true
1615caps [ 'app' ] = 'bs://<hashed app-id>'
Original file line number Diff line number Diff line change 99caps [ 'build' ] = 'Ruby Appium Sample'
1010caps [ 'name' ] = 'single_test'
1111caps [ 'device' ] = 'iPhone 7 Plus'
12- caps [ 'realMobile' ] = true
1312caps [ 'browserstack.debug' ] = true
1413caps [ 'app' ] = 'bs://<hashed app-id>'
1514
3433sleep 5
3534
3635results = 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"
3938else
4039 puts "Test Failed"
You can’t perform that action at this time.
0 commit comments