Amend specs

This commit is contained in:
Rob H
2014-05-07 13:34:47 +10:00
parent dcf048d631
commit 169d5669f1
2 changed files with 3 additions and 2 deletions

View File

@@ -285,7 +285,7 @@ feature %q{
click_button 'Add supplier'
page.all("table.exchanges tr.supplier td.products input").each { |e| e.click }
wait_until { page.find("#order_cycle_incoming_exchange_1_variants_#{initial_variants.last.id}", visible: true).present? }
page.should have_selector "#order_cycle_incoming_exchange_1_variants_#{initial_variants.last.id}", visible: true
page.find("#order_cycle_incoming_exchange_1_variants_#{initial_variants.last.id}", visible: true).click # uncheck (with visible:true filter)
check "order_cycle_incoming_exchange_2_variants_#{v1.id}"
check "order_cycle_incoming_exchange_2_variants_#{v2.id}"

View File

@@ -96,7 +96,8 @@ feature "As a consumer I want to check out my cart", js: true do
page.should have_content "Your order has been processed successfully", wait: 10
ActionMailer::Base.deliveries.length.should == 1
email = ActionMailer::Base.deliveries.last
email.subject.should include "Spree Demo Site Order Confirmation"
site_name = Spree::Config[:site_name]
email.subject.should include "#{site_name} Order Confirmation"
end
it "takes us to the order confirmation page when submitted with 'same as billing address' checked" do