mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
Merge pull request #1590 from ether/fix-tests-android
fix chat simulation test to work in android
This commit is contained in:
commit
d124d9b26c
1 changed files with 5 additions and 3 deletions
|
@ -30,8 +30,9 @@ describe("send chat message", function(){
|
||||||
var usernameValue = username.text();
|
var usernameValue = username.text();
|
||||||
var time = $firstChatMessage.children(".time");
|
var time = $firstChatMessage.children(".time");
|
||||||
var timeValue = time.text();
|
var timeValue = time.text();
|
||||||
var expectedStringIncludingUserNameAndTime = usernameValue + timeValue + " " + "JohnMcLear";
|
var discoveredValue = $firstChatMessage.text();
|
||||||
expect(expectedStringIncludingUserNameAndTime).to.be($firstChatMessage.text());
|
var chatMsgExists = (discoveredValue.indexOf("JohnMcLear") !== -1);
|
||||||
|
expect(chatMsgExists).to.be(true);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -61,6 +62,7 @@ describe("send chat message", function(){
|
||||||
expect(containsMessage).to.be(true);
|
expect(containsMessage).to.be(true);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue