Commit 82ec75ac authored by Ramya Authappan's avatar Ramya Authappan

Merge branch 'qa-change-snippet-visibility-for-production' into 'master'

Change snippet visibility to Private

Closes #221016

See merge request gitlab-org/gitlab!34244
parents f4ef30ae b6668b87
...@@ -9,7 +9,7 @@ module QA ...@@ -9,7 +9,7 @@ module QA
Resource::ProjectSnippet.fabricate_via_browser_ui! do |snippet| Resource::ProjectSnippet.fabricate_via_browser_ui! do |snippet|
snippet.title = 'Project snippet' snippet.title = 'Project snippet'
snippet.description = ' ' snippet.description = ' '
snippet.visibility = 'Internal' snippet.visibility = 'Private'
snippet.file_name = 'markdown_file.md' snippet.file_name = 'markdown_file.md'
snippet.file_content = "### Snippet heading\n\n[Gitlab link](https://gitlab.com/)" snippet.file_content = "### Snippet heading\n\n[Gitlab link](https://gitlab.com/)"
end end
...@@ -17,7 +17,7 @@ module QA ...@@ -17,7 +17,7 @@ module QA
Page::Dashboard::Snippet::Show.perform do |snippet| Page::Dashboard::Snippet::Show.perform do |snippet|
expect(snippet).to have_snippet_title('Project snippet') expect(snippet).to have_snippet_title('Project snippet')
expect(snippet).to have_no_snippet_description expect(snippet).to have_no_snippet_description
expect(snippet).to have_visibility_type(/internal/i) expect(snippet).to have_visibility_type(/private/i)
expect(snippet).to have_file_name('markdown_file.md') expect(snippet).to have_file_name('markdown_file.md')
expect(snippet).to have_file_content('Snippet heading') expect(snippet).to have_file_content('Snippet heading')
expect(snippet).to have_file_content('Gitlab link') expect(snippet).to have_file_content('Gitlab link')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment