Skip to content

Commit f85e0aa

Browse files
author
Tejas Shah
authored
Merge pull request #4 from browserstack/condition_caps
update condition | remove realMobile, cap
2 parents e534394 + 31d9768 commit f85e0aa

File tree

7 files changed

+1
-10
lines changed

7 files changed

+1
-10
lines changed

android/config/local.config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ common_caps:
99
browser_caps:
1010
-
1111
"device": "Google Pixel"
12-
"realMobile": true
1312
"app": "bs://<hashed app-id>"
1413
"browserstack.local": true
1514
"name": "local_test"

android/config/parallel.config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,13 @@ common_caps:
99
browser_caps:
1010
-
1111
"device": "Google Pixel"
12-
"realMobile": true
1312
"app": "bs://<hashed app-id>"
1413
"name": "parallel_test"
1514
-
1615
"device": "Google Nexus 5"
17-
"realMobile": true
1816
"app": "bs://<hashed app-id>"
1917
"name": "parallel_test"
2018
-
2119
"device": "Samsung Galaxy S7"
22-
"realMobile": true
2320
"app": "bs://<hashed app-id>"
2421
"name": "parallel_test"

android/config/single.config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ common_caps:
99
browser_caps:
1010
-
1111
"device": "Google Pixel"
12-
"realMobile": true
1312
"app": "bs://<hashed app-id>"
1413
"name": "single_test"

ios/config/local.config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ common_caps:
99
browser_caps:
1010
-
1111
"device": "iPhone 7 Plus"
12-
"realMobile": true
1312
"app": "bs://<hashed app-id>"
1413
"browserstack.local": true
1514
"name": "local_test"

ios/config/parallel.config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ common_caps:
99
browser_caps:
1010
-
1111
"device": "iPhone 7 Plus"
12-
"realMobile": true
1312
"app": "bs://<hashed app-id>"
1413
"name": "parallel_test"
1514
-
1615
"device": "iPhone 7"
17-
"realMobile": true
1816
"app": "bs://<hashed app-id>"
1917
"name": "parallel_test"

ios/config/single.config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ common_caps:
99
browser_caps:
1010
-
1111
"device": "iPhone 7 Plus"
12-
"realMobile": true
1312
"app": "bs://<hashed app-id>"
1413
"name": "single_test"

ios/features/step_definitions/single_steps.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
text_elements = $driver.find_elements(:xpath, "//XCUIElementTypeStaticText")
1818
text_elements.size.should > 0
1919

20-
error_element = text_elements.select { |element| element.text.match(/not registered/) }.first
20+
error_element = text_elements.select { |element| !element.nil? && element.text.match(/not registered/) }.first
2121
error_element.text.should include("not registered on WordPress.com")
2222
end

0 commit comments

Comments
 (0)