Sha256: e9646e6d43e043c86671a9b2ff6c03a70f91ce52481588330c02436c837a0f38
Contents?: true
Size: 639 Bytes
Versions: 2
Compression:
Stored size: 639 Bytes
Contents
require 'spec_helper' RSpec.feature "Print Invoice button", js: true do given!(:order) { FactoryGirl.create(:completed_order_with_totals) } given(:user) { FactoryGirl.create(:admin_user, password: "boxen1011") } scenario "it displays a print invoice button on order pages" do visit spree.admin_path fill_in "Email", with: user.email fill_in "Password", with: "boxen1011" click_button "Login" click_link order.number within(".page-actions") do print_button = find("a", text: /Print Invoice/i) expect(URI(print_button[:href]).path).to eql(spree.admin_order_path(order, :pdf)) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_print_invoice-1.0.2 | spec/features/admin_order_spec.rb |
solidus_print_invoice-1.0.1 | spec/features/admin_order_spec.rb |