pxr/usdImaging/usdviewq/blackBoxTesting.md
The testusdview automated testing harness allows us to test many of usdview's features, but not all. As we develop, when we fix or deploy a feature for which it does not seem reasonable to add a testusdview test-case, we should instead add a test for it here.
Ensure that when we select (including multi-select) prims (or models, when "Pick Mode" is "Models") in the viewport, and then use the hotkeys for Make Invisible, Make Visible, Vis Only, Remove Session Visibility, and Remove All Session Visibility, that:
The Prim View Browser should select prims when the user clicks within the Prim Name or Type columns, but when clicking in the Vis or Draw Mode columns, the current selection should not be affected, and instead the user should just be modifying the prim's visibility or Draw Mode.
After initial deployment of this feature, there was an uncaught regression in which interacting with a prim/row when the selected prim/row was not visible in the browser would cause the browser to scroll to the selected prim and cancel the interaction.
When making selections in the viewport, we do not expect the "expansion state" of the Prim View to change. Instead, if selected prim(s) is already visible in the browser, then it should highlight (become selected); but if it is not visible/exposed, then only its visible ancestors should be highlighted in a secondary, muted selection color.