-
Notifications
You must be signed in to change notification settings - Fork 499
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
Fix #3413: Fix espresso test failing in topic practice fragment test #3743
Fix #3413: Fix espresso test failing in topic practice fragment test #3743
Conversation
…_selectSubtopics_clickStartButton_skillListTransferSuccessfully by unregistering the idling resouce in it
@anandwana001 Can you please check this first if the solution is correct or not? |
This does seem like a fix due to the idling resource thing, but we need to figure out why this is happening here only and not in any other test case. |
@yash10019coder Could you come up with some details that why the error is happening? |
@anandwana001 this error is happening due to the idling resources it times out and then tests fails and it is not being able to execute the intent check lines and in other test cases intent check is not happening |
@yash10019coder Is it specific to this test file only? What about the other test files, where we are doing the intent test? |
@anandwana001 I haven't checked for others but I'm pretty sure for this |
@anandwana001 I have seen other tests which are checking intent some of them are using testCoroutineDispather.runCurrent() some of them are not using it or maybe using internally all of those test cases passes successfully I have also tried using it but it is not working test is failing and I have also wrapped it inside .use after launching the activity |
@anandwana001 I ahve tried many things only unregistering the idling resources works every other way it fails made a commit PTAL |
Unassigning @yash10019coder since a re-review was requested. @yash10019coder, please make sure you have addressed all review comments. Thanks! |
@yash10019coder Could you add a screenshot of your local espresso and robolectric test result. On Actions this test is failing with the below error log.
|
androidx.test.espresso.PerformException: Error performing 'single click - At Coordinates: 539, 1408 and precision: 16, 16' on view 'with id: org.oppia.android:id/topic_practice_skill_list'. |
Yes, that's the error from the issue we need to fix in this PR. |
it fixes when we unregister idling resources |
So, is the current code updated in the PR works or are there any changes coming up? |
Sure |
Made a commit @anandwana001 |
Also, could you add a screenshot showing that it is passing for you locally? |
Actually I ran It locally just now and it is the screenshot of that |
Waiting for GitHub actions result. |
@anandwana001 All checks passed successfully |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thanks @yash10019coder
nice finding and fixing 🎉
Thanks @anandwana001 can we merge it now? |
@rt4914 is the code owner and his approval is important here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @yash10019coder
Explanation
Fixes #3413
unregistered the idling resource for the specific test as it was not need it was creating IdlingResouceTImedOutException
Essential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then: