-
Notifications
You must be signed in to change notification settings - Fork 343
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: Use .BrowserApp as default reference browser apk component #2069
fix: Use .BrowserApp as default reference browser apk component #2069
Conversation
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 @ankushduacodes this looks to be going in the right direction 👍 .
Besides the small tweaks suggested below, this is also missing additional coverage for the new expected behavior (and that is also pointed out by the coveralls failure).
This can be covered by a new small unit test, a new test case in tests/unit/test-util/test.adb.js, inside the group of tests defined here:
web-ext/tests/unit/test-util/test.adb.js
Line 767 in 6030528
describe('startFirefoxAPK', () => { |
Taking a Look to the other tests in that group should help you to figure out how to write the new test (but feel free to ping me and ask me some additional question if you get stuck after giving it a try).
@rpl I am getting these errors in travis-ci:
Could you please explain what are subject and type? |
@ankushduacodes That's because the pull request title isn't using the commit message conventions that are described here (also linked right below the error): It can be easily fixed by just updating the pull request title (e.g. Follows some more context about the reasons behind the error:
|
@ankushduacodes I updated the PR title as described in #2069 (comment) ( The only remaining piece for this PR should now be the additional test case to cover the part that coveralls is complaining about, the additional Let me know how it is going and if you have further questions about that. |
Hi @rpl, Thank you for fixing the title for me. |
@rpl I have added a unit test to check the proper working of reference browser without specifying an apk component, Please let me what you think |
To check that reference browser runs without specifying an apkComponent
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.
@ankushduacodes thanks! the test you created looks pretty great, good job!
would you mind to also add assertions to double-check that if the firefoxApkComponent parameter is passed as not undefined it isn't going to be overridden with the default one, in the inline review comment that follows I described in more detail how I think we can adapt your test case to be reused for testing both the scenario.
Let me know how that sounds to you.
To check that reference browser runs without specifying an apkComponent To check a custom activity is not overwritten by dafault acticity
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.
@ankushduacodes looks great! 🎉 (and I also prefer the function to be nearby the only two test cases that are using it)
The review comment below is just for a very small nitpick (just an inline comment that we don't need anymore), would you mind to remove that comment before I merge this?
Thanks again for contributing this fix!!!
Thanks so much for the patch, @ankushduacodes! 🎉 Your contribution has been added to our recognition wiki. Welcome onboard! We look forward to seeing you around. |
@caitmuenster Thank you for recognizing my contribution. I just have a small request, I am seeing that on the |
Absolutely! So sorry about that, @ankushduacodes. It's been fixed now! :) |
Thank you @caitmuenster, I really appreciate that. |
Fixes #2041