Handle modal dialogue which will block all tests in the cms

updated as an afterScenario event
Merge pull request #73 from jeffreyguo/pulls/cms-modal

Handle modal dialogue which will block all tests in the cms