fixing tests

This commit is contained in:
sebv
2014-05-21 13:04:55 +08:00
parent c042e6b22b
commit 70227a4005
2 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ module.exports = function (desired) {
});
describe('within webview', function () {
function _ignoreEncodingBug(value) {
if (isChrome) {
if (isChrome(desired)) {
console.warn('Going round android bug: whitespace in cookies.');
return encodeURI(value);
} else return value;

View File

@@ -11,9 +11,9 @@ describe('uicatalog - move', function () {
it('should be able to click on arbitrary x-y elements', function (done) {
driver
.elementByClassName('UIATableCell').moveTo(10, 10).click()
.elementByXPath("//UIAButton[@name='Rounded']")
.should.eventually.exist
.elementByXPath("//UIAStaticText[contains(@name, 'Buttons')]").moveTo(10, 10).click()
.elementByXPath("//UIAElement['SYSTEM (CONTACT ADD)']")
.should.eventually.exist .should.eventually.exist
.nodeify(done);
});
});