From 02340864f83247c5849bab93e3198ef6d5fdaad1 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Tue, 19 Mar 2019 16:07:06 -0400 Subject: [PATCH] Add accessibility identifiers to blocklist view. --- .../AppSettings/BlockListViewController.m | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Signal/src/ViewControllers/AppSettings/BlockListViewController.m b/Signal/src/ViewControllers/AppSettings/BlockListViewController.m index e2c62a0e0..9bc5b337c 100644 --- a/Signal/src/ViewControllers/AppSettings/BlockListViewController.m +++ b/Signal/src/ViewControllers/AppSettings/BlockListViewController.m @@ -72,12 +72,13 @@ NS_ASSUME_NONNULL_BEGIN [addSection addItem:[OWSTableItem - disclosureItemWithText:NSLocalizedString(@"SETTINGS_BLOCK_LIST_ADD_BUTTON", - @"A label for the 'add phone number' button in the block list table.") - actionBlock:^{ - AddToBlockListViewController *vc = [[AddToBlockListViewController alloc] init]; - [weakSelf.navigationController pushViewController:vc animated:YES]; - }]]; + disclosureItemWithText:NSLocalizedString(@"SETTINGS_BLOCK_LIST_ADD_BUTTON", + @"A label for the 'add phone number' button in the block list table.") + accessibilityIdentifier:SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, @"add") + actionBlock:^{ + AddToBlockListViewController *vc = [[AddToBlockListViewController alloc] init]; + [weakSelf.navigationController pushViewController:vc animated:YES]; + }]]; [contents addSection:addSection]; // "Blocklist" section @@ -95,6 +96,8 @@ NS_ASSUME_NONNULL_BEGIN itemWithCustomCellBlock:^{ ContactTableViewCell *cell = [ContactTableViewCell new]; [cell configureWithRecipientId:phoneNumber]; + cell.accessibilityIdentifier + = SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, @"user"); return cell; } customRowHeight:UITableViewAutomaticDimension