mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Revert "Make language frontend test pass"
Shouldn't have used setTimeout here...
This reverts commit ff0c9bb4a0
.
This commit is contained in:
parent
a99ff139c9
commit
f20af4818c
1 changed files with 16 additions and 4 deletions
|
@ -21,7 +21,13 @@ describe("Language select and change", function(){
|
||||||
$languageoption.attr('selected','selected');
|
$languageoption.attr('selected','selected');
|
||||||
$language.change();
|
$language.change();
|
||||||
|
|
||||||
setTimeout(function(){
|
helper.waitFor(function(){
|
||||||
|
|
||||||
|
var $boldButton = chrome$(".buttonicon-bold").parent();
|
||||||
|
//get the title of the bold button
|
||||||
|
var boldButtonTitle = $boldButton[0]["title"];
|
||||||
|
return boldButtonTitle !== undefined;
|
||||||
|
}).done(function(){
|
||||||
|
|
||||||
//get the value of the bold button
|
//get the value of the bold button
|
||||||
var $boldButton = chrome$(".buttonicon-bold").parent();
|
var $boldButton = chrome$(".buttonicon-bold").parent();
|
||||||
|
@ -33,7 +39,7 @@ describe("Language select and change", function(){
|
||||||
expect(boldButtonTitle).to.be("Fett (Strg-B)");
|
expect(boldButtonTitle).to.be("Fett (Strg-B)");
|
||||||
done();
|
done();
|
||||||
|
|
||||||
}, 1000);
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it("makes text English", function(done) {
|
it("makes text English", function(done) {
|
||||||
|
@ -52,7 +58,13 @@ describe("Language select and change", function(){
|
||||||
$languageoption.attr('selected','selected');
|
$languageoption.attr('selected','selected');
|
||||||
$language.change();
|
$language.change();
|
||||||
|
|
||||||
setTimeout(function(){
|
helper.waitFor(function(){
|
||||||
|
|
||||||
|
var $boldButton = chrome$(".buttonicon-bold").parent();
|
||||||
|
//get the title of the bold button
|
||||||
|
var boldButtonTitle = $boldButton[0]["title"];
|
||||||
|
return boldButtonTitle !== undefined;
|
||||||
|
}).done(function(){
|
||||||
|
|
||||||
//get the value of the bold button
|
//get the value of the bold button
|
||||||
var $boldButton = chrome$(".buttonicon-bold").parent();
|
var $boldButton = chrome$(".buttonicon-bold").parent();
|
||||||
|
@ -64,7 +76,7 @@ describe("Language select and change", function(){
|
||||||
expect(boldButtonTitle).to.be("Bold (Ctrl-B)");
|
expect(boldButtonTitle).to.be("Bold (Ctrl-B)");
|
||||||
done();
|
done();
|
||||||
|
|
||||||
}, 1000);
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue