File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
StreamChatSwiftUITestsAppTests/Robots Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -393,8 +393,10 @@ extension UserRobot {
393393 @discardableResult
394394 func tapOnSendGiphyButton( messageCellIndex: Int = 0 ) -> Self {
395395 let messageCell = messageCell ( withIndex: messageCellIndex)
396- // MessageListPage.Attributes.giphySendButton(in: messageCell).wait().tap()
397- MessageListPage . Attributes. actionButtons ( ) . firstMatch. wait ( ) . tap ( )
396+ let sendButton = MessageListPage . Attributes. giphySendButton ( in: messageCell)
397+ let sendButtonHeight = sendButton. wait ( ) . frame. height
398+ let giphyLabelFrame = MessageListPage . Attributes. giphyLabel ( in: messageCell) . frame
399+ app. tap ( x: giphyLabelFrame. midX, y: giphyLabelFrame. midY + sendButtonHeight)
398400 return self
399401 }
400402
You can’t perform that action at this time.
0 commit comments