diff --git a/tests/addon/test_integration.py b/tests/addon/test_integration.py index d2d7a6387..151e31775 100644 --- a/tests/addon/test_integration.py +++ b/tests/addon/test_integration.py @@ -165,7 +165,7 @@ _post_message_to_ankihub_js, ) from ankihub.gui.media_sync import media_sync -from ankihub.gui.menu import AnkiHubLogin, menu_state +from ankihub.gui.menu import AnkiHubLogin, menu_state, refresh_ankihub_menu from ankihub.gui.operations import ankihub_sync from ankihub.gui.operations.db_check import ah_db_check from ankihub.gui.operations.db_check.ah_db_check import check_ankihub_db @@ -5542,6 +5542,8 @@ def test_ankihub_menu_item_exists(self, anki_session_with_addon_data: AnkiSessio entry_point.run() with anki_session_with_addon_data.profile_loaded(): # Assert that the Config menu item exists + refresh_ankihub_menu() + config_action = next( child for child in menu_state.ankihub_menu.children()