withDebugTab

fun IviServiceAwareTestCase.withDebugTab(debugTab: DebugTab, action: () -> Unit)

Opens the debug panel and executes action while the debugTab is selected in the debug panel. Afterwards the debug panel is closed.

This is preferable to openDebugPanel or openDebugPanelAndNavigateTo when the debug panel is only needed for a brief moment to perform an action, because it reduces the scope of ongoing things by closing the debug tab again.

In case the debug panel is needed for a longer period of time however, openDebugPanel and openDebugPanelAndNavigateTo are more suitable as they prevent repeated opening and closing of the debug panel and avoid the clutter that comes with it.