File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 360360 end . to change { Donation . count } . by ( 1 )
361361 end
362362
363+ it "Allows User to create a Donataion Site from donation" do
364+ select Donation ::SOURCES [ :donation_site ] , from : "donation_source"
365+ select "---Create New Donation site---" , from : "donation_donation_site_id"
366+
367+ find ( ".modal-content" )
368+ expect ( page ) . to have_content ( "New Donation Site" )
369+
370+ fill_in "donation_site_name" , with : "Test Donation Site"
371+ fill_in "donation_site_address" , with : "Test Address"
372+ within ( ".modal-content" ) { click_button "Save" }
373+ select "Test Donation Site" , from : "donation_donation_site_id"
374+ end
375+
363376 it "Allows User to create a donation with a Miscellaneous source" do
364377 select Donation ::SOURCES [ :misc ] , from : "donation_source"
365378 expect ( page ) . not_to have_xpath ( "//select[@id='donation_donation_site_id']" )
You can’t perform that action at this time.
0 commit comments