docbrown/spec/system/authentication/creator_config_edit_spec.rb
Fernando Valverde e73afa22c7
Take Apple Authentication out of Beta (#12114)
* Removing :apple_auth feature flag and debugging

* Fix tests failing due to nil in Devise initializer

* Remove db/schema.rb changes

* Devise config tweak

* cleaning up

* Fix spec + delete debug logs

* Removes temporary beta_access_providers spec + remove feature flag DUS

* Add test to avoid connecting an existing user with SIWA

* Fix merge conflict mistake + more feature flag cleanups
2021-08-03 15:04:00 -06:00

25 lines
728 B
Ruby

require "rails_helper"
RSpec.describe "Creator config edit", type: :system, js: true do
let(:admin) { create(:user, :super_admin) }
context "when a creator browses /admin/customization/config" do
before do
sign_in admin
allow(ForemInstance).to receive(:private?).and_return(false)
end
it "presents all available OAuth providers" do
visit admin_config_path
within("div[data-target='#authenticationBodyContainer']") do
click_on("Show info", match: :first)
end
Authentication::Providers.available.each do |provider|
element = find(".config-authentication__item--label", text: /#{provider}/i)
expect(element).not_to be_nil
end
end
end
end