Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 26 additions & 18 deletions tests/exercises_ru_words_family_page_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_erwf_01_01_verify_page_presence_and_visibility(self, driver, exercises_
assert page_content_presence, "The page content is absent in DOM"
assert page_content_visibility, "The page content is invisible"

@allure.title("Verify composition, visibility of elements on the 1st-14th levels of nesting on the page")
@allure.title("Verify composition, visibility of elements on the 1st-5th levels of nesting on the page")
def test_erwf_01_02_verify_page_structure_and_visibility(self, driver, exercises_ru_words_family_page_open):
page = erwfPage(driver)
structure_of_1st_level = page.get_structure_of_1st_level()
Expand All @@ -27,6 +27,19 @@ def test_erwf_01_02_verify_page_structure_and_visibility(self, driver, exercises
structure_of_4th_level = page.get_structure_of_4th_level()
structure_of_5th_level = page.get_structure_of_5th_level()
visibility_of_elements_on_5th_level = page.check_elements_visibility_on_5th_level()
assert structure_of_1st_level, "The page is empty"
assert visibility_of_elements_on_1st_level, "1th-level elements are invisible"
assert structure_of_2nd_level, "Elements on the 2nd level are absent on the page"
assert visibility_of_elements_on_2nd_level, "2nd-level elements are invisible"
assert structure_of_3rd_level, "Elements on the 3rd level are absent on the page"
assert visibility_of_elements_on_3rd_level, "3rd-level elements are invisible"
assert structure_of_4th_level, "Elements on the 4th level are absent on the page"
assert structure_of_5th_level, "Elements on the 5th level are absent on the page"
assert visibility_of_elements_on_5th_level, "5th-level elements are invisible"

@allure.title("Verify composition, visibility of elements on the 6st-10th levels of nesting on the page")
def test_erwf_01_03_verify_page_structure_and_visibility(self, driver, exercises_ru_words_family_page_open):
page = erwfPage(driver)
structure_of_6th_level = page.get_structure_of_6th_level()
visibility_of_elements_on_6th_level = page.check_elements_visibility_on_6th_level()
structure_of_7th_level = page.get_structure_of_7th_level()
Expand All @@ -37,23 +50,6 @@ def test_erwf_01_02_verify_page_structure_and_visibility(self, driver, exercises
visibility_of_elements_on_9th_level = page.check_elements_visibility_on_9th_level()
structure_of_10th_level = page.get_structure_of_10th_level()
visibility_of_elements_on_10th_level = page.check_elements_visibility_on_10th_level()
structure_of_11th_level = page.get_structure_of_11th_level()
visibility_of_elements_on_11th_level = page.check_elements_visibility_on_11th_level()
structure_of_12th_level = page.get_structure_of_12th_level()
visibility_of_elements_on_12th_level = page.check_elements_visibility_on_12th_level()
structure_of_13th_level = page.get_structure_of_13th_level()
visibility_of_elements_on_13th_level = page.check_elements_visibility_on_13th_level()
structure_of_14th_level = page.get_structure_of_14th_level()
visibility_of_elements_on_14th_level = page.check_elements_visibility_on_14th_level()
assert structure_of_1st_level, "The page is empty"
assert visibility_of_elements_on_1st_level, "1th-level elements are invisible"
assert structure_of_2nd_level, "Elements on the 2nd level are absent on the page"
assert visibility_of_elements_on_2nd_level, "2nd-level elements are invisible"
assert structure_of_3rd_level, "Elements on the 3rd level are absent on the page"
assert visibility_of_elements_on_3rd_level, "3rd-level elements are invisible"
assert structure_of_4th_level, "Elements on the 4th level are absent on the page"
assert structure_of_5th_level, "Elements on the 5th level are absent on the page"
assert visibility_of_elements_on_5th_level, "5th-level elements are invisible"
assert structure_of_6th_level, "Elements on the 6th level are absent on the page"
assert visibility_of_elements_on_6th_level, "6th-level elements are invisible"
assert structure_of_7th_level, "Elements on the 7th level are absent on the page"
Expand All @@ -64,6 +60,18 @@ def test_erwf_01_02_verify_page_structure_and_visibility(self, driver, exercises
assert not visibility_of_elements_on_9th_level, "9th-level elements are visible"
assert structure_of_10th_level, "Elements on the 10th level are absent on the page"
assert visibility_of_elements_on_10th_level, "10th-level elements are invisible"

@allure.title("Verify composition, visibility of elements on the 11st-14th levels of nesting on the page")
def test_erwf_01_04_verify_page_structure_and_visibility(self, driver, exercises_ru_words_family_page_open):
page = erwfPage(driver)
structure_of_11th_level = page.get_structure_of_11th_level()
visibility_of_elements_on_11th_level = page.check_elements_visibility_on_11th_level()
structure_of_12th_level = page.get_structure_of_12th_level()
visibility_of_elements_on_12th_level = page.check_elements_visibility_on_12th_level()
structure_of_13th_level = page.get_structure_of_13th_level()
visibility_of_elements_on_13th_level = page.check_elements_visibility_on_13th_level()
structure_of_14th_level = page.get_structure_of_14th_level()
visibility_of_elements_on_14th_level = page.check_elements_visibility_on_14th_level()
assert structure_of_11th_level, "Elements on the 11th level are absent on the page"
assert visibility_of_elements_on_11th_level, "11th-level elements are invisible"
assert structure_of_12th_level, "Elements on the 12th level are absent on the page"
Expand Down
Loading