Skip to content

Commit c151bca

Browse files
author
Tejas Shah
committed
update condition | remove realMobile cap
1 parent 196a459 commit c151bca

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

android/localTest.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ desiredCaps = {
1111
'device' : 'Google Pixel',
1212
'app' : 'bs://<hashed app-id>',
1313
'browserstack.debug' : true,
14-
'browserstack.local' : true,
15-
'realMobile' : true
14+
'browserstack.local' : true
1615
};
1716

1817
driver = wd.promiseRemote("http://hub-cloud.browserstack.com/wd/hub");

android/singleTest.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ desiredCaps = {
99
'name': 'single_test',
1010
'device' : 'Google Pixel',
1111
'app' : 'bs://<hashed app-id>',
12-
'browserstack.debug' : true,
13-
'realMobile' : true
12+
'browserstack.debug' : true
1413
};
1514
driver = wd.promiseRemote("http://hub-cloud.browserstack.com/wd/hub");
1615

ios/localTest.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ desiredCaps = {
1717
'device' : 'iPhone 7 Plus',
1818
'app' : 'bs://<hashed app-id>',
1919
'browserstack.debug' : true,
20-
'browserstack.local' : true,
21-
'realMobile' : true
20+
'browserstack.local' : true
2221
};
2322

2423
var customTextNonEmpty = new Asserter(

ios/singleTest.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ desiredCaps = {
1111
'name': 'single_test',
1212
'device' : 'iPhone 7 Plus',
1313
'app' : 'bs://<hashed app-id>',
14-
'browserstack.debug' : true,
15-
'realMobile' : true
14+
'browserstack.debug' : true
1615
};
1716
driver = wd.promiseRemote("http://hub-cloud.browserstack.com/wd/hub");
1817

@@ -44,12 +43,16 @@ driver
4443
.then(function (textElements) {
4544
return Q().then(function () {
4645
return textElements.map(function (textElement) {
47-
return textElement.text().then(function(value) {
48-
if (value.indexOf('not registered') !== -1) {
49-
console.log(value);
50-
assert(value.indexOf('This email address is not registered on WordPress.com') !== -1);
51-
}
52-
});
46+
if (textElement === null) {
47+
return;
48+
} else {
49+
return textElement.text().then(function(value) {
50+
if (value.indexOf('not registered') !== -1) {
51+
console.log(value);
52+
assert(value.indexOf('This email address is not registered on WordPress.com') !== -1);
53+
}
54+
});
55+
}
5356
})
5457
}).all()
5558
})

0 commit comments

Comments
 (0)