Adding a 1 second wait for the popup to appear because if it's to fast the next assertion is not valid
Remove current tag
Change in javascript for rules + update test for badge rules
Remove conole.log + adding functionnal test for badge in rule