Skip to content

Commit

Permalink
comment out percy calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-mcgillivray005 committed Jun 25, 2024
1 parent 5bda131 commit d723565
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
def pytest_sessionfinish(session, exitstatus):
print(f"\nTotal time (in seconds) spent on hard delays using WebUI.delay(): {WebUI.total_time_waited()} seconds waited")
# stop_percy_session only stop percy session if PERCY_TOKEN environment variable is set.
stop_percy_session()
# stop_percy_session()
allure_environment()
allure_reporting()
WebUI.quit()


def pytest_sessionstart(session):
# start_percy_session only start percy session if PERCY_TOKEN environment variable is set.
start_percy_session()
# start_percy_session()
Common.login_to_truenas(private_config['USERNAME'], private_config['PASSWORD'])
# Set up a unique hostname for the test session.
# PID is unique for each session
Expand Down
2 changes: 1 addition & 1 deletion test_cases/webui/active_directory/test_active_directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def test_setup_active_directory(self, ad_data, setup_dns_for_active_directory):
assert Directory_Services.assert_active_directory_domain_name(ad_data['domain'])
assert Directory_Services.assert_active_directory_domain_account_name(ad_data['username'])

WebUI.take_percy_snapshot("Active Directory Setup")
# WebUI.take_percy_snapshot("Active Directory Setup")

@allure.tag("defect_verification", "NAS-129528", "NAS-129686")
@allure.issue("NAS-129686", "NAS-129686")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ def test_all_default_dashboard_cards_are_visible(self):
assert Dashboard.is_memory_card_visible() is True
assert Dashboard.is_cpu_card_visible() is True
assert Dashboard.is_storage_card_visible() is True
WebUI.take_percy_snapshot('Default Dashboard Cards Are Visible')
# WebUI.take_percy_snapshot('Default Dashboard Cards Are Visible')
2 changes: 1 addition & 1 deletion test_cases/webui/datasets/test_create_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ def test_create_dataset(self, data):
# Verify that the created dataset exists in the datasets page.
Datasets.is_dataset_visible(data["pool"], data["dataset"])

WebUI.take_percy_snapshot('Dataset Created UI')
# WebUI.take_percy_snapshot('Dataset Created UI')
4 changes: 2 additions & 2 deletions test_cases/webui/local_users/test_local_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ def test_add_new_user(self, users) -> None:
LU.set_user_password(users['password'])
LU.set_user_password_confirm(users['password'])
LU.set_user_email(users['email'])
WebUI.take_percy_snapshot('Add User UI', scope='//*[contains(@class,"ix-slide-in-body")]')
# WebUI.take_percy_snapshot('Add User UI', scope='//*[contains(@class,"ix-slide-in-body")]')
COM.click_save_button_and_wait_for_progress_bar()
LU.unset_show_builtin_users_toggle()
LU.refresh_local_user_page('100')

assert LU.is_user_visible(users['username']) is True
WebUI.take_percy_snapshot('Users UI with New User')
# WebUI.take_percy_snapshot('Users UI with New User')

@allure.tag("Delete")
@allure.story("Delete Local Users")
Expand Down
2 changes: 1 addition & 1 deletion test_cases/webui/login/test_login_page_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_login_page_ui(self):
This test asserts the UI of the login page
"""
assert COM.assert_copyright_text_is_correct() is True
WebUI.take_percy_snapshot('Login Page UI')
# WebUI.take_percy_snapshot('Login Page UI')
assert LPU.assert_password_visibility_button_toggles_off_to_on() is True
assert LPU.assert_password_visibility_button_toggles_on_to_off() is True
assert LPU.assert_text_doesnt_affect_password_visibility_button() is True
Expand Down
2 changes: 1 addition & 1 deletion test_cases/webui/storage/test_storage_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ def test_take_storage_dashboard_snapshot(self):
"""
Navigation.navigate_to_storage()
assert Storage.is_pool_name_header_visible('tank') is True
WebUI.take_percy_snapshot('Storage Dashboard UI')
# WebUI.take_percy_snapshot('Storage Dashboard UI')

0 comments on commit d723565

Please sign in to comment.