Skip to content

Commit c38a5e1

Browse files
committed
renamed tests for help page
1 parent 7932fbe commit c38a5e1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/conftest.py

+4
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,19 @@ def browser_management():
1818
}
1919
}
2020
options.capabilities.update(selenoid_capabilities)
21+
2122
driver = webdriver.Remote(
2223
command_executor="https://user1:1234@selenoid.autotests.cloud/wd/hub",
2324
options=options)
2425
browser.config.driver = driver
26+
2527
yield
28+
2629
attach.add_html(browser)
2730
attach.add_screenshot(browser)
2831
attach.add_logs(browser)
2932
attach.add_video(browser)
33+
3034
browser.quit()
3135

3236

tests/test_help_page.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def test_fill_the_donate_form_with_valid_data(how_to_help):
7575
@allure.story("Форма для отправки пожертвования")
7676
@allure.description("Тест проверяет, что поле для электронной почты обязательно для заполнения в форме "
7777
"отправки пожертвования")
78-
def test_fill_the_donate_form(how_to_help):
78+
def test_email_field_in_donate_form_is_obligatorily(how_to_help):
7979
helppage.set_username(test_user.name)
8080
helppage.click_on_submit_button()
8181
helppage.check_error_message()
@@ -87,7 +87,7 @@ def test_fill_the_donate_form(how_to_help):
8787
@allure.story("Форма для отправки пожертвования")
8888
@allure.description("Тест проверяет, что поле для имени необязательно для заполнения в форме "
8989
"отправки пожертвования")
90-
def test_fill_the_donate_form(how_to_help):
90+
def test_name_field_in_donate_form_is_not_obligatorily(how_to_help):
9191
helppage.set_email(test_user.email)
9292
helppage.check_error_message_is_missing()
9393
helppage.check_submit_button()

0 commit comments

Comments
 (0)