-
Notifications
You must be signed in to change notification settings - Fork 15
Hani/ Refactor Password Manager #815
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
Conversation
soncuteanca
left a comment
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.
Nice work touching so many files, this a very long suite with many interactions, not sure how much to go into the refactoring process to find a balance between time, effort and possible breakage. Overall it looks good. A few suggestions you might consider:
- method creation for repeated code (eg. add login - to something like about_logins.add_login(origin, username, password), primary password, export passwords)
- add some docstrings for the arguments (eg. in the added verify methods)
- avoid using context managers in the tests - (eg: test_auto_saved_generated_password_context_menu, I think they are only 2 tests)
- as much as possible, handle waits within POM/BOM
- maybe move repeated assertions into POM/BOM or helper methods for readability and reuse (eg. there are quite a lot of inline assertion)
- reduce direct element key usage and hardcoded values in tests
Thanks for the detailed review. |
soncuteanca
left a comment
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.
Approved based on your comment.
Relevant Links
Bugzilla: 1953258
Description of Code / Doc Changes
Process Changes Required
Mark the relevant boxes:
pipenv install)Screenshots or Explanations
If you need to explain your code, do it here.
Comments or Future Work
Do we need to start another PR soon to address something you saw while working on this?
Workflow Checklist
Thank you!