mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
TestsUI: add some timeout tolerance
This commit is contained in:
parent
ea272d6bdf
commit
e0703b3746
1 changed files with 7 additions and 0 deletions
|
|
@ -28,6 +28,13 @@
|
|||
linphone_core_set_network_reachable(LC, NO);
|
||||
|
||||
[tester tapViewWithAccessibilityLabel:@"Chat"];
|
||||
|
||||
// it can take several seconds to receive the remote push notification...
|
||||
int timeout = 5;
|
||||
while (timeout > 0) {
|
||||
[tester tryFindingViewWithAccessibilityLabel:@"Contact name, Message" error:nil];
|
||||
timeout--;
|
||||
}
|
||||
[tester waitForViewWithAccessibilityLabel:@"Contact name, Message"
|
||||
value:[NSString stringWithFormat:@"%@, hello my own (1)", self.me]
|
||||
traits:UIAccessibilityTraitStaticText];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue