-
Notifications
You must be signed in to change notification settings - Fork 2
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
485 selenium test statistic #493
Conversation
tests/README.md
Outdated
(selenium==4.16.0 (in this version you don't need to download geckodriver)) | ||
|
||
pip install webdriver-manager (to avoid problem with binary. And you should have Firefox installed not in 'snap') | ||
webdriver-manager==4.0.1 |
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.
Нужно составить свой requirements для данного каталога
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.
добавлен tests/requirements.txt
tests/test_statistic.py
Outdated
login.send_keys(login_param) | ||
password = self.getDriver().find_element(By.ID, "password_text_field") | ||
password.clear() | ||
password.send_keys(password_param) |
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.
Предлагаю логику авторизации вынести в отдельный метод / функцию, который будет переиспользоваться в тестах.
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.
Авторизация добавлена как метод в BasicSeleniumTest
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.
Объедините, пожалуйста, с наработками #482
Плюс комментарий по тесту ниже
tests/test_statistic.py
Outdated
obj = self.getDriver().find_element(By.CLASS_NAME, "fixed-table-container") | ||
self.assertNotEquals(obj, None) |
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.
Я бы предложил усилить тест - проверить наличие строк в таблице (или их отсутствие, если проверок нет) - т.е. дождаться загрузки данных таблицы
- очень часто были случаи, что обработка запроса на получение статистики (т.е. данных о самих проверках, которые выводятся затем в таблице) ломалась, т.е. была вечная
Loading, please wait
- было бы хорошо, если этот (или другой тест) проверял бы этот момент
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.
Исправила.
Работа ведется в #503 |
Тест, проверяющий просмотр статистики согласно заданию
#485