This gem can compare doms and assert certain elements exists in doms using Nokogiri.
conda install dnachun::rb-rails-dom-testing