TestsUI: close popup if any after each test

This commit is contained in:
Gautier Pelloux-Prayer 2016-02-18 16:31:22 +01:00
parent 2fd35bf0c2
commit d07be21680

View file

@ -39,13 +39,22 @@
[LinphoneManager.instance removeAllAccounts];
// go to dialer
for (NSString *button in @[ @"Cancel", @"Back", @"Hangup", @"Dialer" ]) {
for (NSString *button in @[ @"Cancel", @"Back", @"Hangup", @"Continue", @"Dialer" ]) {
if ([tester tryFindingTappableViewWithAccessibilityLabel:button error:nil]) {
[tester tapViewWithAccessibilityLabel:button traits:UIAccessibilityTraitButton];
}
}
}
- (void)afterEach {
for (NSString *button in @[ @"Cancel", @"Back", @"Hangup", @"Continue", @"Dialer" ]) {
if ([tester tryFindingTappableViewWithAccessibilityLabel:button error:nil]) {
[tester tapViewWithAccessibilityLabel:button traits:UIAccessibilityTraitButton];
}
}
[super afterEach];
}
- (void)beforeEach {
[[LinphoneManager instance] lpConfigSetInt:ORTP_WARNING forKey:@"debugenable_preference"];
[[LinphoneManager instance] lpConfigSetInt:NO forKey:@"animations_preference"];