Commit d785d305 authored by Ramya Authappan's avatar Ramya Authappan

Merge branch 'ml-update-snippets-test-case-insensitive-visibility' into 'master'

Update snippets test to ignore visibility case

Closes #209928

See merge request gitlab-org/gitlab!26933
parents 34376c50 a42378fb
# frozen_string_literal: true
module QA
context 'Create', :smoke, quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/issues/209928', type: :bug } do
context 'Create', :smoke do
describe 'Snippet creation' do
it 'User creates a snippet' do
Flow::Login.sign_in
......@@ -19,7 +19,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_visibility_type('Private')
expect(snippet).to have_visibility_type(/private/i)
expect(snippet).to have_file_name('New snippet file name')
expect(snippet).to have_file_content('Snippet file text')
end
......
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