EarlGrey
EarlGrey copied to clipboard
caught "EarlGreyInternalTestInterruptException", "Immediately halt execution of testcase"
when i perform a button tap, caught this error. please help me
@MustangYM
when i perform a button tap, caught this error. please help me
Can you provide more context? Maybe some code?
Hello @OlivierMrz, we are seeing the same issue reported here. Our environment is: -Xcode 11, iOS 13. -EarlyGrey 1.15.0. (Also tried with 2.0.0)
Our app is launched in the simulator, but it is not correctly loaded, it does not fit the full screen.
The grey line at the top should not be there, and we are missing text at the bottom, it is like the screen is scrolled down. But I honestly don't know if that has something to do with the error.
The test hangs there for a couple of minutes and then we see the error. We are experiencing that only with UI tests, for XCUITests (we don't use EarlGrey) everything works fine with that environment. Let me share some logs in case that is helpful: EarlGrey xcode 11 iOS 13.docx
Please let me know if you would need more info. Thank you in advance!
Please forget about previous comment, we figured out the problem and now, updating to latest EarlGrey, our tests will work again. Thanks and sorry
If that can help others, I was having the same issue on GitHub Actions, and I was using the latest version.
I found a hack by tapping a button with XCTests at the beginning of the test, prior to starting using EarlGrey.
let loginButton = application.buttons["LoginButton"]
loginButton.tap()
EarlGrey.selectElement(with: grey_accessibilityID("LoginButton"))
.assert(grey_sufficientlyVisible())
.perform(grey_tap())