this assertion is making assumption that popup has closed.
If you comment line 26 the test will still pass!
We want to be absolutely sure that the popup has been closed and is removed from the dom.