Commit ee5a562a authored by Nailia Iskhakova's avatar Nailia Iskhakova

Fix change visibility in share snippet spec

Follow-up on https://gitlab.com/gitlab-org/gitlab/-/merge_requests/55575Signed-off-by: default avatarNailia Iskhakova <niskhakova@gitlab.com>
parent 411b8819
......@@ -18,13 +18,17 @@ module QA
element :delete_file_button
end
view 'app/assets/javascripts/snippets/components/snippet_visibility_edit.vue' do
element :visibility_content
end
def add_to_file_content(content)
text_area.set content
text_area.has_text?(content) # wait for changes to take effect
end
def change_visibility_to(visibility_type)
choose(visibility_type)
click_element(:visibility_content, visibility: visibility_type)
end
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