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
As I originally didn't think it was related to the tunnel, however when i went back to the branch using the tunnel version 3.x version of the tunnel the code worked fine. But when we are on the branch with the latest version of the tunnel, it does not.
Our application launches the Maps application and in the XCTest we do
let maps = XCUIApplication(bundleIdentifier: "com.apple.Maps")
let alert = maps.alerts.element(boundBy: 0)
However any time we did maps.anything() it would stay on the Maps application and not "return" to the application / end test until about 5 mins went by. And when I tried calling myapp.activate() after the Maps interaction it would not return to our application. It just stays on the Maps application.
Interestingly enough though, this only is an issue when running the tests thru the command line and not when the test via XCode.
In order to get around it for now, I did:
BaseTest.sbtApp?.terminate()
let maps = XCUIApplication(bundleIdentifier: "com.apple.Maps")
let alert = maps.alerts.element(boundBy: 0)
And here, I just relaunch the app and start the test workflow over.
Thoughts?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi Again :),
So I posted this question
https://stackoverflow.com/questions/60120863/xctest-activate-not-working-when-ran-from-command-line
As I originally didn't think it was related to the tunnel, however when i went back to the branch using the tunnel version 3.x version of the tunnel the code worked fine. But when we are on the branch with the latest version of the tunnel, it does not.
Our application launches the Maps application and in the XCTest we do
However any time we did maps.anything() it would stay on the Maps application and not "return" to the application / end test until about 5 mins went by. And when I tried calling myapp.activate() after the Maps interaction it would not return to our application. It just stays on the Maps application.
Interestingly enough though, this only is an issue when running the tests thru the command line and not when the test via XCode.
In order to get around it for now, I did:
And here, I just relaunch the app and start the test workflow over.
Thoughts?
Thanks!
The text was updated successfully, but these errors were encountered: