@@ -15,53 +15,41 @@ def test_erwf_01_01_verify_page_presence_and_visibility(self, driver, exercises_
1515 assert page_content_presence , "The page content is absent in DOM"
1616 assert page_content_visibility , "The page content is invisible"
1717
18- @allure .title ("Verify composition, visibility of elements on the 1st-5th levels of nesting on the page" )
18+ @allure .title ("Verify composition, visibility of elements on the 1st-4th levels of nesting on the page" )
1919 def test_erwf_01_02_verify_page_structure_and_visibility (self , driver , exercises_ru_words_family_page_open ):
2020 page = erwfPage (driver )
21- # structure_of_1st_level = page.get_structure_of_1st_level()
2221 visibility_of_elements_on_1st_level = page .check_elements_visibility_on_1st_level ()
23- # structure_of_2nd_level = page.get_structure_of_2nd_level()
2422 visibility_of_elements_on_2nd_level = page .check_elements_visibility_on_2nd_level ()
25- # structure_of_3rd_level = page.get_structure_of_3rd_level()
2623 visibility_of_elements_on_3rd_level = page .check_elements_visibility_on_3rd_level ()
27- # structure_of_4th_level = page.check_elements_visibility_on_4th_level()
2824 visibility_of_elements_on_4th_level = page .check_elements_visibility_on_4th_level ()
29- # structure_of_5th_level = page.get_structure_of_5th_level()
30- visibility_of_elements_on_5th_level = page .check_elements_visibility_on_5th_level ()
31- # assert structure_of_1st_level, "The page is empty"
3225 assert visibility_of_elements_on_1st_level , "1th-level elements are invisible"
33- # assert structure_of_2nd_level, "Elements on the 2nd level are absent on the page"
3426 assert visibility_of_elements_on_2nd_level , "2nd-level elements are invisible"
35- # assert structure_of_3rd_level, "Elements on the 3rd level are absent on the page"
3627 assert visibility_of_elements_on_3rd_level , "3rd-level elements are invisible"
37- # assert structure_of_4th_level, "Elements on the 4th level are absent on the page"
38- assert visibility_of_elements_on_4th_level , "3rd-level elements are invisible"
39- # assert structure_of_5th_level, "Elements on the 5th level are absent on the page"
40- assert visibility_of_elements_on_5th_level , "5th-level elements are invisible"
28+ assert visibility_of_elements_on_4th_level , "4th-level elements are invisible"
4129
4230 @allure .title ("Verify composition, visibility of elements on the 6st-10th levels of nesting on the page" )
4331 def test_erwf_01_03_verify_page_structure_and_visibility (self , driver , exercises_ru_words_family_page_open ):
4432 page = erwfPage (driver )
45- structure_of_6th_level = page .get_structure_of_6th_level ()
46- # visibility_of_elements_on_6th_level = page.check_elements_visibility_on_6th_level()
47- structure_of_7th_level = page .get_structure_of_7th_level ()
48- # visibility_of_elements_on_7th_level = page.check_elements_visibility_on_7th_level()
33+ # structure_of_6th_level = page.get_structure_of_6th_level()
34+ visibility_of_elements_on_6th_level = page .check_elements_visibility_on_6th_level ()
35+ # structure_of_7th_level = page.get_structure_of_7th_level()
36+ visibility_of_elements_on_7th_level = page .check_elements_visibility_on_7th_level ()
4937 structure_of_8th_level = page .get_structure_of_8th_level ()
50- # visibility_of_elements_on_8th_level = page.check_elements_visibility_on_8th_level()
38+ visibility_of_elements_on_8th_level = page .check_elements_visibility_on_8th_level ()
5139 structure_of_9th_level = page .get_structure_of_9th_level ()
52- # visibility_of_elements_on_9th_level = page.check_elements_visibility_on_9th_level()
40+ visibility_of_elements_on_9th_level = page .check_elements_visibility_on_9th_level ()
5341 structure_of_10th_level = page .get_structure_of_10th_level ()
54- # visibility_of_elements_on_10th_level = page.check_elements_visibility_on_10th_level()
55- assert structure_of_6th_level , "Elements on the 6th level are absent on the page"
56- # assert visibility_of_elements_on_6th_level, "6th-level elements are invisible"
57- assert structure_of_7th_level , "Elements on the 7th level are absent on the page"
58- # assert visibility_of_elements_on_7th_level, "7th-level elements are invisible"
42+ visibility_of_elements_on_10th_level = page .check_elements_visibility_on_10th_level ()
43+ # assert structure_of_6th_level, "Elements on the 6th level are absent on the page"
44+ assert visibility_of_elements_on_6th_level , "6th-level elements are invisible"
45+ # assert structure_of_7th_level, "Elements on the 7th level are absent on the page"
46+ assert visibility_of_elements_on_7th_level , "7th-level elements are invisible"
5947 assert structure_of_8th_level , "Elements on the 8th level are absent on the page"
60- # assert visibility_of_elements_on_8th_level, "8th-level elements are invisible"
48+ assert visibility_of_elements_on_8th_level , "8th-level elements are invisible"
6149 assert structure_of_9th_level , "Elements on the 9th level are absent on the page"
62- # assert not visibility_of_elements_on_9th_level, "9th-level elements are visible"
50+ assert not visibility_of_elements_on_9th_level , "9th-level elements are visible"
6351 assert structure_of_10th_level , "Elements on the 10th level are absent on the page"
64- # assert not visibility_of_elements_on_10th_level, "10th-level elements are visible"
52+ assert not visibility_of_elements_on_10th_level , "10th-level elements are visible"
6553
6654 @allure .title ("Verify composition, visibility of elements on the 11st-14th levels of nesting on the page" )
6755 def test_erwf_01_04_verify_page_structure_and_visibility (self , driver , exercises_ru_words_family_page_open ):
0 commit comments