google / google/EarlGrey

Unable to perform UI operations after async calls completes

Open
#702 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
5.7k
Forks
737
Avg merge
1d 20h
Merged PRs (30d)
5

Description

Hello,

I am making an asynchronous call to createAccounts and those account information needs to be used in text-box field for automation.

Async call gets complete, but Earl-grey i snot able to perform UI operations. Below is the code

```
func testAccountCreation(){
//Create Account
API().createAccount(account: TestAccount.basic, env: Environment.STAGE) { (testAccount) in
print("Account Creation Status \(testAccount)")
self.account = testAccount

self.loginOnSignInScreen(emailOrUserName: (self.account?.email)!, password: "password")
}
}
```

I experimented with below configs - but no luck.

let greyConfig = GREYConfiguration.sharedInstance()
greyConfig.setValue(60.0, forConfigKey:kGREYConfigKeyInteractionTimeoutDuration)
greyConfig.setValue(30.0, forConfigKey:kGREYConfigKeyCALayerMaxAnimationDuration)
greyConfig.setValue(20.0, forConfigKey: kGREYConfigKeyCALayerMaxAnimationDuration)

Below are the logs

2018-04-30 14:44:44.550682-0700 XXXX[20729:245847] **EarlGrey tried waiting for 10.0 seconds for the application to reach an idle state. It is now forced to clear the state of GREYAppStateTracker, because the test might have caused the application to remain in non-idle state indefinitely.
Full state tracker description: Waiting for CAAnimations to finish. Continuous animations may never finish and must be stopped explicitly. Animations attached to hidden view may still be running in the background.
Waiting for network requests to finish. By default, EarlGrey tracks all network requests. To change this behavior, refer to GREYConfiguration.
Waiting for UIView's draw/layout pass to complete. A draw/layout pass normally completes in the next runloop drain.**

Full state transition call stack for all elements:
=> Waiting for CAAnimations to finish. Continuous animations may never finish and must be stopped explicitly. Animations attached to hidden view may still be running in the background.
(
0 EarlGrey 0x000000010d730369 __78-[GREYAppStateTracker grey_changeState:forElement:orExternalElementID:toBusy:]_block_invoke + 1305
1 EarlGrey 0x000000010d72f7b0 -[GREYAppStateTracker grey_performBlockInCriticalSection:] + 336
2 EarlGrey 0x000000010d72fd4c -[GREYAppStateTracker grey_changeState:forElement:orExternalElementID:toBusy:] + 668
3 EarlGrey 0x000000010d72da7d -[GREYAppStateTracker trackState:forElement:] + 77
4 EarlGrey 0x000000010d76bcd1 -[CAAnimation(GREYAdditions) grey_trackForDurationOfAnimation] + 113
5 EarlGrey 0x000000010d76bb4e -[CAAnimation(GREYAdditions) grey_setAnimationState:] + 174
6 EarlGrey 0x000000010d73d9b1 AnimationDidStart + 129
7 EarlGrey 0x000000010d73dd1a -[GREYCAAnimationDelegate greyswizzled_animationDidStart:] + 58
8 QuartzCore 0x0000000116e9873c _ZN2CA5Layer23run_animation_callbacksEPv + 214
9 EarlGrey 0x000000010d750c54 __67-[GREYDispatchQueueTracker grey_dispatchAsyncCallWithContext:work:]_block_invoke + 36
10 libdispatch.dylib 0x000000011aebd73b _dispatch_call_block_and_release + 12
11 libdispatch.dylib 0x000000011aebe779 _dispatch_client_callout + 8
12 libdispatch.dylib 0x000000011aec8778 _dispatch_main_queue_callback_4CF + 1279
13 CoreFoundation 0x0000000114539c99 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
14 CoreFoundation 0x00000001144fdea6 __CFRunLoopRun + 2342
15 CoreFoundation 0x00000001144fd30b CFRunLoopRunSpecific + 635
16 EarlGrey 0x000000010d76efa3 -[GREYRunLoopSpinner grey_drainRunLoopInActiveModeAndCheckCondition:forTime:] + 627
17 EarlGrey 0x000000010d76e90a -[GREYRunLoopSpinner spinWithStopConditionBlock:] + 890
18 EarlGrey 0x000000010d7bb12e -[GREYUIThreadExecutor executeSyncWithTimeout:block:error:] + 1422
19 EarlGrey 0x000000010d7ba7d6 -[GREYUIThreadExecutor drainUntilIdleWithTimeout:] + 342
20 EarlGrey 0x000000010d7bcdd3 -[GREYUIThreadExecutor grey_forcedStateTrackerCleanUp] + 51
21 CoreFoundation 0x0000000114512b8c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
22 CoreFoundation 0x0000000114512a65 _CFXRegistrationPost + 453
23 CoreFoundation 0x00000001145127a1 ___CFXNotificationPost_block_invoke + 225
24 CoreFoundation 0x00000001144d4422 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1826
25 CoreFoundation 0x00000001144d35a1 _CFXNotificationPost + 609
26 Foundation 0x0000000111a51e57 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
27 EarlGrey 0x000000010d776262 -[XCTestCase(GREYAdditions) grey_sendNotification:] + 210
28 EarlGrey 0x000000010d776189 -[XCTestCase(GREYAdditions) grey_tearDown] + 121
29 XCTest 0x00000001348d0b03 +[XCTestCase(Failures) performFailableBlock:shouldInterruptTest:] + 36
30 XCTest 0x00000001348d0a4e -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 54
31 XCTest 0x00000001348776cb __51-[XCTestCase _performTearDownSequenceWithSelector:]_block_invoke + 99
32 XCTest 0x00000001348dc9e8 -[XCTContext _runActivityNamed:type:block:] + 304
33 XCTest 0x000000013487e558 -[XCTestCase startActivityWithTitle:type:block:] + 218
34 XCTest 0x000000013487e735 -[XCTestCase startActivityWithTitle:block:] + 60
35 XCTest 0x000000013487764d -[XCTestCase _performTearDownSequenceWithSelector:] + 92
36 XCTest 0x0000000134875eb7 __24-[XCTestCase invokeTest]_block_invoke + 1251
37 XCTest 0x00000001348d5a9d -[XCUITestContext performInScope:] + 248
38 XCTest 0x00000001348759bf -[XCTestCase invokeTest] + 175
39 EarlGrey 0x000000010d775b49 -[XCTestCase(GREYAdditions) grey_invokeTest] + 1545
40 XCTest 0x0000000134877595 __26-[XCTestCase performTest:]_block_invoke_2 + 42
41 XCTest 0x00000001348d0b03 +[XCTestCase(Failures) performFailableBlock:shouldInterruptTest:] + 36
42 XCTest 0x00000001348d0a4e -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 54
43 XCTest 0x0000000134877442 __26-[XCTestCase performTest:]_block_invoke.318 + 90
44 XCTest 0x00000001348dd081 +[XCTContext runInContextForTestCase:block:] + 225
45 XCTest 0x0000000134876b3f -[XCTestCase performTest:] + 673
46 XCTest 0x00000001348b9767 -[XCTest runTest] + 57
47 XCTest 0x0000000134872381 __27-[XCTestSuite performTest:]_block_invoke + 365
48 XCTest 0x0000000134871b5d -[XCTestSuite _performProtectedSectionForTest:testSection:] + 55
49 XCTest 0x0000000134871e1e -[XCTestSuite performTest:] + 296
50 XCTest 0x00000001348b9767 -[XCTest runTest] + 57
51 XCTest 0x0000000134872381 __27-[XCTestSuite performTest:]_block_invoke + 365
52 XCTest 0x0000000134871b5d -[XCTestSuite _performProtectedSectionForTest:testSection:] + 55
53 XCTest 0x0000000134871e1e -[XCTestSuite performTest:] + 296
54 XCTest 0x00000001348b9767 -[XCTest runTest] + 57
55 XCTest 0x0000000134872381 __27-[XCTestSuite performTest:]_block_invoke + 365
56 XCTest 0x0000000134871b5d -[XCTestSuite _performProtectedSectionForTest:testSection:] + 55
57 XCTest 0x0000000134871e1e -[XCTestSuite performTest:] + 296
58 XCTest 0x00000001348b9767 -[XCTest runTest] + 57
59 XCTest 0x00000001348e6fc6 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 40
60 XCTest 0x000000013488a3c9 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 594
61 XCTest 0x00000001348e6dd1 -[XCTTestRunSession runTestsAndReturnError:] + 369
62 XCTest 0x0000000134858cb1 -[XCTestDriver runTestsAndReturnError:] + 447
63 XCTest 0x00000001348dbbd1 _XCTestMain + 960
64 CoreFoundation 0x0000000114519b0c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
65 CoreFoundation 0x00000001144fe2db __CFRunLoopDoBlocks + 331
66 CoreFoundation 0x00000001144fda84 __CFRunLoopRun + 1284
67 CoreFoundation 0x00000001144fd30b CFRunLoopRunSpecific + 635
68 GraphicsServices 0x000000011d120a73 GSEventRunModal + 62
69 UIKit 0x00000001174290b7 UIApplicationMain + 159
70 XXXX 0x000000010afc8617 main + 55
71 libdyld.dylib 0x000000011af33955 start + 1
72 ??? 0x0000000000000007 0x0 + 7
)
<__NSCFLocalDataTask:0x7fe2f3f612b0> => Waiting for network requests to finish. By default, EarlGrey tracks all network requests. To change this behavior, refer to GREYConfiguration.
(
0 EarlGrey 0x000000010d730369 __78-[GREYAppStateTracker grey_changeState:forElement:orExternalElementID:toBusy:]_block_invoke + 1305
1 EarlGrey 0x000000010d72f7b0 -[GREYAppStateTracker grey_performBlockInCriticalSection:] + 336
2 EarlGrey 0x000000010d72fd4c -[GREYAppStateTracker grey_changeState:forElement:orExternalElementID:toBusy:] + 668
3 EarlGrey 0x000000010d72da7d -[GREYAppStateTracker trackState:forElement:] + 77
4 EarlGrey 0x000000010d785f3c -[__NSCFLocalDataTask_GREYAdditions greyswizzled_resume] + 284
5 LightningData 0x000000010f3706ba -[ENRegistrationService _backgroundRequestSender:] + 1834
6 Foundation 0x0000000111a793b3 __NSThread__start__ + 1221
7 libsystem_pthread.dylib 0x000000011b3e1661 _pthread_body + 340
8 libsystem_pthread.dylib 0x000000011b3e150d _pthread_body + 0
9 libsystem_pthread.dylib 0x000000011b3e0bf9 thread_start + 13
)
=> Waiting for UIView's draw/layout pass to complete. A draw/layout pass normally completes in the next runloop drain.
(
0 EarlGrey 0x000000010d730369 __78-[GREYAppStateTracker grey_changeState:forElement:orExternalElementID:toBusy:]_block_invoke + 1305
1 EarlGrey 0x000000010d72f7b0 -[GREYAppStateTracker grey_performBlockInCriticalSection:] + 336
2 EarlGrey 0x000000010d72fd4c -[GREYAppStateTracker grey_changeState:forElement:orExternalElementID:toBusy:] + 668
3 EarlGrey 0x000000010d72da7d -[GREYAppStateTracker trackState:forElement:] + 77
4 EarlGrey 0x000000010d7694b2 -[UIView(GREYAdditions) greyswizzled_setNeedsDisplay] + 98
5 UIKit 0x00000001174c519c -[UIView initWithFrame:] + 138
6 UIKit 0x00000001175a3b7c -[UIControl initWithFrame:] + 81
7 UIKit 0x000000011788749a -[UIButton initWithFrame:] + 145
8 UIKit 0x000000011813fe8c -[UITextField clearButton] + 136
9 Foundation 0x0000000111a89ebc -[NSObject(NSKeyValueCoding) valueForKey:] + 284
10 AccessibilityUtilities 0x0000000133d23048 __57-[NSObject(UIAccessibilitySafeCategory) safeValueForKey:]_block_invoke + 30
11 AccessibilityUtilities 0x0000000133d234e8 -[NSObject(UIAccessibilitySafeCategory) _accessibilityPerformSafeValueKeyBlock:withKey:onClass:] + 69
12 AccessibilityUtilities 0x0000000133d22cb5 -[NSObject(UIAccessibilitySafeCategory) safeValueForKey:] + 232
13 UIKit 0x00000001383ac29a -[UITextFieldAccessibility _accessibilityRightButtons] + 75
14 UIKit 0x00000001383acbdb -[UITextFieldAccessibility accessibilityElements] + 226
15 UIAccessibility 0x0000000133030951 -[NSObject(AXPrivCategory) _accessibilityElements] + 69
16 UIAccessibility 0x0000000133050d23 -[NSObjectAccessibility accessibilityElementCount] + 81
17 EarlGrey 0x000000010d765c53 -[GREYTraversal exploreImmediateChildren:] + 1731
18 EarlGrey 0x000000010d7725a9 -[GREYTraversalDFS grey_nextObjectDFS] + 313
19 EarlGrey 0x000000010d77231a -[GREYTraversalDFS enumerateUsingBlock:] + 378
20 EarlGrey 0x000000010d7b1015 +[GREYElementHierarchy grey_hierarchyString:outputString:andAnnotationDictionary:] + 869
21 EarlGrey 0x000000010d7b0505 +[GREYElementHierarchy hierarchyStringForElement:] + 501
22 EarlGrey 0x000000010d7b0ae8 +[GREYElementHierarchy hierarchyStringForAllUIWindows] + 616
23 EarlGrey 0x000000010d73a6f1 I_GREYErrorMake + 689
24 EarlGrey 0x000000010d7bb322 -[GREYUIThreadExecutor executeSyncWithTimeout:block:error:] + 1922
25 EarlGrey 0x000000010d7ba7d6 -[GREYUIThreadExecutor drainUntilIdleWithTimeout:] + 342
26 EarlGrey 0x000000010d7bcdd3 -[GREYUIThreadExecutor grey_forcedStateTrackerCleanUp] + 51
27 CoreFoundation 0x0000000114512b8c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
28 CoreFoundation 0x0000000114512a65 _CFXRegistrationPost + 453
29 CoreFoundation 0x00000001145127a1 ___CFXNotificationPost_block_invoke + 225
30 CoreFoundation 0x00000001144d4422 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1826
31 CoreFoundation 0x00000001144d35a1 _CFXNotificationPost + 609
32 Foundation 0x0000000111a51e57 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
33 EarlGrey 0x000000010d776262 -[XCTestCase(GREYAdditions) grey_sendNotification:] + 210
34 EarlGrey 0x000000010d776189 -[XCTestCase(GREYAdditions) grey_tearDown] + 121
35 XCTest 0x00000001348d0b03 +[XCTestCase(Failures) performFailableBlock:shouldInterruptTest:] + 36
36 XCTest 0x00000001348d0a4e -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 54
37 XCTest 0x00000001348776cb __51-[XCTestCase _performTearDownSequenceWithSelector:]_block_invoke + 99
38 XCTest 0x00000001348dc9e8 -[XCTContext _runActivityNamed:type:block:] + 304
39 XCTest 0x000000013487e558 -[XCTestCase startActivityWithTitle:type:block:] + 218
40 XCTest 0x000000013487e735 -[XCTestCase startActivityWithTitle:block:] + 60
41 XCTest 0x000000013487764d -[XCTestCase _performTearDownSequenceWithSelector:] + 92
42 XCTest 0x0000000134875eb7 __24-[XCTestCase invokeTest]_block_invoke + 1251
43 XCTest 0x00000001348d5a9d -[XCUITestContext performInScope:] + 248
44 XCTest 0x00000001348759bf -[XCTestCase invokeTest] + 175
45 EarlGrey 0x000000010d775b49 -[XCTestCase(GREYAdditions) grey_invokeTest] + 1545
46 XCTest 0x0000000134877595 __26-[XCTestCase performTest:]_block_invoke_2 + 42
47 XCTest 0x00000001348d0b03 +[XCTestCase(Failures) performFailableBlock:shouldInterruptTest:] + 36
48 XCTest 0x00000001348d0a4e -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 54
49 XCTest 0x0000000134877442 __26-[XCTestCase performTest:]_block_invoke.318 + 90
50 XCTest 0x00000001348dd081 +[XCTContext runInContextForTestCase:block:] + 225
51 XCTest 0x0000000134876b3f -[XCTestCase performTest:] + 673
52 XCTest 0x00000001348b9767 -[XCTest runTest] + 57
53 XCTest 0x0000000134872381 __27-[XCTestSuite performTest:]_block_invoke + 365
54 XCTest 0x0000000134871b5d -[XCTestSuite _performProtectedSectionForTest:testSection:] + 55
55 XCTest 0x0000000134871e1e -[XCTestSuite performTest:] + 296
56 XCTest 0x00000001348b9767 -[XCTest runTest] + 57
57 XCTest 0x0000000134872381 __27-[XCTestSuite performTest:]_block_invoke + 365
58 XCTest 0x0000000134871b5d -[XCTestSuite _performProtectedSectionForTest:testSection:] + 55
59 XCTest 0x0000000134871e1e -[XCTestSuite performTest:] + 296
60 XCTest 0x00000001348b9767 -[XCTest runTest] + 57
61 XCTest 0x0000000134872381 __27-[XCTestSuite performTest:]_block_invoke + 365
62 XCTest 0x0000000134871b5d -[XCTestSuite _performProtectedSectionForTest:testSection:] + 55
63 XCTest 0x0000000134871e1e -[XCTestSuite performTest:] + 296
64 XCTest 0x00000001348b9767 -[XCTest runTest] + 57
65 XCTest 0x00000001348e6fc6 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 40
66 XCTest 0x000000013488a3c9 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 594
67 XCTest 0x00000001348e6dd1 -[XCTTestRunSession runTestsAndReturnError:] + 369
68 XCTest 0x0000000134858cb1 -[XCTestDriver runTestsAndReturnError:] + 447
69 XCTest 0x00000001348dbbd1 _XCTestMain + 960
70 CoreFoundation 0x0000000114519b0c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
71 CoreFoundation 0x00000001144fe2db __CFRunLoopDoBlocks + 331
72 CoreFoundation 0x00000001144fda84 __CFRunLoopRun + 1284
73 CoreFoundation 0x00000001144fd30b CFRunLoopRunSpecific + 635
74 GraphicsServices 0x000000011d120a73 GSEventRunModal + 62
75 UIKit 0x00000001174290b7 UIApplicationMain + 159
76 XXXX 0x000000010afc8617 main + 55
77 libdyld.dylib 0x000000011af33955 start + 1
78 ??? 0x0000000000000007 0x0 + 7
)
=> Waiting for UIView's draw/layout pass to complete. A draw/layout pass normally completes in the next runloop drain.
(
0 EarlGrey 0x000000010d730369 __78-[GREYAppStateTracker grey_changeState:forElement:orExternalElementID:toBusy:]_block_invoke + 1305
1 EarlGrey 0x000000010d72f7b0 -[GREYAppStateTracker grey_performBlockInCriticalSection:] + 336
2 EarlGrey 0x000000010d72fd4c -[GREYAppStateTracker grey_changeState:forElement:orExternalElementID:toBusy:] + 668
3 EarlGrey 0x000000010d72da7d -[GREYAppStateTracker trackState:forElement:] + 77
4 EarlGrey 0x000000010d75dd32 -[CALayer(GREYAdditions) greyswizzled_setNeedsLayout] + 98
5 QuartzCore 0x0000000116e8a917 _ZN2CA5Layer19property_did_changeEPNS_11TransactionEj + 2871
6 QuartzCore 0x0000000116e89da4 _ZN2CA5Layer10end_changeEPNS_11TransactionEjP11objc_objectS4_ + 72
7 QuartzCore 0x0000000116e92143 _ZN2CA5Layer10set_boundsERKNS_4RectEb + 451
8 QuartzCore 0x0000000116e824bd -[CALayer setBounds:] + 251
9 UIKit 0x00000001174c49c2 -[UIView _createLayerWithFrame:] + 458
10 UIKit 0x00000001174c5522 UIViewCommonInitWithFrame + 867
11 UIKit 0x00000001174c5183 -[UIView initWithFrame:] + 113
12 UIKit 0x00000001175a3b7c -[UIControl initWithFrame:] + 81
13 UIKit 0x000000011788749a -[UIButton initWithFrame:] + 145
14 UIKit 0x000000011813fe8c -[UITextField clearButton] + 136
15 Foundation 0x0000000111a89ebc -[NSObject(NSKeyValueCoding) valueForKey:] + 284
16 AccessibilityUtilities 0x0000000133d23048 __57-[NSObject(UIAccessibilitySafeCategory) safeValueForKey:]_block_invoke + 30
17 AccessibilityUtilities 0x0000000133d234e8 -[NSObject(UIAccessibilitySafeCategory) _accessibilityPerformSafeValueKeyBlock:withKey:onClass:] + 69
18 AccessibilityUtilities 0x0000000133d22cb5 -[NSObject(UIAccessibilitySafeCategory) safeValueForKey:] + 232
19 UIKit 0x00000001383ac29a -[UITextFieldAccessibility _accessibilityRightButtons] + 75
20 UIKit 0x00000001383acbdb -[UITextFieldAccessibility accessibilityElements] + 226
21 UIAccessibility 0x0000000133030951 -[NSObject(AXPrivCategory) _accessibilityElements] + 69
22 UIAccessibility 0x0000000133050d23 -[NSObjectAccessibility accessibilityElementCount] + 81
23 EarlGrey 0x000000010d765c53 -[GREYTraversal exploreImmediateChildren:] + 1731
24 EarlGrey 0x000000010d7725a9 -[GREYTraversalDFS grey_nextObjectDFS] + 313
25 EarlGrey 0x000000010d77231a -[GREYTraversalDFS enumerateUsingBlock:] + 378
26 EarlGrey 0x000000010d7b1015 +[GREYElementHierarchy grey_hierarchyString:outputString:andAnnotationDictionary:] + 869
27 EarlGrey 0x000000010d7b0505 +[GREYElementHierarchy hierarchyStringForElement:] + 501
28 EarlGrey 0x000000010d7b0ae8 +[GREYElementHierarchy hierarchyStringForAllUIWindows] + 616
29 EarlGrey 0x000000010d73a6f1 I_GREYErrorMake + 689
30 EarlGrey 0x000000010d7bb322 -[GREYUIThreadExecutor executeSyncWithTimeout:block:error:] + 1922
31 EarlGrey 0x000000010d7ba7d6 -[GREYUIThreadExecutor drainUntilIdleWithTimeout:] + 342
32 EarlGrey 0x000000010d7bcdd3 -[GREYUIThreadExecutor grey_forcedStateTrackerCleanUp] + 51
33 CoreFoundation 0x0000000114512b8c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
34 CoreFoundation 0x0000000114512a65 _CFXRegistrationPost + 453
35 CoreFoundation 0x00000001145127a1 ___CFXNotificationPost_block_invoke + 225
36 CoreFoundation 0x00000001144d4422 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1826
37 CoreFoundation 0x00000001144d35a1 _CFXNotificationPost + 609
38 Foundation 0x0000000111a51e57 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
39 EarlGrey 0x000000010d776262 -[XCTestCase(GREYAdditions) grey_sendNotification:] + 210
40 EarlGrey 0x000000010d776189 -[XCTestCase(GREYAdditions) grey_tearDown] + 121
41 XCTest 0x00000001348d0b03 +[XCTestCase(Failures) performFailableBlock:shouldInterruptTest:] + 36
42 XCTest 0x00000001348d0a4e -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 54
43 XCTest 0x00000001348776cb __51-[XCTestCase _performTearDownSequenceWithSelector:]_block_invoke + 99
44 XCTest 0x00000001348dc9e8 -[XCTContext _runActivityNamed:type:block:] + 304
45 XCTest 0x000000013487e558 -[XCTestCase startActivityWithTitle:type:block:] + 218
46 XCTest 0x000000013487e735 -[XCTestCase startActivityWithTitle:block:] + 60
47 XCTest 0x000000013487764d -[XCTestCase _performTearDownSequenceWithSelector:] + 92
48 XCTest 0x0000000134875eb7 __24-[XCTestCase invokeTest]_block_invoke + 1251
49 XCTest 0x00000001348d5a9d -[XCUITestContext performInScope:] + 248
50 XCTest 0x00000001348759bf -[XCTestCase invokeTest] + 175
51 EarlGrey 0x000000010d775b49 -[XCTestCase(GREYAdditions) grey_invokeTest] + 1545
52 XCTest 0x0000000134877595 __26-[XCTestCase performTest:]_block_invoke_2 + 42
53 XCTest 0x00000001348d0b03 +[XCTestCase(Failures) performFailableBlock:shouldInterruptTest:] + 36
54 XCTest 0x00000001348d0a4e -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 54
55 XCTest 0x0000000134877442 __26-[XCTestCase performTest:]_block_invoke.318 + 90
56 XCTest 0x00000001348dd081 +[XCTContext runInContextForTestCase:block:] + 225
57 XCTest 0x0000000134876b3f -[XCTestCase performTest:] + 673
58 XCTest 0x00000001348b9767 -[XCTest runTest] + 57
59 XCTest 0x0000000134872381 __27-[XCTestSuite performTest:]_block_invoke + 365
60 XCTest 0x0000000134871b5d -[XCTestSuite _performProtectedSectionForTest:testSection:] + 55
61 XCTest 0x0000000134871e1e -[XCTestSuite performTest:] + 296
62 XCTest 0x00000001348b9767 -[XCTest runTest] + 57
63 XCTest 0x0000000134872381 __27-[XCTestSuite performTest:]_block_invoke + 365
64 XCTest 0x0000000134871b5d -[XCTestSuite _performProtectedSectionForTest:testSection:] + 55
65 XCTest 0x0000000134871e1e -[XCTestSuite performTest:] + 296
66 XCTest 0x00000001348b9767 -[XCTest runTest] + 57
67 XCTest 0x0000000134872381 __27-[XCTestSuite performTest:]_block_invoke + 365
68 XCTest 0x0000000134871b5d -[XCTestSuite _performProtectedSectionForTest:testSection:] + 55
69 XCTest 0x0000000134871e1e -[XCTestSuite performTest:] + 296
70 XCTest 0x00000001348b9767 -[XCTest runTest] + 57
71 XCTest 0x00000001348e6fc6 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 40
72 XCTest 0x000000013488a3c9 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 594
73 XCTest 0x00000001348e6dd1 -[XCTTestRunSession runTestsAndReturnError:] + 369
74 XCTest 0x0000000134858cb1 -[XCTestDriver runTestsAndReturnError:] + 447
75 XCTest 0x00000001348dbbd1 _XCTestMain + 960
76 CoreFoundation 0x0000000114519b0c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
77 CoreFoundation 0x00000001144fe2db __CFRunLoopDoBlocks + 331
78 CoreFoundation 0x00000001144fda84 __CFRunLoopRun + 1284
79 CoreFoundation 0x00000001144fd30b CFRunLoopRunSpecific + 635
80 GraphicsServices 0x000000011d120a73 GSEventRunModal + 62
81 UIKit 0x00000001174290b7 UIApplicationMain + 159
82 XXXX 0x000000010afc8617 main + 55
83 libdyld.dylib 0x000000011af33955 start + 1
84 ??? 0x0000000000000007 0x0 + 7
)
=> Waiting for UIView's draw/layout pass to complete. A draw/layout pass normally completes in the next runloop drain.
(
0 EarlGrey 0x000000010d730369 __78-[GREYAppStateTracker grey_changeState:forElement:orExternalElementID:toBusy:]_block_invoke + 1305
1 EarlGrey 0x000000010d72f7b0 -[GREYAppStateTracker grey_performBlockInCriticalSection:] + 336
2 EarlGrey 0x000000010d72fd4c -[GREYAppStateTracker grey_changeState:forElement:orExternalElementID:toBusy:] + 668
3 EarlGrey 0x000000010d72da7d -[GREYAppStateTracker trackState:forElement:] + 77
4 EarlGrey 0x000000010d7694b2 -[UIView(GREYAdditions) greyswizzled_setNeedsDisplay] + 98
5 UIKit 0x00000001174c519c -[UIView initWithFrame:] + 138
6 UIKit 0x00000001175a3b7c -[UIControl initWithFrame:] + 81
7 UIKit 0x000000011788749a -[UIButton initWithFrame:] + 145
8 UIKit 0x000000011813fe8c -[UITextField clearButton] + 136
9 Foundation 0x0000000111a89ebc -[NSObject(NSKeyValueCoding) valueForKey:] + 284
10 AccessibilityUtilities 0x0000000133d23048 __57-[NSObject(UIAccessibilitySafeCategory) safeValueForKey:]_block_invoke + 30
11 AccessibilityUtilities 0x0000000133d234e8 -[NSObject(UIAccessibilitySafeCategory) _accessibilityPerformSafeValueKeyBlock:withKey:onClass:] + 69
12 AccessibilityUtilities 0x0000000133d22cb5 -[NSObject(UIAccessibilitySafeCategory) safeValueForKey:] + 232
13 UIKit 0x00000001383ac29a -[UITextFieldAccessibility _accessibilityRightButtons] + 75
14 UIKit 0x00000001383acbdb -[UITextFieldAccessibility accessibilityElements] + 226
15 UIAccessibility 0x0000000133030951 -[NSObject(AXPrivCategory) _accessibilityElements] + 69
16 UIAccessibility 0x0000000133050d23 -[NSObjectAccessibility accessibilityElementCount] + 81
17 EarlGrey 0x000000010d765c53 -[GREYTraversal exploreImmediateChildren:] + 1731
18 EarlGrey 0x000000010d7725a9 -[GREYTraversalDFS grey_nextObjectDFS] + 313
19 EarlGrey 0x000000010d77231a -[GREYTraversalDFS enumerateUsingBlock:] + 378
20 EarlGrey 0x000000010d7b1015 +[GREYElementHierarchy grey_hierarchyString:outputString:andAnnotationDictionary:] + 869
21 EarlGrey 0x000000010d7b0505 +[GREYElementHierarchy hierarchyStringForElement:] + 501
22 EarlGrey 0x000000010d7b0ae8 +[GREYElementHierarchy hierarchyStringForAllUIWindows] + 616
23 EarlGrey 0x000000010d73a6f1 I_GREYErrorMake + 689
24 EarlGrey 0x000000010d7bb322 -[GREYUIThreadExecutor executeSyncWithTimeout:block:error:] + 1922
25 EarlGrey 0x000000010d7ba7d6 -[GREYUIThreadExecutor drainUntilIdleWithTimeout:] + 342
26 EarlGrey 0x000000010d7bcdd3 -[GREYUIThreadExecutor grey_forcedStateTrackerCleanUp] + 51
27 CoreFoundation 0x0000000114512b8c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
28 CoreFoundation 0x0000000114512a65 _CFXRegistrationPost + 453
29 CoreFoundation 0x00000001145127a1 ___CFXNotificationPost_block_invoke + 225
30 CoreFoundation 0x00000001144d4422 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1826
31 CoreFoundation 0x00000001144d35a1 _CFXNotificationPost + 609
32 Foundation 0x0000000111a51e57 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
33 EarlGrey 0x000000010d776262 -[XCTestCase(GREYAdditions) grey_sendNotification:] + 210
34 EarlGrey 0x000000010d776189 -[XCTestCase(GREYAdditions) grey_tearDown] + 121
35 XCTest 0x00000001348d0b03 +[XCTestCase(Failures) performFailableBlock:shouldInterruptTest:] + 36
36 XCTest 0x00000001348d0a4e -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 54
37 XCTest
Test Case '-[XXXUITests.SpacesTests testAccountCreation]' passed (10.205 seconds).
Test Suite 'SpacesTests' passed at 2018-04-30 14:44:44.562.
Executed 1 test, with 0 failures (0 unexpected) in 10.205 (10.206) seconds
Test Suite 'XXXUITests.xctest' passed at 2018-04-30 14:44:44.563.
Executed 1 test, with 0 failures (0 unexpected) in 10.205 (10.207) seconds
Test Suite 'Selected tests' passed at 2018-04-30 14:44:44.563.
Executed 1 test, with 0 failures (0 unexpected) in 10.205 (10.208) seconds

Any help would be really appreciated.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.