Adding tests for collapsing and expanding sidebar sections

Bug: 48449
Change-Id: I42f2d5d9ec0b26d4e39cbe8ef355b306a6b93f7b