[pgadmin-hackers] [pgAdmin4] Feature tests fails on smaller screen resolution
От | Murtuza Zabuawala |
---|---|
Тема | [pgadmin-hackers] [pgAdmin4] Feature tests fails on smaller screen resolution |
Дата | |
Msg-id | CAKKotZTNmLsxw1_RqakhtDa2Tdy0fOzJHw0O9m2hJ-+uN+bfKA@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: [pgadmin-hackers] [pgAdmin4] Feature tests fails on smaller screen resolution
|
Список | pgadmin-hackers |
Hello Pivotal team,
Trace:-
Need your suggestion on given issue, We have noticed that feature tests do not run when we have smaller screen resolutions.
Is there any generic way to handle different screen resolutions of host system in feature tests?
Steps to re-produce the issue on macOS(10.10.5)
1) Go to "System preference..."
2) Select "Display"
3) Choose "Resolution" -> Scaled
4) Select "Larger Text"
5) Run the feature tests now
You will notice that all of the feature tests fails on server creation dialog.
Screen resolution where all tests fails,
--

Trace:-
======================================================================
ERROR: runTest (pgadmin.feature_tests.connect_to_server_feature_test.ConnectsToServerFeatureTest)
Test database connection
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/murtuza/Documents/projects/pgadmin4/web/pgadmin/feature_tests/connect_to_server_feature_test.py", line 41, in runTest
self._connects_to_server()
File "/Users/murtuza/Documents/projects/pgadmin4/web/pgadmin/feature_tests/connect_to_server_feature_test.py", line 69, in _connects_to_server
self.page.find_by_xpath("//button[contains(.,'Save')]").click()
File "/Users/murtuza/Documents/projects/pgadmin4/web/regression/feature_utils/pgadmin_page.py", line 87, in find_by_xpath
return self.wait_for_element(lambda driver: driver.find_element_by_xpath(xpath))
File "/Users/murtuza/Documents/projects/pgadmin4/web/regression/feature_utils/pgadmin_page.py", line 152, in wait_for_element
return self._wait_for("element to exist", element_if_it_exists)
File "/Users/murtuza/Documents/projects/pgadmin4/web/regression/feature_utils/pgadmin_page.py", line 188, in _wait_for
"Timed out waiting for " + waiting_for_message)
File "/Users/murtuza/Documents/projects/venv_pg4/lib/python3.5/site-packages/selenium/webdriver/support/wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: Timed out waiting for element to exist
======================================================================
Please suggest.
Regards,
Вложения
В списке pgadmin-hackers по дате отправления: