From 58aedf985f302b54e06609ced6744e49f404ef54 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Sun, 16 Apr 2017 05:58:42 -0700 Subject: [PATCH] capser: Close the compose box in un_narrow(). --- frontend_tests/casper_lib/common.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend_tests/casper_lib/common.js b/frontend_tests/casper_lib/common.js index d724259c5e..b4a48a1645 100644 --- a/frontend_tests/casper_lib/common.js +++ b/frontend_tests/casper_lib/common.js @@ -329,6 +329,10 @@ exports.expected_messages = function (table, headings, bodies) { exports.un_narrow = function () { casper.test.info('Un-narrowing'); + if (casper.visible('.message_comp')) { + // close the compose box + common.keypress(27); // Esc + } common.keypress(27); // Esc };