Commit fcdd7a4b authored by Ramya Authappan's avatar Ramya Authappan

Merge branch 'qe-fix-share-snippet-spec' into 'master'

Fix change visibility in share snippet spec

See merge request gitlab-org/gitlab!55670
parents df5fcb4e ee5a562a
...@@ -18,13 +18,17 @@ module QA ...@@ -18,13 +18,17 @@ module QA
element :delete_file_button element :delete_file_button
end end
view 'app/assets/javascripts/snippets/components/snippet_visibility_edit.vue' do
element :visibility_content
end
def add_to_file_content(content) def add_to_file_content(content)
text_area.set content text_area.set content
text_area.has_text?(content) # wait for changes to take effect text_area.has_text?(content) # wait for changes to take effect
end end
def change_visibility_to(visibility_type) def change_visibility_to(visibility_type)
choose(visibility_type) click_element(:visibility_content, visibility: visibility_type)
end end
def click_add_file def click_add_file
......
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