Automatic tests: Add accessibility id in alert view controller.

This commit is contained in:
giomfo
2017-01-27 11:28:58 +01:00
parent 8037bae430
commit 97c98373a8
6 changed files with 31 additions and 1 deletions
@@ -2049,6 +2049,7 @@
// Do not display empty action sheet
if (currentAlert.cancelButtonIndex)
{
currentAlert.mxkAccessibilityIdentifier = @"RoomVCEventMenuAlert";
currentAlert.sourceView = roomBubbleTableViewCell;
[currentAlert showInViewController:self];
}
@@ -2273,6 +2274,7 @@
strongSelf->currentAlert = nil;
}];
currentAlert.mxkAccessibilityIdentifier = @"RoomVCCallAlert";
[currentAlert showInViewController:self];
}
// In case of conference call, check that the user has enough power level
@@ -2290,6 +2292,7 @@
strongSelf->currentAlert = nil;
}];
currentAlert.mxkAccessibilityIdentifier = @"RoomVCCallAlert";
[currentAlert showInViewController:self];
}
else
@@ -3064,6 +3067,7 @@
}];
currentAlert.mxkAccessibilityIdentifier = @"RoomVCUnsentMessagesMenuAlert";
currentAlert.sourceView = roomActivitiesView;
[currentAlert showInViewController:self];