Skip to content

Commit

Permalink
fix: assert message and severity_level
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhikharevAl committed Nov 22, 2024
1 parent 18f00f6 commit 5dd5277
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions tests/ui/test_ui_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,28 @@ class TestUIElements(BaseTest):
"""The test class for the UI elements."""

@allure.story("Register Button Visibility")
@allure.severity(severity_level="MINOR")
@allure.severity(severity_level="CRITICAL")
def test_register_button(self) -> None:
"""The test checks that the register button is visible."""
self.main_page.navigate()
assert self.main_page.is_register_button_visible
assert (
self.main_page.is_register_button_visible
), "Register button is not visible"

@allure.story("Transfer Funds Button Visibility")
@allure.severity(severity_level="MINOR")
@allure.severity(severity_level="CRITICAL")
def test_transfer_funds(self, login: tuple[MainPage, OverviewPage]) -> None: # noqa: ARG002
"""The test checks that the register button is visible."""
self.overview_page.navigate()
assert self.overview_page.is_transfer_button_visible
assert (
self.overview_page.is_transfer_button_visible
), "Transfer button is not visible"

@allure.story("Update Contact Info Button Visibility")
@allure.severity(severity_level="MINOR")
@allure.severity(severity_level="CRITICAL")
def test_update_contact_info(self, login: tuple[MainPage, OverviewPage]) -> None: # noqa: ARG002
"""The test checks that the update contact info button is visible."""
self.overview_page.navigate()
assert self.overview_page.is_update_contact_info
assert (
self.overview_page.is_update_contact_info_visible
), "Update contact info button is not visible"

0 comments on commit 5dd5277

Please sign in to comment.