mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	custom_profile_fields: Confirmation modal for delete profile field.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							c4233d2472
						
					
				
				
					commit
					2328dc0d4e
				
			@@ -63,6 +63,18 @@ async function test_edit_profile_field(page: Page): Promise<void> {
 | 
			
		||||
 | 
			
		||||
async function test_delete_custom_profile_field(page: Page): Promise<void> {
 | 
			
		||||
    await page.click(`${profile_field_row} button.delete`);
 | 
			
		||||
    await common.wait_for_micromodal_to_open(page);
 | 
			
		||||
    assert.strictEqual(
 | 
			
		||||
        await common.get_text_from_selector(page, ".dialog_heading"),
 | 
			
		||||
        "Delete custom profile field?",
 | 
			
		||||
    );
 | 
			
		||||
    assert.strictEqual(
 | 
			
		||||
        await common.get_text_from_selector(page, "#dialog_widget_modal .dialog_submit_button"),
 | 
			
		||||
        "Confirm",
 | 
			
		||||
    );
 | 
			
		||||
    await page.click("#dialog_widget_modal .dialog_submit_button");
 | 
			
		||||
    await common.wait_for_micromodal_to_close(page);
 | 
			
		||||
 | 
			
		||||
    await page.waitForSelector("#admin-profile-field-status img", {visible: true});
 | 
			
		||||
    assert.strictEqual(
 | 
			
		||||
        await common.get_text_from_selector(page, "div#admin-profile-field-status"),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user