{"action":"created","issue":{"url":"https://api.github.com/repos/kif-framework/KIF/issues/678","labels_url":"https://api.github.com/repos/kif-framework/KIF/issues/678/labels{/name}","comments_url":"https://api.github.com/repos/kif-framework/KIF/issues/678/comments","events_url":"https://api.github.com/repos/kif-framework/KIF/issues/678/events","html_url":"https://github.com/kif-framework/KIF/issues/678","id":88430281,"number":678,"title":"acknowledgeSystemAlert breaks view hierarchy ","user":{"login":"foulkesjohn","id":984496,"avatar_url":"https://avatars.githubusercontent.com/u/984496?v=3","gravatar_id":"","url":"https://api.github.com/users/foulkesjohn","html_url":"https://github.com/foulkesjohn","followers_url":"https://api.github.com/users/foulkesjohn/followers","following_url":"https://api.github.com/users/foulkesjohn/following{/other_user}","gists_url":"https://api.github.com/users/foulkesjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/foulkesjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foulkesjohn/subscriptions","organizations_url":"https://api.github.com/users/foulkesjohn/orgs","repos_url":"https://api.github.com/users/foulkesjohn/repos","events_url":"https://api.github.com/users/foulkesjohn/events{/privacy}","received_events_url":"https://api.github.com/users/foulkesjohn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-15T13:40:31Z","updated_at":"2015-09-11T17:44:51Z","closed_at":null,"body":"I have a test which uses `tapViewWithAccessibilityLabel:value:traits:` to tap a `UIButton` which is inside a `UICollectionViewCell`. This was working fine until I added a call to `acknowledgeSystemAlert` to dismiss the alert which is displayed for push notifications at the start of my app running. If I disable this call then it works again.\r\n\r\nI have dug around and found that when the call to `acknowledgeSystemAlert` is made when trying to find the button to tap the buttons superview becomes an instance `_UISnapshotWindow` and therefore when `viewContainingAccessibilityElement:tappable:error:` iterates through the view hierarchy it is unable to find the `UICollectionView` and scroll to the cell containing the button.\r\n\r\nAny ideas how to work around this?"},"comment":{"url":"https://api.github.com/repos/kif-framework/KIF/issues/comments/139610721","html_url":"https://github.com/kif-framework/KIF/issues/678#issuecomment-139610721","issue_url":"https://api.github.com/repos/kif-framework/KIF/issues/678","id":139610721,"user":{"login":"foulkesjohn","id":984496,"avatar_url":"https://avatars.githubusercontent.com/u/984496?v=3","gravatar_id":"","url":"https://api.github.com/users/foulkesjohn","html_url":"https://github.com/foulkesjohn","followers_url":"https://api.github.com/users/foulkesjohn/followers","following_url":"https://api.github.com/users/foulkesjohn/following{/other_user}","gists_url":"https://api.github.com/users/foulkesjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/foulkesjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foulkesjohn/subscriptions","organizations_url":"https://api.github.com/users/foulkesjohn/orgs","repos_url":"https://api.github.com/users/foulkesjohn/repos","events_url":"https://api.github.com/users/foulkesjohn/events{/privacy}","received_events_url":"https://api.github.com/users/foulkesjohn/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T17:44:51Z","updated_at":"2015-09-11T17:44:51Z","body":"No right now. I have a few other avenues to explore to try and figure out what the issue is but no immediate plans to look into it. I managed to work around this for a while but Xcode 7/iOS 9 system alert views seem to block alerts displayed by my app. Which is why I revisited this issue. \r\n\r\n> On 11 Sep 2015, at 18:24, phatmann <notifications@github.com> wrote:\r\n> \r\n> @foulkesjohn I will reopen this issue. Do you have any ideas for a fix?\r\n> \r\n> —\r\n> Reply to this email directly or view it on GitHub.\r\n> \r\n"}}