NEED HELP: add popup tests

I try to add simple tests for the popup. But the second test failed at the end 

`expect(element.css('display')).to.eql('none');`

I don't understand what is wrong. Anyone can help me?