diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-27 18:09:52 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-27 18:09:52 +0300 |
commit | a2f36202361dcef1f2c9242929f81a4090b9ce97 (patch) | |
tree | ba21b187bf565cde47412e89bb1ccde829672dd9 /spec/features/whats_new_spec.rb | |
parent | 154523302b10ab5aeb67bde861880a98e3f8117a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/whats_new_spec.rb')
-rw-r--r-- | spec/features/whats_new_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/features/whats_new_spec.rb b/spec/features/whats_new_spec.rb index 55b96361f03..2938ea1b1e8 100644 --- a/spec/features/whats_new_spec.rb +++ b/spec/features/whats_new_spec.rb @@ -34,6 +34,24 @@ RSpec.describe "renders a `whats new` dropdown item" do sign_in(user) end + it 'renders dropdown item when feature enabled' do + Gitlab::CurrentSettings.update!(whats_new_variant: ApplicationSetting.whats_new_variants[:all_tiers]) + + visit root_dashboard_path + find('.header-help-dropdown-toggle').click + + expect(page).to have_button(text: "What's new") + end + + it 'does not render dropdown item when feature disabled' do + Gitlab::CurrentSettings.update!(whats_new_variant: ApplicationSetting.whats_new_variants[:disabled]) + + visit root_dashboard_path + find('.header-help-dropdown-toggle').click + + expect(page).not_to have_button(text: "What's new") + end + it 'shows notification dot and count and removes it once viewed' do visit root_dashboard_path |