mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	settings_users: Refactor some code for deactivate button.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							41140f2e46
						
					
				
				
					commit
					7ab0c26bda
				
			@@ -23,7 +23,7 @@ casper.then(function () {
 | 
			
		||||
        casper.click('.user_row[data-email="cordelia@zulip.com"] .deactivate');
 | 
			
		||||
        casper.test.assertTextExists('Deactivate cordelia@zulip.com', 'Deactivate modal has right user');
 | 
			
		||||
        casper.test.assertTextExists('Deactivate now', 'Deactivate now button available');
 | 
			
		||||
        casper.click('#do_deactivate_user_button');
 | 
			
		||||
        casper.click('#deactivation_user_modal .do_deactivate_button');
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
@@ -47,7 +47,7 @@ casper.then(function () {
 | 
			
		||||
        casper.click('.user_row[data-email="cordelia@zulip.com"] .deactivate');
 | 
			
		||||
        casper.test.assertTextExists('Deactivate cordelia@zulip.com', 'Deactivate modal has right user');
 | 
			
		||||
        casper.test.assertTextExists('Deactivate now', 'Deactivate now button available');
 | 
			
		||||
        casper.click('#do_deactivate_user_button');
 | 
			
		||||
        casper.click('#deactivation_user_modal .do_deactivate_button');
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user