test(xod-client-electron): add waitForExist to avoid failing test on installing library suite

This commit is contained in:
Kirill Shumilov
2017-11-29 14:31:34 +03:00
parent 2700d5e2e8
commit dffefb92b7

View File

@@ -189,8 +189,10 @@ function assertLibSuggesterHidden(client) {
}
function assertProjectBrowserHasInstallingLib(client, libName) {
const selector = '.PatchGroup--installing';
return assert.eventually.equal(
client.element('.PatchGroup--installing').getText('.name'),
client.waitForExist(selector)
.then(() => client.element('.PatchGroup--installing').getText('.name')),
libName
);
}