discourse-subscriptions/spec/system/subscription_product_spec.rb

17 lines
438 B
Ruby

# frozen_string_literal: true
describe "Subscription products", type: :system do
fab!(:admin) { Fabricate(:admin) }
fab!(:product) { Fabricate(:product, external_id: "prod_OiKyO6ZMFCIhQa") }
before { SiteSetting.discourse_subscriptions_enabled = true }
it "shows the login modal" do
visit("/s")
find("button.login-required.subscriptions").click
expect(page).to have_css(".modal-container .login-modal")
end
end