diff options
author | Sanad Liaquat <sliaquat@gitlab.com> | 2019-06-26 11:02:07 +0300 |
---|---|---|
committer | Sanad Liaquat <sliaquat@gitlab.com> | 2019-06-26 11:02:07 +0300 |
commit | 58eae2d39275fa1b4cca5f39ebac922d62047c17 (patch) | |
tree | 475c19a3a3cdc682652bede69af4fc871b560cc0 /qa | |
parent | 235d87777e611c57a6d7e44b32f863672d3d5bc6 (diff) | |
parent | ba837a8fc6f65029fd4c2acaeb91b7f5e8faeeb1 (diff) |
Merge branch 'qa-ml-unquarantine-snippet-test' into 'master'
Execute snippet test on a private snippet instead of public
Closes gitlab-org/quality/staging#49
See merge request gitlab-org/gitlab-ce!29834
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/specs/features/browser_ui/3_create/snippet/create_snippet_spec.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/qa/qa/specs/features/browser_ui/3_create/snippet/create_snippet_spec.rb b/qa/qa/specs/features/browser_ui/3_create/snippet/create_snippet_spec.rb index f6f0468e76e..796de44a012 100644 --- a/qa/qa/specs/features/browser_ui/3_create/snippet/create_snippet_spec.rb +++ b/qa/qa/specs/features/browser_ui/3_create/snippet/create_snippet_spec.rb @@ -1,8 +1,7 @@ # frozen_string_literal: true module QA - # Failure issue: https://gitlab.com/gitlab-org/quality/staging/issues/49 - context 'Create', :smoke, :quarantine do + context 'Create', :smoke do describe 'Snippet creation' do it 'User creates a snippet' do Runtime::Browser.visit(:gitlab, Page::Main::Login) @@ -13,7 +12,7 @@ module QA Resource::Snippet.fabricate_via_browser_ui! do |snippet| snippet.title = 'Snippet title' snippet.description = 'Snippet description' - snippet.visibility = 'Public' + snippet.visibility = 'Private' snippet.file_name = 'New snippet file name' snippet.file_content = 'Snippet file text' end @@ -21,8 +20,7 @@ module QA Page::Dashboard::Snippet::Show.perform do |snippet| expect(snippet).to have_snippet_title('Snippet title') expect(snippet).to have_snippet_description('Snippet description') - expect(snippet).to have_embed_type('Embed') - expect(snippet).to have_visibility_type('Public') + expect(snippet).to have_visibility_type('Private') expect(snippet).to have_file_name('New snippet file name') expect(snippet).to have_file_content('Snippet file text') end |