Skip to content

Commit d436b08

Browse files
Resolve multiple matches for ChatChannelView accessibility identifier (#325)
1 parent 4765557 commit d436b08

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Sources/StreamChatSwiftUI/ChatChannel/ChatChannelView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ public struct ChatChannelView<Factory: ViewFactory>: View, KeyboardReadable {
179179
)
180180
.padding(.bottom, keyboardShown || !tabBarAvailable || generatingSnapshot ? 0 : bottomPadding)
181181
.ignoresSafeArea(.container, edges: tabBarAvailable ? .bottom : [])
182+
.accessibilityElement(children: .contain)
182183
.accessibilityIdentifier("ChatChannelView")
183184
}
184185

StreamChatSwiftUITestsAppTests/Pages/MessageListPage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class MessageListPage {
2424
}
2525

2626
static var list: XCUIElement {
27-
app.scrollViews.matching(NSPredicate(format: "identifier LIKE 'ChatChannelView' or identifier LIKE 'MessageListScrollView'")).firstMatch
27+
app.scrollViews.matching(NSPredicate(format: "identifier LIKE 'MessageListView' or identifier LIKE 'MessageListScrollView'")).firstMatch
2828
}
2929

3030
static var typingIndicator: XCUIElement {

0 commit comments

Comments
 (0)