Store the expanded locators on the page.

STUD-2038
Add test for expand collapse while editing name
Merge pull request #4667 from edx/christina/store-collapsed-state

Store the expanded locators on the page.