mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	message_edit_history: Migrate modal to dialog_widget.
This commit is contained in:
		@@ -4,6 +4,7 @@ const {strict: assert} = require("assert");
 | 
			
		||||
 | 
			
		||||
const {mock_esm, zrequire} = require("../zjsunit/namespace");
 | 
			
		||||
const {run_test} = require("../zjsunit/test");
 | 
			
		||||
const $ = require("../zjsunit/zjquery");
 | 
			
		||||
const {page_params} = require("../zjsunit/zpage_params");
 | 
			
		||||
 | 
			
		||||
const condense = mock_esm("../../static/js/condense");
 | 
			
		||||
@@ -116,6 +117,10 @@ run_test("update_messages", () => {
 | 
			
		||||
    page_params.realm_allow_edit_history = false;
 | 
			
		||||
    message_list.narrowed = "stub-to-ignore";
 | 
			
		||||
 | 
			
		||||
    const message_edit_history_modal = $.create("#message-edit-history");
 | 
			
		||||
    const modal = $.create("micromodal").addClass("modal--open");
 | 
			
		||||
    message_edit_history_modal.set_parents_result(".micromodal", modal);
 | 
			
		||||
 | 
			
		||||
    // TEST THIS:
 | 
			
		||||
    message_events.update_messages(events);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user