Skip to content

Commit 289689f

Browse files
committed
test: wait for UI render
1 parent cd9260b commit 289689f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/gui/shared/scripts/pageObjects/Activity.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class Activity:
99
TAB_CONTAINER = {
1010
"container": names.settings_stack_QStackedWidget,
1111
"type": "QTabWidget",
12-
"unnamed": 1,
1312
"visible": 1,
1413
}
1514
SUBTAB_CONTAINER = {
@@ -61,6 +60,12 @@ def getNotSyncedStatus(row):
6160
def clickTab(tabName):
6261
tabFound = False
6362

63+
# NOTE: Some activity tabs are not immediately available
64+
# and the tab index changes after all the tabs are loaded properly
65+
# So wait for a second to let the UI render the tabs properly
66+
# before trying to click the tab
67+
squish.snooze(get_config("lowestSyncTimeout"))
68+
6469
# Selecting tab by name fails for "Not Synced" when there are no unsynced files
6570
# Because files count will be appended like "Not Synced (2)"
6671
# So to overcome this the following approach has been implemented

0 commit comments

Comments
 (0)