@@ -47,7 +47,7 @@ test("Can open menu", async () => {
4747 const { getByLabelText, container } = render (
4848 < TestComponent vm = { vm } rtcSession = { rtcSession } /> ,
4949 ) ;
50- await user . click ( getByLabelText ( "common.reactions " ) ) ;
50+ await user . click ( getByLabelText ( "Reactions " ) ) ;
5151 expect ( container ) . toMatchSnapshot ( ) ;
5252} ) ;
5353
@@ -58,8 +58,8 @@ test("Can raise hand", async () => {
5858 const { getByLabelText, container } = render (
5959 < TestComponent vm = { vm } rtcSession = { rtcSession } /> ,
6060 ) ;
61- await user . click ( getByLabelText ( "common.reactions " ) ) ;
62- await user . click ( getByLabelText ( "action.raise_hand " ) ) ;
61+ await user . click ( getByLabelText ( "Reactions " ) ) ;
62+ await user . click ( getByLabelText ( "Raise hand " ) ) ;
6363 expect ( rtcSession . room . client . sendEvent ) . toHaveBeenCalledWith (
6464 rtcSession . room . roomId ,
6565 "m.reaction" ,
@@ -92,8 +92,8 @@ test("Can lower hand", async () => {
9292 const { getByLabelText, container } = render (
9393 < TestComponent vm = { vm } rtcSession = { rtcSession } /> ,
9494 ) ;
95- await user . click ( getByLabelText ( "common.reactions " ) ) ;
96- await user . click ( getByLabelText ( "action.raise_hand " ) ) ;
95+ await user . click ( getByLabelText ( "Reactions " ) ) ;
96+ await user . click ( getByLabelText ( "Raise hand " ) ) ;
9797 act ( ( ) => {
9898 handRaisedSubject$ . next ( {
9999 [ localIdent ] : {
@@ -103,8 +103,8 @@ test("Can lower hand", async () => {
103103 } ,
104104 } ) ;
105105 } ) ;
106- await user . click ( getByLabelText ( "common.reactions " ) ) ;
107- await user . click ( getByLabelText ( "action.lower_hand " ) ) ;
106+ await user . click ( getByLabelText ( "Reactions " ) ) ;
107+ await user . click ( getByLabelText ( "Lower hand " ) ) ;
108108 expect ( rtcSession . room . client . redactEvent ) . toHaveBeenCalledWith (
109109 rtcSession . room . roomId ,
110110 reactionEventId ,
@@ -122,7 +122,7 @@ test("Can react with emoji", async () => {
122122 const { getByLabelText, getByText } = render (
123123 < TestComponent vm = { vm } rtcSession = { rtcSession } /> ,
124124 ) ;
125- await user . click ( getByLabelText ( "common.reactions " ) ) ;
125+ await user . click ( getByLabelText ( "Reactions " ) ) ;
126126 await user . click ( getByText ( "🐶" ) ) ;
127127 expect ( rtcSession . room . client . sendEvent ) . toHaveBeenCalledWith (
128128 rtcSession . room . roomId ,
@@ -144,8 +144,8 @@ test("Can fully expand emoji picker", async () => {
144144 const { getByLabelText, container, getByText } = render (
145145 < TestComponent vm = { vm } rtcSession = { rtcSession } /> ,
146146 ) ;
147- await user . click ( getByLabelText ( "common.reactions " ) ) ;
148- await user . click ( getByLabelText ( "action.show_more " ) ) ;
147+ await user . click ( getByLabelText ( "Reactions " ) ) ;
148+ await user . click ( getByLabelText ( "Show more " ) ) ;
149149 expect ( container ) . toMatchSnapshot ( ) ;
150150 await user . click ( getByText ( "🦗" ) ) ;
151151 expect ( rtcSession . room . client . sendEvent ) . toHaveBeenCalledWith (
@@ -168,8 +168,8 @@ test("Can close reaction dialog", async () => {
168168 const { getByLabelText, container } = render (
169169 < TestComponent vm = { vm } rtcSession = { rtcSession } /> ,
170170 ) ;
171- await user . click ( getByLabelText ( "common.reactions " ) ) ;
172- await user . click ( getByLabelText ( "action.show_more " ) ) ;
173- await user . click ( getByLabelText ( "action.show_less " ) ) ;
171+ await user . click ( getByLabelText ( "Reactions " ) ) ;
172+ await user . click ( getByLabelText ( "Show more " ) ) ;
173+ await user . click ( getByLabelText ( "Show less " ) ) ;
174174 expect ( container ) . toMatchSnapshot ( ) ;
175175} ) ;
0 commit comments