summaryrefslogtreecommitdiff
path: root/tests/frontend
diff options
context:
space:
mode:
authormluto <m@luto.at>2013-01-15 22:51:53 +0100
committermluto <m@luto.at>2013-01-15 22:51:53 +0100
commitae07b7384004ccffc97fb79ea394e93d6feea8e3 (patch)
treed892af79d33f2ef3fc4d85eed1db31b007b5ec0a /tests/frontend
parent09fa1d49a1de70e07d9069e264e9e03211ea1672 (diff)
downloadetherpad-lite-ae07b7384004ccffc97fb79ea394e93d6feea8e3.zip
Increased timeouts to make IE9 happy, made button-test more strict
Diffstat (limited to 'tests/frontend')
-rw-r--r--tests/frontend/specs/chat_load_messages.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/frontend/specs/chat_load_messages.js b/tests/frontend/specs/chat_load_messages.js
index cf625dc4..7b09b47e 100644
--- a/tests/frontend/specs/chat_load_messages.js
+++ b/tests/frontend/specs/chat_load_messages.js
@@ -14,7 +14,7 @@ describe("chat-load-messages", function(){
var chatInput = chrome$("#chatinput");
var chatText = chrome$("#chattext");
- this.timeout(10000);
+ this.timeout(60000);
var messages = 140;
for(var i=1; i <= messages; i++) {
@@ -28,7 +28,7 @@ describe("chat-load-messages", function(){
}
helper.waitFor(function(){
return chatText.children("p").length == messages;
- }).always(function(){
+ }, 60000).always(function(){
expect(chatText.children("p").length).to.be(messages);
helper.newPad(done, padName);
});
@@ -73,12 +73,15 @@ describe("chat-load-messages", function(){
chatButton.click();
var chatText = chrome$("#chattext");
var loadMsgBtn = chrome$("#chatloadmessagesbutton");
+ var loadMsgBall = chrome$("#chatloadmessagesball");
loadMsgBtn.click();
helper.waitFor(function(){
- return loadMsgBtn.css('display') == expectedDisplay;
+ return loadMsgBtn.css('display') == expectedDisplay &&
+ loadMsgBall.css('display') == expectedDisplay;
}).always(function(){
expect(loadMsgBtn.css('display')).to.be(expectedDisplay);
+ expect(loadMsgBall.css('display')).to.be(expectedDisplay);
done();
});
});