diff options
author | toofar <toofar@spalge.com> | 2024-02-09 15:32:57 +1300 |
---|---|---|
committer | toofar <toofar@spalge.com> | 2024-02-09 15:32:57 +1300 |
commit | 734503cf2862012cf3b61411e0469ef2f072f80d (patch) | |
tree | ddf8a89b3c1116d5f84fd20b3a6a10fcfaedffac | |
parent | 810088ed69c8e5eed92a260a208db61d1b48f7ac (diff) | |
download | qutebrowser-tree/8076_fix_loading_collapsed_tabs_and_legacy_session_support.tar.gz qutebrowser-tree/8076_fix_loading_collapsed_tabs_and_legacy_session_support.zip |
Wait for all tabs to be loaded after loading sessionstree/8076_fix_loading_collapsed_tabs_and_legacy_session_support
I got a failure in CI on windows for the "Load a collapsed subtree"
where it got an index error when trying to load the active history entry
for a tab in a session. This is likely because the session was saved
before the tab was loaded. I can reproduce it locally by changing the
last test to wait for only the first tab, instead of the last.
-rw-r--r-- | tests/end2end/features/treetabs.feature | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/end2end/features/treetabs.feature b/tests/end2end/features/treetabs.feature index 898f9e21a..27bc72fa4 100644 --- a/tests/end2end/features/treetabs.feature +++ b/tests/end2end/features/treetabs.feature @@ -47,6 +47,8 @@ Feature: Tree tab management # Now actually load the saved session And I run :session-save foo And I run :session-load -c foo + And I wait until data/numbers/1.txt is loaded + And I wait until data/numbers/2.txt is loaded And I wait until data/numbers/3.txt is loaded # And of course the same assertion as above too Then the following tabs should be open: @@ -80,6 +82,9 @@ Feature: Tree tab management And I set tabs.new_position.tree.new_child to last And I set tabs.new_position.tree.new_toplevel to prev And I run :session-load -c foo + And I wait until data/numbers/1.txt is loaded + And I wait until data/numbers/2.txt is loaded + And I wait until data/numbers/3.txt is loaded And I wait until data/numbers/4.txt is loaded Then the following tabs should be open: - data/numbers/1.txt |