diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 14:10:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 14:10:13 +0300 |
commit | 0ea3fcec397b69815975647f5e2aa5fe944a8486 (patch) | |
tree | 7979381b89d26011bcf9bdc989a40fcc2f1ed4ff /spec/views/admin/application_settings/general.html.haml_spec.rb | |
parent | 72123183a20411a36d607d70b12d57c484394c8e (diff) |
Add latest changes from gitlab-org/gitlab@15-1-stable-eev15.1.0-rc42
Diffstat (limited to 'spec/views/admin/application_settings/general.html.haml_spec.rb')
-rw-r--r-- | spec/views/admin/application_settings/general.html.haml_spec.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/spec/views/admin/application_settings/general.html.haml_spec.rb b/spec/views/admin/application_settings/general.html.haml_spec.rb index 503e41eabc9..3614090d3cb 100644 --- a/spec/views/admin/application_settings/general.html.haml_spec.rb +++ b/spec/views/admin/application_settings/general.html.haml_spec.rb @@ -68,4 +68,33 @@ RSpec.describe 'admin/application_settings/general.html.haml' do expect(rendered).not_to have_css('#js-add-license-toggle') end end + + describe 'jira connect application key' do + it 'shows the jira connect application key section' do + render + + expect(rendered).to have_css('#js-jira_connect-settings') + end + + context 'when the jira_connect_oauth feature flag is disabled' do + before do + stub_feature_flags(jira_connect_oauth: false) + end + + it 'does not show the jira connect application key section' do + render + + expect(rendered).not_to have_css('#js-jira_connect-settings') + end + end + end + + describe 'sign-up restrictions' do + it 'renders js-signup-form tag' do + render + + expect(rendered).to match 'id="js-signup-form"' + expect(rendered).to match ' data-minimum-password-length=' + end + end end |