Add spec for delete button clicked then cancel clicked

This commit is contained in:
uu59 2014-11-26 16:27:33 +09:00
parent 40c95eaca7
commit 6b3add215c

View File

@ -144,5 +144,14 @@ describe "source_and_output", js: true do
page.should_not have_css('.input .panel-body') page.should_not have_css('.input .panel-body')
daemon.agent.config.strip.should == "" daemon.agent.config.strip.should == ""
end end
it "click delete button then cancel it" do
page.should have_css('.input .panel-body')
confirm_dialog(false) do
find(".btn", text: I18n.t('terms.destroy')).click
end
page.should have_css('.input .panel-body')
daemon.agent.config.strip.should == config_contents.strip
end
end end
end end