Commit 0528097
committed
Fix test_refresh_preserves_state not waiting for collapse
history_panel_click_item_title was called with wait=False when
collapsing dataset details. This returned immediately after clicking,
without waiting for the GCollapse animation to complete or the
ExpandedItems store to persist the collapsed state to sessionStorage.
The subsequent navigation (self.home()) could then race ahead of the
state persistence, causing the item to appear expanded after refresh.
Fix: use wait=True so the click waits for
details_component.wait_for_absent_or_hidden(), matching the pattern
already used for expanding in the same test.1 parent e86b306 commit 0528097
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | 159 | | |
161 | 160 | | |
162 | 161 | | |
| |||
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
178 | | - | |
| 177 | + | |
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
| |||
0 commit comments