Sha256: eb650425124b2eeaa34538f0cf35801274fdf34947b63fd632256b8969ddda19
Contents?: true
Size: 578 Bytes
Versions: 3
Compression:
Stored size: 578 Bytes
Contents
require 'spec_helper' RSpec.describe "Store promotion rule", js: true do stub_authorization! let!(:store) { create(:store, name: "Real fake doors") } let!(:promotion) { create(:promotion) } it "Can add a store rule to a promotion" do visit spree.edit_admin_promotion_path(promotion) select2 "Store", from: "Add rule of type" within("#rules_container") { click_button "Add" } select2_search store.name, from: "Choose Stores" within("#rules_container") { click_button "Update" } expect(page).to have_content('successfully updated') end end
Version data entries
3 entries across 3 versions & 1 rubygems