Skip to content

Commit 0b48cf8

Browse files
committed
Test
1 parent f3226a8 commit 0b48cf8

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

StreamChatSwiftUITestsAppTests/Robots/UserRobot.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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

StreamChatSwiftUITestsAppTests/Tests/Ephemeral_Messages_Tests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)