You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.
Hello, and thanks for making an awesome tool! I'm running Cedar with PCK, and I'm trying to pin down an issue I had when running my specs on iOS 11. When running my specs on iOS 11, all the tests related a "presentedViewController's" "popoverPresentationController" started failing.
Here is a test that passes on iOS 10.3, and fails on iOS 11.
Everything seems to work fine when running the actual app, meaning self.presentedViewController.popoverPresentationController is a real instance. This is only an issue in specs.
Any help would be much appreciated!
The text was updated successfully, but these errors were encountered:
I found a workaround, though it seems strange - I noticed that the presentedViewController's presentationController property was actually a UIPopoverPresentationController instance.
Inside the PCK method _pck_setPresentedViewController in UIViewController+Spec, modalViewController.popoverPresentationController is a real instance, but by the time we are asserting in the test above, subject.presentedViewController.popoverPresentationController is nil, but subject.presentedViewController.presentationController is the same instance as was in UIViewController+Spec.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello, and thanks for making an awesome tool! I'm running Cedar with PCK, and I'm trying to pin down an issue I had when running my specs on iOS 11. When running my specs on iOS 11, all the tests related a "presentedViewController's" "popoverPresentationController" started failing.
Here is a test that passes on iOS 10.3, and fails on iOS 11.
ViewControllerSpec.mm
ViewController.h
ViewController.m
Everything seems to work fine when running the actual app, meaning
self.presentedViewController.popoverPresentationController
is a real instance. This is only an issue in specs.Any help would be much appreciated!
The text was updated successfully, but these errors were encountered: