fix: Make sure the correct record is selected after an execution #124
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Select the correct test record in the tree after a test run completes.
Using the TreeView's
reveal
api requires the data provider to implement the optionalgetParent
method. The implementation I added is going to look a little strange since I couldn't find an explicit reference from a TestStep to its parent TestRecord. The implementation usesimg_url
as the way to map them sinceimg_url
contains the jobID in the path. We're not actually using thereveal
api to currently select TestSteps though, only TestRecords. So the implementation in this PR is technically not necessary. The alternative is to just returnnull
which signals to the TreeView the item being revealed is a child of the root (i.e. TestRecord). Both not ideal! So I'm open to whichever one the team thinks is less confusing.DEVX-3071