You'll need to use "@javascript" for this test and probably set up the poltergeist gem.