You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-10-31 01:45:39 +03:00 
			
		
		
		
	fix regional emojis converted to flags (#9294)
Co-authored-by: grimhilt <grimhilt@users.noreply.github.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> Co-authored-by: Faye Duxovni <duxovni@duxovni.org> Co-authored-by: Faye Duxovni <fayed@element.io> Fixes https://github.com/vector-im/element-web/issues/19000
This commit is contained in:
		| @@ -384,5 +384,24 @@ describe("Timeline", () => { | ||||
|                 1, | ||||
|             ); | ||||
|         }); | ||||
|  | ||||
|         it("should not be possible to send flag with regional emojis", () => { | ||||
|             cy.visit("/#/room/" + roomId); | ||||
|  | ||||
|             // Send a message | ||||
|             cy.getComposer().type(":regional_indicator_a"); | ||||
|             cy.contains(".mx_Autocomplete_Completion_title", ":regional_indicator_a:").click(); | ||||
|             cy.getComposer().type(":regional_indicator_r"); | ||||
|             cy.contains(".mx_Autocomplete_Completion_title", ":regional_indicator_r:").click(); | ||||
|             cy.getComposer().type(" :regional_indicator_z"); | ||||
|             cy.contains(".mx_Autocomplete_Completion_title", ":regional_indicator_z:").click(); | ||||
|             cy.getComposer().type(":regional_indicator_a"); | ||||
|             cy.contains(".mx_Autocomplete_Completion_title", ":regional_indicator_a:").click(); | ||||
|             cy.getComposer().type("{enter}"); | ||||
|  | ||||
|             cy.get(".mx_RoomView_body .mx_EventTile .mx_EventTile_line .mx_MTextBody .mx_EventTile_bigEmoji") | ||||
|                 .children() | ||||
|                 .should("have.length", 4); | ||||
|         }); | ||||
|     }); | ||||
| }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user