Add accessibility identifiers to blocklist view.

pull/2/head
Matthew Chen 7 years ago
parent f7d86028da
commit 02340864f8

@ -72,12 +72,13 @@ NS_ASSUME_NONNULL_BEGIN
[addSection [addSection
addItem:[OWSTableItem addItem:[OWSTableItem
disclosureItemWithText:NSLocalizedString(@"SETTINGS_BLOCK_LIST_ADD_BUTTON", disclosureItemWithText:NSLocalizedString(@"SETTINGS_BLOCK_LIST_ADD_BUTTON",
@"A label for the 'add phone number' button in the block list table.") @"A label for the 'add phone number' button in the block list table.")
actionBlock:^{ accessibilityIdentifier:SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, @"add")
AddToBlockListViewController *vc = [[AddToBlockListViewController alloc] init]; actionBlock:^{
[weakSelf.navigationController pushViewController:vc animated:YES]; AddToBlockListViewController *vc = [[AddToBlockListViewController alloc] init];
}]]; [weakSelf.navigationController pushViewController:vc animated:YES];
}]];
[contents addSection:addSection]; [contents addSection:addSection];
// "Blocklist" section // "Blocklist" section
@ -95,6 +96,8 @@ NS_ASSUME_NONNULL_BEGIN
itemWithCustomCellBlock:^{ itemWithCustomCellBlock:^{
ContactTableViewCell *cell = [ContactTableViewCell new]; ContactTableViewCell *cell = [ContactTableViewCell new];
[cell configureWithRecipientId:phoneNumber]; [cell configureWithRecipientId:phoneNumber];
cell.accessibilityIdentifier
= SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, @"user");
return cell; return cell;
} }
customRowHeight:UITableViewAutomaticDimension customRowHeight:UITableViewAutomaticDimension

Loading…
Cancel
Save