On artefact page, when you scroll then rerun or review an environment, the scroll position resets to the top. After lots of debugging turns out that the issues occurs because initially the ArtefactPageBody widget builds a ListView. When you rerun or approve an artefact the ArtefactPageBody builds a YaruCircularProgressIndicator for a split second before building a ListView again. During this split second the older ListView is destroyed and together with it the scroll position on this page. To resolve the issue we avoid building a YaruCircularProgressIndicator during that split second. This can be done by using the filtered test executions provider's value property. This property will return the previous filtered test executions list while it's loading the changes of the rerun/review. Hence the ListView is always returned even when loading (at least not initially).
Description
On artefact page, when you scroll then rerun or review an environment, the scroll position resets to the top. After lots of debugging turns out that the issues occurs because initially the
ArtefactPageBody
widget builds aListView
. When you rerun or approve an artefact theArtefactPageBody
builds aYaruCircularProgressIndicator
for a split second before building aListView
again. During this split second the older ListView is destroyed and together with it the scroll position on this page. To resolve the issue we avoid building aYaruCircularProgressIndicator
during that split second. This can be done by using the filtered test executions provider's value property. This property will return the previous filtered test executions list while it's loading the changes of the rerun/review. Hence the ListView is always returned even when loading (at least not initially).Resolved issues
https://warthogs.atlassian.net/browse/RTW-344
Documentation
None
Web service API changes
None
Tests
Screencast from 2024-08-08 13-36-46.webm Screencast from 2024-08-08 13-40-35.webm