Skip to content

Commit 7372c83

Browse files
ref test_erwf_01.02 Verify verify page structure and visibility
add test_erwf_01.03 add test_erwf_01.04 update exercises_ru_words_family_page_test.py #623
1 parent 9e5cca5 commit 7372c83

1 file changed

Lines changed: 26 additions & 18 deletions

File tree

tests/exercises_ru_words_family_page_test.py

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ 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-14th levels of nesting on the page")
18+
@allure.title("Verify composition, visibility of elements on the 1st-5th 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)
2121
structure_of_1st_level = page.get_structure_of_1st_level()
@@ -27,6 +27,19 @@ def test_erwf_01_02_verify_page_structure_and_visibility(self, driver, exercises
2727
structure_of_4th_level = page.get_structure_of_4th_level()
2828
structure_of_5th_level = page.get_structure_of_5th_level()
2929
visibility_of_elements_on_5th_level = page.check_elements_visibility_on_5th_level()
30+
assert structure_of_1st_level, "The page is empty"
31+
assert visibility_of_elements_on_1st_level, "1th-level elements are invisible"
32+
assert structure_of_2nd_level, "Elements on the 2nd level are absent on the page"
33+
assert visibility_of_elements_on_2nd_level, "2nd-level elements are invisible"
34+
assert structure_of_3rd_level, "Elements on the 3rd level are absent on the page"
35+
assert visibility_of_elements_on_3rd_level, "3rd-level elements are invisible"
36+
assert structure_of_4th_level, "Elements on the 4th level are absent on the page"
37+
assert structure_of_5th_level, "Elements on the 5th level are absent on the page"
38+
assert visibility_of_elements_on_5th_level, "5th-level elements are invisible"
39+
40+
@allure.title("Verify composition, visibility of elements on the 6st-10th levels of nesting on the page")
41+
def test_erwf_01_03_verify_page_structure_and_visibility(self, driver, exercises_ru_words_family_page_open):
42+
page = erwfPage(driver)
3043
structure_of_6th_level = page.get_structure_of_6th_level()
3144
visibility_of_elements_on_6th_level = page.check_elements_visibility_on_6th_level()
3245
structure_of_7th_level = page.get_structure_of_7th_level()
@@ -37,23 +50,6 @@ def test_erwf_01_02_verify_page_structure_and_visibility(self, driver, exercises
3750
visibility_of_elements_on_9th_level = page.check_elements_visibility_on_9th_level()
3851
structure_of_10th_level = page.get_structure_of_10th_level()
3952
visibility_of_elements_on_10th_level = page.check_elements_visibility_on_10th_level()
40-
structure_of_11th_level = page.get_structure_of_11th_level()
41-
visibility_of_elements_on_11th_level = page.check_elements_visibility_on_11th_level()
42-
structure_of_12th_level = page.get_structure_of_12th_level()
43-
visibility_of_elements_on_12th_level = page.check_elements_visibility_on_12th_level()
44-
structure_of_13th_level = page.get_structure_of_13th_level()
45-
visibility_of_elements_on_13th_level = page.check_elements_visibility_on_13th_level()
46-
structure_of_14th_level = page.get_structure_of_14th_level()
47-
visibility_of_elements_on_14th_level = page.check_elements_visibility_on_14th_level()
48-
assert structure_of_1st_level, "The page is empty"
49-
assert visibility_of_elements_on_1st_level, "1th-level elements are invisible"
50-
assert structure_of_2nd_level, "Elements on the 2nd level are absent on the page"
51-
assert visibility_of_elements_on_2nd_level, "2nd-level elements are invisible"
52-
assert structure_of_3rd_level, "Elements on the 3rd level are absent on the page"
53-
assert visibility_of_elements_on_3rd_level, "3rd-level elements are invisible"
54-
assert structure_of_4th_level, "Elements on the 4th level are absent on the page"
55-
assert structure_of_5th_level, "Elements on the 5th level are absent on the page"
56-
assert visibility_of_elements_on_5th_level, "5th-level elements are invisible"
5753
assert structure_of_6th_level, "Elements on the 6th level are absent on the page"
5854
assert visibility_of_elements_on_6th_level, "6th-level elements are invisible"
5955
assert structure_of_7th_level, "Elements on the 7th level are absent on the page"
@@ -64,6 +60,18 @@ def test_erwf_01_02_verify_page_structure_and_visibility(self, driver, exercises
6460
assert not visibility_of_elements_on_9th_level, "9th-level elements are visible"
6561
assert structure_of_10th_level, "Elements on the 10th level are absent on the page"
6662
assert visibility_of_elements_on_10th_level, "10th-level elements are invisible"
63+
64+
@allure.title("Verify composition, visibility of elements on the 11st-14th levels of nesting on the page")
65+
def test_erwf_01_04_verify_page_structure_and_visibility(self, driver, exercises_ru_words_family_page_open):
66+
page = erwfPage(driver)
67+
structure_of_11th_level = page.get_structure_of_11th_level()
68+
visibility_of_elements_on_11th_level = page.check_elements_visibility_on_11th_level()
69+
structure_of_12th_level = page.get_structure_of_12th_level()
70+
visibility_of_elements_on_12th_level = page.check_elements_visibility_on_12th_level()
71+
structure_of_13th_level = page.get_structure_of_13th_level()
72+
visibility_of_elements_on_13th_level = page.check_elements_visibility_on_13th_level()
73+
structure_of_14th_level = page.get_structure_of_14th_level()
74+
visibility_of_elements_on_14th_level = page.check_elements_visibility_on_14th_level()
6775
assert structure_of_11th_level, "Elements on the 11th level are absent on the page"
6876
assert visibility_of_elements_on_11th_level, "11th-level elements are invisible"
6977
assert structure_of_12th_level, "Elements on the 12th level are absent on the page"

0 commit comments

Comments
 (0)