tests: Correctly wait for a message to be visible

I'm not sure how it worked at all before.

(imported from commit 608b0574d1a80cd631d9ea8198990d97d72ba64d)
This commit is contained in:
Zev Benjamin
2014-03-07 14:55:33 -05:00
committed by Steve Howell
parent c7586a7135
commit 80ca037747

View File

@@ -97,9 +97,14 @@ casper.waitWhileVisible('.message_comp', function () {
common.send_many([
{ recipient: recipients.join(','),
content: 'A huddle to check spaces' }]);
casper.then(function () {
common.keypress(27); // escape to dismiss compose box
});
casper.then(function () {
common.un_narrow();
});
casper.waitForText('A huddle to check spaces', function () {
casper.waitUntilVisible('#zhome', function () {
casper.clickLabel('A huddle to check spaces');
});
casper.waitUntilVisible('#compose', function () {