Commit 808be426 authored by Anastasia McDonald's avatar Anastasia McDonald

Add Dynamic Element Validation to Snippet/Edit

https://gitlab.com/gitlab-org/gitlab/-/issues/257877
parent 0e335a91
...@@ -139,7 +139,7 @@ module QA ...@@ -139,7 +139,7 @@ module QA
end end
def click_edit_button def click_edit_button
click_element(:snippet_action_button, action: 'Edit') click_element(:snippet_action_button, Page::Dashboard::Snippet::Edit, action: 'Edit')
end end
def click_delete_button def click_delete_button
......
...@@ -6,11 +6,10 @@ module QA ...@@ -6,11 +6,10 @@ module QA
module Snippet module Snippet
class Edit < Page::Base class Edit < Page::Base
view 'app/assets/javascripts/snippets/components/edit.vue' do view 'app/assets/javascripts/snippets/components/edit.vue' do
element :submit_button element :submit_button, required: true
end end
def add_to_file_content(content) def add_to_file_content(content)
finished_loading?
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
......
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