Add explicit message field for locally_echoed.

We now set locally_echoed to true for messages that are
locally echoed, and we change some of our code to look
for this flag.
This commit is contained in:
Steve Howell
2017-07-17 10:52:57 -04:00
committed by Tim Abbott
parent fca158e387
commit 0e25055c1d
10 changed files with 23 additions and 17 deletions

View File

@@ -189,7 +189,7 @@ exports.check_form = function (form_selector, expected, test_name) {
exports.wait_for_message_actually_sent = function () {
casper.waitFor(function () {
return casper.evaluate(function () {
return current_msg_list.last().local_id === undefined;
return !current_msg_list.last().locally_echoed;
});
});
};