diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-17 06:08:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-17 06:08:51 +0300 |
commit | bb6a3bf05eca11bede23c89a4b2a80a946707307 (patch) | |
tree | 18086fbc00d3c13112c4e64dcfe0ef5462fd1fd3 /spec/features/groups | |
parent | f52c68bbac191605f793686c472425b000a0879a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/groups')
-rw-r--r-- | spec/features/groups/group_settings_spec.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/spec/features/groups/group_settings_spec.rb b/spec/features/groups/group_settings_spec.rb index 5510e73ef0f..2aa70ec1953 100644 --- a/spec/features/groups/group_settings_spec.rb +++ b/spec/features/groups/group_settings_spec.rb @@ -147,14 +147,14 @@ RSpec.describe 'Edit group settings', feature_category: :subgroups do selected_group.add_owner(user) end - it 'can successfully transfer the group', quarantine: 'https://gitlab.com/gitlab-org/gitlab/-/issues/384966' do + it 'can successfully transfer the group' do visit edit_group_path(selected_group) page.within('[data-testid="transfer-locations-dropdown"]') do click_button _('Select parent group') fill_in _('Search'), with: target_group_name wait_for_requests - click_button target_group_name + click_button(target_group_name || 'No parent group') end click_button s_('GroupSettings|Transfer group') @@ -166,7 +166,10 @@ RSpec.describe 'Edit group settings', feature_category: :subgroups do click_button 'Confirm' end - expect(page).to have_text "Group '#{selected_group.name}' was successfully transferred." + within('[data-testid="breadcrumb-links"]') do + expect(page).to have_content(target_group_name) if target_group_name + expect(page).to have_content(selected_group.name) + end expect(current_url).to include(selected_group.reload.full_path) end end @@ -175,7 +178,7 @@ RSpec.describe 'Edit group settings', feature_category: :subgroups do let(:selected_group) { create(:group, path: 'foo-subgroup', parent: group) } context 'when transfering to no parent group' do - let(:target_group_name) { 'No parent group' } + let(:target_group_name) { nil } it_behaves_like 'can transfer the group' end |