tests: remove set timeouts to try fix edge remote tests

pull/4081/head
John McLear 2020-05-29 19:45:28 +01:00 committed by GitHub
parent 3c190c1782
commit be2ba34d3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 7 deletions

View File

@ -47,10 +47,13 @@ describe("clear authorship colors button", function(){
var hasAuthorClass = inner$("div").first().attr("class").indexOf("author") !== -1; var hasAuthorClass = inner$("div").first().attr("class").indexOf("author") !== -1;
expect(hasAuthorClass).to.be(false); expect(hasAuthorClass).to.be(false);
setTimeout(function(){ helper.waitFor(function(){
var disconnectVisible = chrome$("div.disconnected").attr("class").indexOf("visible") === -1 var disconnectVisible = chrome$("div.disconnected").attr("class").indexOf("visible") === -1
expect(disconnectVisible).to.be(true); return (disconnectVisible === true)
},1000); });
var disconnectVisible = chrome$("div.disconnected").attr("class").indexOf("visible") === -1
expect(disconnectVisible).to.be(true);
done(); done();
}); });
@ -116,11 +119,13 @@ describe("clear authorship colors button", function(){
hasAuthorClass = inner$("div").first().attr("class").indexOf("author") !== -1; hasAuthorClass = inner$("div").first().attr("class").indexOf("author") !== -1;
expect(hasAuthorClass).to.be(false); expect(hasAuthorClass).to.be(false);
helper.waitFor(function(){
setTimeout(function(){
var disconnectVisible = chrome$("div.disconnected").attr("class").indexOf("visible") === -1 var disconnectVisible = chrome$("div.disconnected").attr("class").indexOf("visible") === -1
expect(disconnectVisible).to.be(true); return (disconnectVisible === true)
},1000); });
var disconnectVisible = chrome$("div.disconnected").attr("class").indexOf("visible") === -1
expect(disconnectVisible).to.be(true);
done(); done();
}); });