diff --git a/test/functional/ios/uicatalog/clear-specs.js b/test/functional/ios/uicatalog/clear-specs.js index 9a7b414c5..ab4057a16 100644 --- a/test/functional/ios/uicatalog/clear-specs.js +++ b/test/functional/ios/uicatalog/clear-specs.js @@ -12,23 +12,35 @@ describe('uicatalog - clear @skip-ios6', function () { it('should be able to hide keyboard with the default strategy', function (done) { driver .elementByXPath("//UIAStaticText[contains(@name, 'Web View')]").moveTo(10, 10).click() - .elementByXPath("//UIATextField").click() .elementByAccessibilityIdOrNull("Go").should.eventually.exist .hideKeyboard() .elementByAccessibilityIdOrNull("Go").should.not.eventually.exist + .back() + .nodeify(done); + }); + it('should be able to hide keyboard with the tapOutside strategy', function (done) { + driver + .elementByXPath("//UIAStaticText[contains(@name, 'Web View')]").moveTo(10, 10).click() .elementByXPath("//UIATextField").click() .elementByAccessibilityIdOrNull("Go").should.eventually.exist .hideKeyboard({strategy: 'tapOutside'}) .elementByAccessibilityIdOrNull("Go").should.not.eventually.exist + .back() + .nodeify(done); + }); + it('should be able to hide keyboard with the tapOut strategy', function (done) { + driver + .elementByXPath("//UIAStaticText[contains(@name, 'Web View')]").moveTo(10, 10).click() .elementByXPath("//UIATextField").click() .elementByAccessibilityIdOrNull("Go").should.eventually.exist .hideKeyboard({strategy: 'tapOut'}) .elementByAccessibilityIdOrNull("Go").should.not.eventually.exist - + .back() .nodeify(done); }); + }); }); diff --git a/test/functional/ios/webview/basics-specs.js b/test/functional/ios/webview/basics-specs.js index 1d39073d4..3a00c24c5 100644 --- a/test/functional/ios/webview/basics-specs.js +++ b/test/functional/ios/webview/basics-specs.js @@ -47,6 +47,7 @@ describe('webview - basics', function () { it('setting context to \'WEBVIEW_1\' should work', function (done) { driver.contexts().should.eventually.have.length.above(0) .context("WEBVIEW_1") + .sleep(500) .get(env.GUINEA_TEST_END_POINT) .sleep(500) .title() @@ -56,6 +57,7 @@ describe('webview - basics', function () { it('setting context to \'WEBVIEW_1\' should work without first getting contexts', function (done) { driver .context("WEBVIEW_1") + .sleep(500) .get(env.GUINEA_TEST_END_POINT) .sleep(500) .title() @@ -65,6 +67,7 @@ describe('webview - basics', function () { it('setting context to \'WEBVIEW\' should work', function (done) { driver .context("WEBVIEW") + .sleep(500) .get(env.GUINEA_TEST_END_POINT) .sleep(500) .title()