Bug 864476 - [FTE] the progression bar should be hidden in some panels r...

...=arcturus

Moved the className calculation before the switch-case so that we can override
it inside the switch-case.

Added a test case to prevent future regressions