Commit da5be5cd authored by Dan Davison's avatar Dan Davison

Merge branch 'qa-add-dynamic-element-validation-to-snippet-edit' into 'master'

Add Dynamic Element Validation to Snippet/Edit

See merge request gitlab-org/gitlab!44872
parents d1eb3b42 808be426
......@@ -139,7 +139,7 @@ module QA
end
def click_edit_button
click_element(:snippet_action_button, action: 'Edit')
click_element(:snippet_action_button, Page::Dashboard::Snippet::Edit, action: 'Edit')
end
def click_delete_button
......
......@@ -6,11 +6,10 @@ module QA
module Snippet
class Edit < Page::Base
view 'app/assets/javascripts/snippets/components/edit.vue' do
element :submit_button
element :submit_button, required: true
end
def add_to_file_content(content)
finished_loading?
text_area.set content
text_area.has_text?(content) # wait for changes to take effect
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