Merge "Fix random test failures for specific browser/screen combinations"

This commit is contained in:
Jenkins 2016-03-11 15:28:08 +00:00 committed by Gerrit Code Review
commit 4afc3f60f7
4 changed files with 13 additions and 4 deletions

View File

@ -76,7 +76,8 @@ define([
.type(name)
// Enter
.type('\uE007')
.end();
.end()
.waitForElementDeletion('.rename-block input[type=text]', 2000);
},
discardChanges: function() {
var self = this;

View File

@ -67,7 +67,8 @@ define([
// Escape
.type('\uE00C')
.end()
.assertElementNotExists(renameInputSelector, 'Rename control disappears')
.assertElementDisappears(renameInputSelector, 'Rename control disappears')
.assertElementAppears(nameSelector, 'Cluster name appears')
.assertElementTextEquals(
nameSelector,
initialName,

View File

@ -71,11 +71,18 @@ define([
})
.end()
// the following timeout as we have 0.5s transition time for role popover
.sleep(600)
.sleep(1000)
.assertElementExists(
'.role-block.mongo .popover .text-warning',
'Role popover is opened and the role warning is shown in the popover'
)
// closing role popover by moving mouse
.findByCssSelector('.page-title')
.then(function(element) {
return self.remote.moveMouseTo(element);
})
.end()
.sleep(500)
.then(function() {
return clusterPage.checkNodeRoles(['Controller', 'Cinder']);
})

View File

@ -97,7 +97,7 @@ define([
.assertElementsExist('.node-list .node', 4, 'Search was reset')
.assertElementNotExists(searchButtonSelector,
'Search input is still shown after search reset')
.clickByCssSelector('.node-list')
.clickByCssSelector('.page-title')
.assertElementExists(searchButtonSelector,
'Empty search control is closed when clicking outside the input');
},