module Assertions module Base def assert_appears(selector,&block) assert has_no_css?(selector) block.call wait_until{ has_css?(selector) } end end end