-
Notifications
You must be signed in to change notification settings - Fork 86
e2e appium/test settings password change password #18977
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
base: master
Are you sure you want to change the base?
e2e appium/test settings password change password #18977
Conversation
password change test ported from desktop e2e
Jenkins BuildsClick to see older builds (22)
|
test/e2e_appium/tests/test_settings_password_change_password.py
Outdated
Show resolved
Hide resolved
test/e2e_appium/tests/test_settings_password_change_password.py
Outdated
Show resolved
Hide resolved
test/e2e_appium/tests/test_settings_password_change_password.py
Outdated
Show resolved
Hide resolved
test/e2e_appium/tests/test_settings_password_change_password.py
Outdated
Show resolved
Hide resolved
test/e2e_appium/tests/test_settings_password_change_password.py
Outdated
Show resolved
Hide resolved
test/e2e_appium/tests/test_settings_password_change_password.py
Outdated
Show resolved
Hide resolved
|
||
def generate_secure_password(length: int = 16) -> str: | ||
"""Generate a strong password that meets basic complexity requirements.""" | ||
length = max(length, 12) |
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.
are we sure that length is 12? on desktop it is 100, worth checking why mobile has that short password if thats the case
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.
This just generates a valid password, it's not the maximum allowed. I would rather use a lower number in this test until we have more reliable and faster ways to update fields - the current input method is entering each character individually.
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.
roger that , makes sense
pls squash commits before merging |
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.
Looks good in general, just a small question added!
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!! ;)
if overlay and ElementStateChecker.is_displayed(overlay): | ||
try: | ||
rect = overlay.rect | ||
tap_x = int(rect.get("x", 0) + rect.get("width", 0) * 0.25) |
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.
Why do we need this manual positioning?
What does the PR do
Password change test ported from desktop e2e to mobile
Tested on local and lambdatest
test_change_password_and_login.mp4