Sha256: ffdc26d047332334db8d186c84b7bb2c515aa225c7f86aeeb0c637a2f42ef189
Contents?: true
Size: 520 Bytes
Versions: 2
Compression:
Stored size: 520 Bytes
Contents
require 'spec_helper' RSpec.feature 'Order Comments', :js do let!(:order) { create(:completed_order_with_totals) } before :each do login_as_admin end it "adding comments" do visit spree.comments_admin_order_path(order) expect(page).to have_text(/No Comments found/i) fill_in 'Comment', with: 'A test comment.' click_button 'Add Comment' expect(page).to have_text(/Comments \(1\)/i) # uppercase < v1.2, sentence case >= v1.3 expect(page).to have_text('A test comment.') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_comments-1.0.1 | spec/features/admin/order_comments_spec.rb |
solidus_comments-1.0.0 | spec/features/admin/order_comments_spec.rb |