From b74353d976eb1aa26842a3ff66a3b5c6106e3b97 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Mon, 19 Oct 2015 14:51:08 +0200 Subject: [PATCH] UITester: fix test --- TestsUI/CallTester.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/TestsUI/CallTester.m b/TestsUI/CallTester.m index b51398e24..bc2085602 100644 --- a/TestsUI/CallTester.m +++ b/TestsUI/CallTester.m @@ -53,9 +53,10 @@ } - (void)testDialInvalidSIPURI { - [self callURI:@"123 😀"]; - [tester waitForViewWithAccessibilityLabel: - @"Some invalid characters where found in the given SIP address. Please correct it."]; + NSString *user = @"123 😀"; + [self callURI:user]; + [tester waitForViewWithAccessibilityLabel:[NSString + stringWithFormat:@"Cannot call %@.\nReason was: Call failed", user]]; [tester tapViewWithAccessibilityLabel:@"Cancel" traits:UIAccessibilityTraitButton]; }