diff --git a/modules/testrail_integration.py b/modules/testrail_integration.py index b670b8ddc..665e6a2f9 100644 --- a/modules/testrail_integration.py +++ b/modules/testrail_integration.py @@ -392,7 +392,12 @@ def organize_l10n_entries( if not test_results[category].get(run_id): test_results[category][run_id] = [] test_results[category][run_id].append( - {"suite_id": suite_id, "site": site, "test_case": test_case, "duration": f"{duration}s"} + { + "suite_id": suite_id, + "site": site, + "test_case": test_case, + "duration": f"{duration}s", + } ) return test_results diff --git a/tests/tabs/test_active_tab.py b/tests/tabs/test_active_tab.py index e2449d500..382c89b14 100644 --- a/tests/tabs/test_active_tab.py +++ b/tests/tabs/test_active_tab.py @@ -17,14 +17,15 @@ def test_active_tab(driver: Firefox): tabs = TabBar(driver) num_tabs = 5 - # opening 5 tabs + # Open 5 tabs for i in range(num_tabs): tabs.new_tab_by_button() - # go through all the tabs and ensure highlighted one is correct, +2 since 1 indexed and additional tab for the beginning + # Go through all the tabs and ensure the focus is correct for i in range(1, num_tabs + 2): - target_tab = tabs.get_tab(i) with driver.context(driver.CONTEXT_CHROME): + target_tab = tabs.get_tab(i) target_tab.click() - visibility = target_tab.get_attribute("visuallyselected") - assert visibility == "" + tabs.custom_wait(timeout=3).until( + lambda d: target_tab.get_attribute("visuallyselected") == "" + )