From 2f01e9c51d9ea65a9b9190a43dda0a06db6bd59b Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Fri, 7 Mar 2014 17:05:39 -0500 Subject: [PATCH] tests: Use then_send_many (imported from commit 228ee697a54643912eb3846d48c78e4464193632) --- zerver/tests/frontend/tests/03-compose.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/zerver/tests/frontend/tests/03-compose.js b/zerver/tests/frontend/tests/03-compose.js index 289a329530..309c62713e 100644 --- a/zerver/tests/frontend/tests/03-compose.js +++ b/zerver/tests/frontend/tests/03-compose.js @@ -3,15 +3,15 @@ var common = require('../common.js').common; common.start_and_log_in(); // Send a message to try replying to -common.then_send_message('stream', { - stream: 'Verona', - subject: 'Reply test', - content: "We reply to this message" -}); -common.then_send_message('private', { - recipient: "cordelia@zulip.com", - content: "And reply to this message" -}); +common.then_send_many([ + { stream: 'Verona', + subject: 'Reply test', + content: "We reply to this message" + }, + { recipient: "cordelia@zulip.com", + content: "And reply to this message" + } +]); casper.waitForText("And reply to this message", function () { // TODO: Test opening the compose box from the left side buttons