Skip to content

Add test_folder_buttons#879

Merged
Space-researcher merged 4 commits into
mainfrom
folder_sets
Jun 3, 2026
Merged

Add test_folder_buttons#879
Space-researcher merged 4 commits into
mainfrom
folder_sets

Conversation

@MikDublin
Copy link
Copy Markdown
Collaborator

No description provided.

@pytest.mark.dependency(depends=['test_folder_apply_button'])
def test_folder_save_button(browser):
save_result = (HomePage(browser)
.click_project_name(FOLDER_NAME, 'folder')
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.

вы определяете переменную save_result, но не используете ее

assert project_names_list[0] == DISPLAY_NAME


@pytest.mark.dependency(depends=['test_create_folder'])
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.

В данном модуле нет теста test_create_folder. Видимо это опечатка. Поэтому во время CI оба теста, предложенных к коммиту, просто скипнулись...
tests/test_folder_configuration.py::test_folder_apply_button SKIPPED
tests/test_folder_configuration.py::test_folder_save_button SKIPPED

.click_project_name(FOLDER_NAME, 'folder')
.click_project_configure('folder')
.set_display_name("Display_name")
.click_apply()
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.

CI не проходит: AttributeError: 'FolderConfigPage' object has no attribute 'click_apply'

Comment thread tests/test_folder.py
assert description_content == FOLDER_DESCRIPTION

@pytest.mark.dependency(depends=['test_create_folder'])
def test_folder_apply_button(browser):
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.

‎Зачем добавлять одинаковые тесты одновременно в test_folder.py и test_folder_configuration.py? Пусть они будут в каком-то одном модуле.

@Space-researcher Space-researcher merged commit 4c359b5 into main Jun 3, 2026
2 checks passed
@Space-researcher Space-researcher deleted the folder_sets branch June 3, 2026 12:56
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.

4 participants