-
Notifications
You must be signed in to change notification settings - Fork 41
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
Adds a new test to click on the signout button #1022
Conversation
Now, pyautogui also provides screenshot matching to find the right place to click, https://pyautogui.readthedocs.io/en/latest/screenshot.html#the-locate-functions , but the screenshot tool (I could not find a single one) can not capture the |
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.
pyautogui seems like a nice tool, dropping a couple of initial thoughts in here
Given the scope of required changes, we've agreed to defer this to the next sprint or later for now, after the current (4/22-5/6) sprint. |
Did a timeboxed work on it.
|
9789aa9
to
9d7d695
Compare
This will only work inside of xvfb-run as set the size of the display screen, and then click on the screen based on location. To run only this test use the following command: xvfb-run --server-args="-screen 0, 1680x1050x24" python -m pytest -v tests/functional/test_user_icon_click.py While developing a similar test, if one wants to see the status of the screen, use `pyautogui.screenshot(filename)` to a screenshot and then verify manually where to click/type.
We still have to generate two different files for Mac and Linux. https://github.com/jazzband/pip-tools#cross-environment-usage-of-requirementsinrequirementstxt-and-pip-compile
9d7d695
to
8b3a76f
Compare
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.
approving this as my comments are addressed, but not merging to give you an opportunity to take issue with any of my commits @kushaldas (feel free to dismiss my review or drop commits if so)
On Linux we will have to add a separate dependency to the |
Ah, let's bring in that additional dependency if/when we use that functionality |
Description
This will only work inside of xvfb-run as set the size of the
display screen, and then click on the screen based on location.
To run only this test use the following command:
xvfb-run --server-args="-screen 0, 1680x1050x24" python -m pytest -v tests/functional/test_user_icon_click.py
While developing a similar test, if one wants to see the status of
the screen, use
pyautogui.screenshot(filename)
to a screenshotand then verify manually where to click/type.
Test Plan
make sure you xvfb installed.
xvfb-run --server-args="-screen 0, 1680x1050x24" python -m pytest -v tests/functional/test_user_icon_click.py
Checklist
If these changes modify code paths involving cryptography, the opening of files in VMs or network (via the RPC service) traffic, Qubes testing in the staging environment is required. For fine tuning of the graphical user interface, testing in any environment in Qubes is required. Please check as applicable:
If these changes add or remove files other than client code, packaging logic (e.g., the AppArmor profile) may need to be updated. Please check as applicable: