Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-03 15:13:59 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-03 15:13:59 +0300
commit6e228f38c37c4c7b6d6be648ae2664ebfb5c3c80 (patch)
tree0c7abe13728c198df556d04143dc624a67aaad85 /spec/features/groups_spec.rb
parentf6a4346585dcc6cc564cb4974a0ea49d2ac0531d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/groups_spec.rb')
-rw-r--r--spec/features/groups_spec.rb38
1 files changed, 38 insertions, 0 deletions
diff --git a/spec/features/groups_spec.rb b/spec/features/groups_spec.rb
index 8806d1c2219..f86db667420 100644
--- a/spec/features/groups_spec.rb
+++ b/spec/features/groups_spec.rb
@@ -512,6 +512,44 @@ RSpec.describe 'Group', feature_category: :subgroups do
end
end
+ describe 'group README', :js do
+ describe 'with :show_group_readme FF true' do
+ before do
+ stub_feature_flags(show_group_readme: true)
+ end
+
+ context 'with gitlab-profile project and README.md' do
+ let_it_be(:group) { create(:group) }
+ let_it_be(:project) { create(:project, :readme, namespace: group) }
+
+ it 'renders README block on group page' do
+ visit group_path(group)
+ wait_for_requests
+
+ expect(page).to have_text('README.md')
+ end
+ end
+ end
+
+ describe 'with :show_group_readme FF false' do
+ before do
+ stub_feature_flags(show_group_readme: false)
+ end
+
+ context 'with gitlab-profile project and README.md' do
+ let_it_be(:group) { create(:group) }
+ let_it_be(:project) { create(:project, :readme, namespace: group) }
+
+ it 'does not render README block on group page' do
+ visit group_path(group)
+ wait_for_requests
+
+ expect(page).not_to have_text('README.md')
+ end
+ end
+ end
+ end
+
def remove_with_confirm(button_text, confirm_with)
click_button button_text
fill_in 'confirm_name_input', with: confirm_with