Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gui-tests][full-ci] wait for tabs to render completely #11709

Merged
merged 2 commits into from
Jun 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion test/gui/shared/scripts/pageObjects/Activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class Activity:
TAB_CONTAINER = {
"container": names.settings_stack_QStackedWidget,
"type": "QTabWidget",
"unnamed": 1,
"visible": 1,
}
SUBTAB_CONTAINER = {
Expand Down Expand Up @@ -61,6 +60,12 @@ def getNotSyncedStatus(row):
def clickTab(tabName):
tabFound = False

# NOTE: Some activity tabs are loaded dynamically
# and the tab index changes after all the tabs are loaded properly
# So wait for a second to let the UI render the tabs properly
# before trying to click the tab
squish.snooze(get_config("lowestSyncTimeout"))

# Selecting tab by name fails for "Not Synced" when there are no unsynced files
# Because files count will be appended like "Not Synced (2)"
# So to overcome this the following approach has been implemented
Expand Down
Loading