-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not getting accessibility errors in unit test #12
Comments
Hey @sishuiOS ! Can you find any solution for this? I have similar case with UI testing. And I do not get any errors for my UI tests. |
@sishuiOS is this an XCTest or XCUITest? see this comment for more details |
@niksawtschuk this is |
This is my sample code for Unit test and following is the code for viewController
You can see clearly in |
@sishuiOS What do you see on the simulator screen when you run this test? Does that view controller actually appear? Try setting the window's view controller to be the one you want to test before each test. |
Yes view controller appears on |
Hey @sishuiOS, could you please try : 'override class func setUp()' (which ensures to call setUp() only once!) Thank you! |
@sishuiOS do you mind trying to use EarlGrey to perform a simple action on an element in the view? e.g. assert that your button is visible I have not tried using GTXi in a test that didn't use EarlGrey, so I don't know what is expected here |
I am not getting any accessibility errors in the unit test class as above. Any idea ? |
super.tearDown() is missing in your test tearDown, GTXiLib expects that the
test tearDowns are properly invoked to execute checks. Could you please add
it and give it a try.
…On Mon, Feb 15, 2021 at 1:55 PM deepthinil ***@***.***> wrote:
I am not getting any accessibility errors in the unit test class as above.
Any idea ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4R5XA3HXSZMGYXRGM44KTS7GJ4ZANCNFSM4ILL2KUQ>
.
|
Hi I have tried using this framework in swift project.
I have setup the test case like this
When I am running test cases it is not throwing any error(even if I have not set accessibility labels and text to UILable or UIButton.)
The text was updated successfully, but these errors were encountered: