From dbfa7fac7e5c3ae5a2633e51ced99cb91567238a Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Fri, 7 Aug 2015 15:38:31 +0200 Subject: [PATCH] LinphoneUITester: go back to contact before each test --- TestsUI/ContactsTester.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/TestsUI/ContactsTester.m b/TestsUI/ContactsTester.m index d18767a12..974364600 100644 --- a/TestsUI/ContactsTester.m +++ b/TestsUI/ContactsTester.m @@ -14,8 +14,11 @@ #pragma mark - Setup -- (void)beforeAll { - [super beforeAll]; +- (void)beforeEach { + [super beforeEach]; + if ([tester tryFindingTappableViewWithAccessibilityLabel:@"Back" error:nil]) { + [tester tapViewWithAccessibilityLabel:@"Back"]; + } [tester tapViewWithAccessibilityLabel:@"Contacts"]; }