Skip to content
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

Closed
wants to merge 9 commits into from
Closed

Conversation

MarinaProsche
Copy link
Collaborator

Тест, проверяющий просмотр статистики согласно заданию
#485

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нужно составить свой requirements для данного каталога

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

добавлен tests/requirements.txt

login.send_keys(login_param)
password = self.getDriver().find_element(By.ID, "password_text_field")
password.clear()
password.send_keys(password_param)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Предлагаю логику авторизации вынести в отдельный метод / функцию, который будет переиспользоваться в тестах.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Авторизация добавлена как метод в BasicSeleniumTest

Copy link
Collaborator

@HadronCollider HadronCollider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Объедините, пожалуйста, с наработками #482

Плюс комментарий по тесту ниже

Comment on lines 12 to 13
obj = self.getDriver().find_element(By.CLASS_NAME, "fixed-table-container")
self.assertNotEquals(obj, None)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я бы предложил усилить тест - проверить наличие строк в таблице (или их отсутствие, если проверок нет) - т.е. дождаться загрузки данных таблицы

  • очень часто были случаи, что обработка запроса на получение статистики (т.е. данных о самих проверках, которые выводятся затем в таблице) ломалась, т.е. была вечная Loading, please wait - было бы хорошо, если этот (или другой тест) проверял бы этот момент

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Исправила.

@github-actions github-actions bot added the has conflicts if new merge has conflicts label Feb 21, 2024
@HadronCollider
Copy link
Collaborator

Работа ведется в #503

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has conflicts if new merge has conflicts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants