-
Notifications
You must be signed in to change notification settings - Fork 0
add_trial_test #425
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
add_trial_test #425
Conversation
alena0505
left a comment
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.
В тесте лишние импорты, которые потом не используются. Предложу вариант покомпактнее с использованием имеющейся фикстуры open_page.
from pages.new_item_page import NewItemPage
def test_empty_field(open_page):
"""Написать название тест-кейса"""
new_item_page = open_page(NewItemPage, "/view/all/newJob") # Открыть страницу создания нового элемента, используя фикстуру open_page
new_item_page.click("li.com_cloudbees_hudson_plugins_folder_Folder") # Выбрать тип "Folder" (не заполняя поле имени)
assert new_item_page.is_visible("div[id='itemname-required']") # Проверить появление сообщения об ошибке
Чтобы тест полностью соответствовал структуре POM, нужно добавить 2 используемых локатора в class и вызывать их из класса.
|
Alena,rea the comment. Would try to fix. Thank you. |
… item name' (#430) * Add test: verify_an_input_field * Add test: verify an input field * moved test file
….2026 # Conflicts: # .gitignore
add_trial_test