spec/features/video_spec.rb in redditor-0.1.5 vs spec/features/video_spec.rb in redditor-0.1.6

- old
+ new

@@ -11,11 +11,11 @@ end def visit_article() visit "/admin/articles/#{article.id}/edit"; end def add_block() find_link(I18n.t("redditor.add.video_block")).click; end def submit() find_button("Submit").click; end - def save_block() find_link("✔").click; end - def delete_block() find_link("✘").click; end + def save_block() find("a.redditor__update").click; end + def delete_block() find("a.redditor__delete").click; end it "Saves video block to article", type: :feature, js: true do add_block page.find(".video-block-input").set("1"*11) submit \ No newline at end of file