diff --git a/Vector/Categories/MXKRoomBubbleTableViewCell+Vector.m b/Vector/Categories/MXKRoomBubbleTableViewCell+Vector.m index 0fc6b4d9c..4d9323376 100644 --- a/Vector/Categories/MXKRoomBubbleTableViewCell+Vector.m +++ b/Vector/Categories/MXKRoomBubbleTableViewCell+Vector.m @@ -66,6 +66,7 @@ NSString *const kMXKRoomBubbleCellVectorEditButtonPressed = @"kMXKRoomBubbleCell timeLabel.tag = componentIndex; [timeLabel setTranslatesAutoresizingMaskIntoConstraints:NO]; + timeLabel.accessibilityIdentifier = @"timestampLabel"; [self.bubbleInfoContainer addSubview:timeLabel]; // Define timeLabel constraints (to handle auto-layout in case of screen rotation) @@ -190,6 +191,7 @@ NSString *const kMXKRoomBubbleCellVectorEditButtonPressed = @"kMXKRoomBubbleCell markerView.backgroundColor = kVectorColorGreen; [markerView setTranslatesAutoresizingMaskIntoConstraints:NO]; + markerView.accessibilityIdentifier = @"markerView"; [self.contentView addSubview:markerView]; // Define the marker constraints @@ -253,6 +255,7 @@ NSString *const kMXKRoomBubbleCellVectorEditButtonPressed = @"kMXKRoomBubbleCell timeLabel.adjustsFontSizeToFitWidth = YES; [timeLabel setTranslatesAutoresizingMaskIntoConstraints:NO]; + timeLabel.accessibilityIdentifier = @"dateLabel"; [self.bubbleInfoContainer addSubview:timeLabel]; // Define timeLabel constraints (to handle auto-layout in case of screen rotation) @@ -403,6 +406,7 @@ NSString *const kMXKRoomBubbleCellVectorEditButtonPressed = @"kMXKRoomBubbleCell [editButton addTarget:self action:@selector(onEditButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; [editButton setTranslatesAutoresizingMaskIntoConstraints:NO]; + editButton.accessibilityIdentifier = @"editButton"; [self.bubbleInfoContainer addSubview:editButton]; self.bubbleInfoContainer.userInteractionEnabled = YES; diff --git a/Vector/Model/Room/RoomDataSource.m b/Vector/Model/Room/RoomDataSource.m index c4195b708..59d6c633c 100644 --- a/Vector/Model/Room/RoomDataSource.m +++ b/Vector/Model/Room/RoomDataSource.m @@ -193,6 +193,7 @@ [avatarsContainer refreshReceiptSenders:roomMembers withPlaceHolders:placeholders andAlignment:ReadReceiptAlignmentRight]; avatarsContainer.translatesAutoresizingMaskIntoConstraints = NO; + avatarsContainer.accessibilityIdentifier = @"readReceiptsContainer"; [bubbleCell.bubbleOverlayContainer addSubview:avatarsContainer]; // Force receipts container size diff --git a/Vector/ViewController/RoomViewController.m b/Vector/ViewController/RoomViewController.m index 22b260252..205a18896 100644 --- a/Vector/ViewController/RoomViewController.m +++ b/Vector/ViewController/RoomViewController.m @@ -329,6 +329,7 @@ [missedDiscussionsBadgeLabelBgView.layer setCornerRadius:10]; [missedDiscussionsBarButtonCustomView addSubview:missedDiscussionsBadgeLabelBgView]; + missedDiscussionsBarButtonCustomView.accessibilityIdentifier = @"RoomVCMissedDiscussionsBarButton"; missedDiscussionsBadgeLabel = [[UILabel alloc]initWithFrame:CGRectMake(2, 2, 17, 17)]; missedDiscussionsBadgeLabel.textColor = [UIColor whiteColor];