Merge "Fix random test failures for specific browser/screen combinations"
This commit is contained in:
commit
4afc3f60f7
|
@ -76,7 +76,8 @@ define([
|
||||||
.type(name)
|
.type(name)
|
||||||
// Enter
|
// Enter
|
||||||
.type('\uE007')
|
.type('\uE007')
|
||||||
.end();
|
.end()
|
||||||
|
.waitForElementDeletion('.rename-block input[type=text]', 2000);
|
||||||
},
|
},
|
||||||
discardChanges: function() {
|
discardChanges: function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
|
@ -67,7 +67,8 @@ define([
|
||||||
// Escape
|
// Escape
|
||||||
.type('\uE00C')
|
.type('\uE00C')
|
||||||
.end()
|
.end()
|
||||||
.assertElementNotExists(renameInputSelector, 'Rename control disappears')
|
.assertElementDisappears(renameInputSelector, 'Rename control disappears')
|
||||||
|
.assertElementAppears(nameSelector, 'Cluster name appears')
|
||||||
.assertElementTextEquals(
|
.assertElementTextEquals(
|
||||||
nameSelector,
|
nameSelector,
|
||||||
initialName,
|
initialName,
|
||||||
|
|
|
@ -71,11 +71,18 @@ define([
|
||||||
})
|
})
|
||||||
.end()
|
.end()
|
||||||
// the following timeout as we have 0.5s transition time for role popover
|
// the following timeout as we have 0.5s transition time for role popover
|
||||||
.sleep(600)
|
.sleep(1000)
|
||||||
.assertElementExists(
|
.assertElementExists(
|
||||||
'.role-block.mongo .popover .text-warning',
|
'.role-block.mongo .popover .text-warning',
|
||||||
'Role popover is opened and the role warning is shown in the popover'
|
'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() {
|
.then(function() {
|
||||||
return clusterPage.checkNodeRoles(['Controller', 'Cinder']);
|
return clusterPage.checkNodeRoles(['Controller', 'Cinder']);
|
||||||
})
|
})
|
||||||
|
|
|
@ -97,7 +97,7 @@ define([
|
||||||
.assertElementsExist('.node-list .node', 4, 'Search was reset')
|
.assertElementsExist('.node-list .node', 4, 'Search was reset')
|
||||||
.assertElementNotExists(searchButtonSelector,
|
.assertElementNotExists(searchButtonSelector,
|
||||||
'Search input is still shown after search reset')
|
'Search input is still shown after search reset')
|
||||||
.clickByCssSelector('.node-list')
|
.clickByCssSelector('.page-title')
|
||||||
.assertElementExists(searchButtonSelector,
|
.assertElementExists(searchButtonSelector,
|
||||||
'Empty search control is closed when clicking outside the input');
|
'Empty search control is closed when clicking outside the input');
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue