mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 11:34:13 +00:00
Add onboarding state selector for self-hosted signup (#251)
* Add onboarding modes to self-hosted signup * Style form consistently * Configure ONBOARDING_STATE via ENV
This commit is contained in:
@@ -44,7 +44,10 @@ class SettingsTest < ApplicationSystemTestCase
|
||||
click_link "Self-Hosting"
|
||||
assert_current_path settings_hosting_path
|
||||
assert_selector "h1", text: "Self-Hosting"
|
||||
check "setting[require_invite_for_signup]", allow_label_click: true
|
||||
find("select#setting_onboarding_state").select("Invite-only")
|
||||
within("select#setting_onboarding_state") do
|
||||
assert_selector "option[selected]", text: "Invite-only"
|
||||
end
|
||||
click_button "Generate new code"
|
||||
assert_selector 'span[data-clipboard-target="source"]', visible: true, count: 1 # invite code copy widget
|
||||
copy_button = find('button[data-action="clipboard#copy"]', match: :first) # Find the first copy button (adjust if needed)
|
||||
|
||||
Reference in New Issue
Block a user