Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions pages/exercises_ru_words_family_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ class ExercisesRuWordsFamilyPage(BasePage):
@allure.step("Check if some content is present in DOM")
def check_presence_of_page_content(self):
return self.element_is_present(self.locators.PAGE_CONTENT)

@allure.step("Check if page content is visible on the page")
def check_visibility_of_page_content(self):
return self.element_is_visible(self.locators.PAGE_CONTENT)
4 changes: 3 additions & 1 deletion tests/exercises_ru_words_family_page_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
class TestExercisesRuWordsFamilyPage:
class TestExRuWordsFamilyPageStructure:
@allure.title("Verify presence and visibility of content on the page")
def test_erwf_01_01_verify_page_presence(self, driver, exercises_ru_words_family_page_open):
def test_erwf_01_01_verify_page_presence_and_visibility(self, driver, exercises_ru_words_family_page_open):
page = erwfPage(driver)
page_content_presence = page.check_presence_of_page_content()
page_content_visibility = page.check_visibility_of_page_content()
assert page_content_presence, "The page content is absent in DOM"
assert page_content_visibility, "The page content is invisible"
Loading