mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	casper: Fix flakiness with uploading realm icon.
This commit is contained in:
		@@ -205,7 +205,8 @@ casper.then(function () {
 | 
			
		||||
// Test uploading realm icon image
 | 
			
		||||
casper.then(function () {
 | 
			
		||||
    casper.click("li[data-section='organization-settings']");
 | 
			
		||||
    casper.test.assertExists('img#realm-settings-icon[src^="https://secure.gravatar.com/avatar/"]');
 | 
			
		||||
    var selector = 'img#realm-settings-icon[src^="https://secure.gravatar.com/avatar/"]';
 | 
			
		||||
    casper.waitUntilVisible(selector, function () {
 | 
			
		||||
        casper.test.assertEqual(casper.visible('#realm_icon_delete_button'), false);
 | 
			
		||||
        casper.fill('form.admin-realm-form', {
 | 
			
		||||
                realm_icon_file_input: 'static/images/logo/zulip-icon-128x128.png',
 | 
			
		||||
@@ -215,6 +216,7 @@ casper.then(function () {
 | 
			
		||||
            casper.test.assertEqual(casper.visible('#realm_icon_delete_button'), true);
 | 
			
		||||
        });
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
// Test deleting realm icon image
 | 
			
		||||
casper.then(function () {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user