mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	e2e-tests: Fix check_compose_state arguments.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Anders Kaseorg
					
				
			
			
				
	
			
			
			
						parent
						
							931f515207
						
					
				
				
					commit
					8f0dda3d4b
				
			@@ -56,7 +56,7 @@ async function test_restore_stream_message_draft_by_opening_compose_box(page: Pa
 | 
				
			|||||||
    await page.waitForSelector("#send_message_form", {visible: true});
 | 
					    await page.waitForSelector("#send_message_form", {visible: true});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    await common.check_compose_state(page, {
 | 
					    await common.check_compose_state(page, {
 | 
				
			||||||
        stream: "Denmark",
 | 
					        stream_name: "Denmark",
 | 
				
			||||||
        topic: "tests",
 | 
					        topic: "tests",
 | 
				
			||||||
        content: "Test stream message. ",
 | 
					        content: "Test stream message. ",
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -207,7 +207,7 @@ export async function get_text_from_selector(page: Page, selector: string): Prom
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export async function check_compose_state(
 | 
					export async function check_compose_state(
 | 
				
			||||||
    page: Page,
 | 
					    page: Page,
 | 
				
			||||||
    params: Record<string, string>,
 | 
					    params: {stream_name?: string; topic?: string; content: string},
 | 
				
			||||||
): Promise<void> {
 | 
					): Promise<void> {
 | 
				
			||||||
    const form_params: Record<string, string> = {content: params.content};
 | 
					    const form_params: Record<string, string> = {content: params.content};
 | 
				
			||||||
    if (params.stream_name) {
 | 
					    if (params.stream_name) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user