File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 6
6
from homeless_test_python .utils import attach
7
7
8
8
9
- @pytest .fixture (scope = 'function' , autouse = True )
9
+ @pytest .fixture (scope = 'function' )
10
10
def browser_management ():
11
11
browser .config .window_width = 2560
12
12
browser .config .window_height = 1440
@@ -38,5 +38,5 @@ def browser_management():
38
38
39
39
40
40
@pytest .fixture (scope = 'function' )
41
- def how_to_help ():
41
+ def how_to_help (browser_management ):
42
42
browser .open ('https://homeless.ru/how_to_help/' )
Original file line number Diff line number Diff line change 9
9
@allure .feature ("Основная функциональность" )
10
10
@allure .story ("Главная страница" )
11
11
@allure .description ("Тест открывает главную страницу сайта и проверяет, что страница загружена" )
12
- def test_open_main_page ():
12
+ def test_open_main_page (browser_management ):
13
13
mainpage .open_main_page ()
14
14
mainpage .check_main_page_is_opened ()
15
15
@@ -20,7 +20,7 @@ def test_open_main_page():
20
20
@allure .story ("Главная страница" )
21
21
@allure .description ("Тест открывает на главной странице ссылку на страницу пожертвований и"
22
22
" проверяет, что страница пожертвований открылась в новой владке браузера" )
23
- def test_switch_on_help_page ():
23
+ def test_switch_on_help_page (browser_management ):
24
24
mainpage .open_main_page ()
25
25
mainpage .click_help_button ()
26
26
helppage .check_help_page_is_opened ()
You can’t perform that action at this time.
0 commit comments