File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
StreamChatSwiftUITestsAppTests Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -393,10 +393,7 @@ extension UserRobot {
393393 @discardableResult
394394 func tapOnSendGiphyButton( messageCellIndex: Int = 0 ) -> Self {
395395 let messageCell = messageCell ( withIndex: messageCellIndex)
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)
396+ MessageListPage . Attributes. giphySendButton ( in: messageCell) . wait ( ) . tap ( )
400397 return self
401398 }
402399
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ final class Ephemeral_Messages_Tests: StreamTestCase {
2525 . openChannel ( )
2626 }
2727 WHEN ( " user sends a giphy using giphy command " ) {
28- userRobot. sendGiphy ( )
28+ userRobot. sendGiphy ( useComposerCommand : true , send : false ) . tapOnBackButton ( ) . openChannel ( ) . tapOnSendGiphyButton ( )
2929 }
3030 THEN ( " user observes the animated gif " ) {
3131 userRobot. assertGiphyImage ( )
@@ -153,7 +153,7 @@ final class Ephemeral_Messages_Tests: StreamTestCase {
153153 . openChannel ( )
154154 }
155155 WHEN ( " user sends a giphy using giphy command " ) {
156- userRobot. sendGiphy ( useComposerCommand: true )
156+ userRobot. sendGiphy ( useComposerCommand: true , send : false ) . tapOnBackButton ( ) . openChannel ( ) . tapOnSendGiphyButton ( )
157157 }
158158 THEN ( " user observes the animated gif " ) {
159159 userRobot. assertGiphyImage ( )
You can’t perform that action at this time.
0 commit comments