mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
casper: Add more flake protection for message editing.
(This is a continuation of the prior commit's technique.)
This commit is contained in:
@@ -279,10 +279,11 @@ casper.then(function () {
|
|||||||
// allow message editing again, and check that the old edit limit is still there
|
// 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.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('input[type="checkbox"][id="id_realm_allow_message_editing"] + span');
|
||||||
casper.click('form.org-settings-form button.button');
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
submit_checked();
|
||||||
|
|
||||||
casper.then(function () {
|
casper.then(function () {
|
||||||
casper.waitUntilVisible('#admin-realm-message-editing-status', 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.');
|
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.');
|
||||||
|
|||||||
Reference in New Issue
Block a user