mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	casper: Add a few more explicit waits to message editing tests.
This is a second attempt at fixing a casper test flake we've been having recently.
This commit is contained in:
		@@ -166,7 +166,16 @@ casper.then(function () {
 | 
			
		||||
casper.then(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.then(function () {
 | 
			
		||||
    casper.waitUntilVisible('input:checked[type="checkbox"][id="id_realm_allow_message_editing"] + span', function () {
 | 
			
		||||
        casper.click('form.org-settings-form button.button');
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
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 10 minutes old.');
 | 
			
		||||
        casper.test.assertEval(function () {
 | 
			
		||||
@@ -174,7 +183,6 @@ casper.then(function () {
 | 
			
		||||
        }, 'Allow message editing Setting re-activated');
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
// Commented out due to Issue #1243
 | 
			
		||||
// go back home
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user