Fix test_clusters_page tests

Adds timeout after creating cluster

Change-Id: I6e9bcc674a6090a3aa4b793a13793b0b620b2080
This commit is contained in:
Kirill Mashchenko 2017-04-27 15:37:01 +03:00
parent 83eb1fa1ae
commit bd8e9d0cca
2 changed files with 5 additions and 4 deletions

View File

@ -53,14 +53,14 @@ class CommonMethods {
createCluster(clusterName, stepsMethods) {
return this.remote
.clickLinkByText('Environments')
.waitForCssSelector('.clusters-page', 2000)
.waitForCssSelector('.clusters-page', 20000)
.then(() => this.clustersPage.createCluster(clusterName, stepsMethods));
}
removeCluster(clusterName, suppressErrors) {
return this.remote
.clickLinkByText('Environments')
.waitForCssSelector('.clusters-page', 2000)
.waitForCssSelector('.clusters-page', 20000)
.then(() => this.clustersPage.goToEnvironment(clusterName))
.then(() => this.clusterPage.removeCluster(clusterName))
.catch((e) => {

View File

@ -35,11 +35,12 @@ registerSuite(() => {
},
beforeEach() {
return this.remote
.then(() => common.createCluster(clusterName));
.then(() => common.createCluster(clusterName))
.waitForCssSelector('.clusters-page', 20000);
},
afterEach() {
return this.remote
.then(() => common.removeCluster(clusterName));
.then(() => common.removeCluster(clusterName, true));
},
'Create Cluster'() {
return this.remote