Commit 585f4dfd authored by Anastasia McDonald's avatar Anastasia McDonald

Add Dynamic Element Validation on saving snippets

Also adds a required element to Dashboard/Snippet/Show page
See https://gitlab.com/gitlab-org/gitlab/-/issues/233991
parent cc2b1f4f
......@@ -20,8 +20,7 @@ module QA
end
def save_changes
click_element(:submit_button)
wait_until { assert_no_element(:submit_button) }
click_element(:submit_button, Page::Dashboard::Snippet::Show)
end
private
......
......@@ -6,6 +6,10 @@ module QA
module Snippet
class Show < Page::Base
include Page::Component::Snippet
view 'app/assets/javascripts/snippets/components/snippet_title.vue' do
element :snippet_title_content, required: true
end
end
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