mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	org settings: Make each subsection independent for saving changes.
This makes each subsection(like "Message feed") independent of changes done in any other subsection and the save button of each subsection saves the changes done in that subsection only.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							d0355f52cb
						
					
				
				
					commit
					be0298314a
				
			@@ -317,9 +317,6 @@ casper.then(function () {
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
function submit_org_settings_change() {
 | 
			
		||||
    casper.click('form.org-settings-form button.button');
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
casper.then(function () {
 | 
			
		||||
    casper.click("li[data-section='organization-settings']");
 | 
			
		||||
@@ -328,14 +325,15 @@ casper.then(function () {
 | 
			
		||||
        casper.evaluate(function () {
 | 
			
		||||
            $('#id_realm_default_language').val('de').change();
 | 
			
		||||
        });
 | 
			
		||||
        submit_org_settings_change();
 | 
			
		||||
        casper.test.assertSelectorHasText('#org-submit-language-notify', "Save");
 | 
			
		||||
        casper.click('#org-submit-language-notify');
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
casper.then(function () {
 | 
			
		||||
    casper.waitUntilVisible('#admin-realm-default-language-status', function () {
 | 
			
		||||
        casper.test.assertSelectorHasText('#admin-realm-default-language-status',
 | 
			
		||||
                                          'Default language changed!');
 | 
			
		||||
    casper.waitUntilVisible('#org-submit-language-notify[data-status="saved"]', function () {
 | 
			
		||||
        casper.test.assertSelectorHasText('#org-submit-language-notify',
 | 
			
		||||
                                          'Saved');
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user