-
-
Notifications
You must be signed in to change notification settings - Fork 675
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
Write a POC of ui testing #1600
Conversation
Can you elaborate on how to run this test suite? I've tried running it with We will also need to see this running in the CI environment to demonstrate that it's viable. |
I run the tests simply with
|
It seems like the tests are still hanging in the CI process. I had to stop it manually. |
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.
The fact it's failing in CI is obviously a problem; the other source of concern is the reliance on sleep()
. Firstly, the required sleep is going to be highly load and system dependent, which will make the test somewhat unreliable; however, the larger concern is the impact on overall test runtime.
When there's only 3 tests, a 0.5 second setup and teardown doesn't matter too much; but if there's 1000 tests, it means the test suite will take 16 minutes to run. This might be unavoidable, but if we can avoid it, we should.
# Conflicts: # .github/workflows/ci.yml # src/core/src/toga/app.py # tox.ini
Codecov Report
|
Closing this in favour of #1687. |
Related to #1436
This PR is a POC for writting UI tests with pyautogui for Toga apps.
Here I tested 3 things:
on_press
method is calledon_press
method is not calledbutton.style.background_color
This is in no way a production-ready PR, this is just to show how such tests should look.