Skip to content

TC_01.004.02 | New Item > Select an Item type > Verify available options for New Item #364

Open
igolinskaya wants to merge 5 commits intomainfrom
igo/available_types
Open

TC_01.004.02 | New Item > Select an Item type > Verify available options for New Item #364
igolinskaya wants to merge 5 commits intomainfrom
igo/available_types

Conversation

@igolinskaya
Copy link
Copy Markdown
Collaborator

No description provided.

from selenium.webdriver.common.by import By

def test_available_types(browser):
browser.get("http://localhost:8080/")
Copy link
Copy Markdown
Collaborator

@StasAxlS StasAxlS Apr 23, 2026

Choose a reason for hiding this comment

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

Тут не нужен переход на http://localhost:8080/. Так как мы уже на стартовой странице Дженкинса(переход на localhost:8080 и логирование в файле project_utils.py).

element_pipeline = browser.find_element(By.XPATH,'//li[@class="org_jenkinsci_plugins_workflow_job_WorkflowJob"]')
is_enabled = element_pipeline.is_enabled()
is_displayed= element_pipeline.is_displayed()
print(f"Pipeline is enabled: {is_enabled} and is displayed : {is_displayed}")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Почему тут print используете вместо assert?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TC_01.004.02 | New Item > Select an Item type > Verify available options for New Item

2 participants