casper: Fix buggy waiting logic in 08-edit.

Apparently, this test was not allowing the browser to run between the
keypress to start edit and checking to see if message_edit_content appeared.

I'm not sure if this is what has been causing recent flakes, but it
was definitely wrong Casper code.
This commit is contained in:
Tim Abbott 2020-03-22 11:17:26 -07:00
parent 4888a2c7f9
commit d65fbfb3db
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,9 @@ casper.then(function () {
casper.waitUntilVisible(".message_edit_notice", function () {
common.keypress(37);
});
});
casper.then(function () {
casper.waitUntilVisible(".message_edit_content", function () {
var fieldVal = common.get_form_field_value('.message_edit_content');
casper.test.assertEquals(fieldVal, "test edited pm", "Opened editing last own message");