mirror of
https://github.com/xodio/xod.git
synced 2026-03-18 22:56:51 +01:00
test(xod-client-electron): add waitForExist to avoid failing test on installing library suite
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user