mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
TestsUI: close popup if any after each test
This commit is contained in:
parent
2fd35bf0c2
commit
d07be21680
1 changed files with 10 additions and 1 deletions
|
|
@ -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"];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue