From 670e87892ddb4b24b4be0e34f093a7334e26e5fb Mon Sep 17 00:00:00 2001 From: LeeDr Date: Thu, 12 May 2016 10:17:40 -0500 Subject: [PATCH] Add try in 2 visualize page methods that have failed. --- test/support/pages/visualize_page.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/test/support/pages/visualize_page.js b/test/support/pages/visualize_page.js index de9580019bb3..0f01ea0d4c4b 100644 --- a/test/support/pages/visualize_page.js +++ b/test/support/pages/visualize_page.js @@ -226,11 +226,14 @@ export default (function () { }, selectField: function selectField(fieldValue) { - return this.remote - .setFindTimeout(defaultFindTimeout) - // the css below should be more selective - .findByCssSelector('option[label="' + fieldValue + '"]') - .click(); + var self = this; + return common.try(function () { + return self.remote + .setFindTimeout(defaultFindTimeout) + // the css below should be more selective + .findByCssSelector('option[label="' + fieldValue + '"]') + .click(); + }); }, orderBy: function orderBy(fieldValue) { @@ -341,10 +344,12 @@ export default (function () { var self = this; common.debug('clickVisualizationByLinkText(' + vizName + ')'); - return this.remote + return common.try(function () { + return self.remote .setFindTimeout(defaultFindTimeout) .findByLinkText(vizName) .click(); + }); }, // this starts by clicking the Load Saved Viz button, not from the