mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	puppeteer: Wait till visible: true in check_messages_sent.
The next adds a few tests which heavily rely on check_messages_sent. There were some weird errors, this fixed those. I think the errors were due to us navigating multiple times and this function not waiting for the messages to become visible.
This commit is contained in:
		@@ -390,7 +390,7 @@ class CommonUtils {
 | 
			
		||||
    // The method will only check that all the messages in the
 | 
			
		||||
    // messages array passed exist in the order they are passed.
 | 
			
		||||
    async check_messages_sent(page, table, messages) {
 | 
			
		||||
        await page.waitForSelector("#" + table);
 | 
			
		||||
        await page.waitForSelector("#" + table, {visible: true});
 | 
			
		||||
        const rendered_messages = await this.get_rendered_messages(page, table);
 | 
			
		||||
 | 
			
		||||
        // We only check the last n messages because if we run
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user