diff options
Diffstat (limited to 'spec/features/nav/top_nav_spec.rb')
-rw-r--r-- | spec/features/nav/top_nav_spec.rb | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/spec/features/nav/top_nav_spec.rb b/spec/features/nav/top_nav_spec.rb deleted file mode 100644 index bf91897eb26..00000000000 --- a/spec/features/nav/top_nav_spec.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -RSpec.describe 'top nav responsive', :js, feature_category: :navigation do - include Features::InviteMembersModalHelpers - - let_it_be(:user) { create(:user, :no_super_sidebar) } - - before do - sign_in(user) - end - - context 'when inside a project' do - let_it_be(:project) { create(:project).tap { |record| record.add_owner(user) } } - - before do - visit project_path(project) - end - - it 'the add menu contains invite members dropdown option and opens invite modal' do - invite_members_from_menu - - page.within invite_modal_selector do - expect(page).to have_content("You're inviting members to the #{project.name} project") - end - end - end - - context 'when inside a group' do - let_it_be(:group) { create(:group).tap { |record| record.add_owner(user) } } - - before do - visit group_path(group) - end - - it 'the add menu contains invite members dropdown option and opens invite modal' do - invite_members_from_menu - - page.within invite_modal_selector do - expect(page).to have_content("You're inviting members to the #{group.name} group") - end - end - end - - def invite_members_from_menu - find('[data-testid="new-menu-toggle"]').click - - click_link('Invite members') - end -end |