casper: Add more flake protection for message editing.

(This is a continuation of the prior commit's technique.)
This commit is contained in:
Steve Howell
2017-12-27 17:25:14 -05:00
parent 27f7bdf8b1
commit 6d59dbca8d

View File

@@ -279,10 +279,11 @@ casper.then(function () {
// allow message editing again, and check that the old edit limit is still there
casper.waitUntilVisible('input[type="checkbox"][id="id_realm_allow_message_editing"] + span', function () {
casper.click('input[type="checkbox"][id="id_realm_allow_message_editing"] + span');
casper.click('form.org-settings-form button.button');
});
});
submit_checked();
casper.then(function () {
casper.waitUntilVisible('#admin-realm-message-editing-status', function () {
casper.test.assertSelectorHasText('#admin-realm-message-editing-status', 'Users can now edit topics for all their messages, and the content of messages which are less than 4 minutes old.');