diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 14:34:42 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 14:34:42 +0000 |
commit | 9f46488805e86b1bc341ea1620b866016c2ce5ed (patch) | |
tree | f9748c7e287041e37d6da49e0a29c9511dc34768 /qa/qa/page/dashboard/snippet/new.rb | |
parent | dfc92d081ea0332d69c8aca2f0e745cb48ae5e6d (diff) | |
download | gitlab-ce-9f46488805e86b1bc341ea1620b866016c2ce5ed.tar.gz |
Add latest changes from gitlab-org/gitlab@13-0-stable-ee
Diffstat (limited to 'qa/qa/page/dashboard/snippet/new.rb')
-rw-r--r-- | qa/qa/page/dashboard/snippet/new.rb | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/qa/qa/page/dashboard/snippet/new.rb b/qa/qa/page/dashboard/snippet/new.rb index da5013e787e..d1a194ba1db 100644 --- a/qa/qa/page/dashboard/snippet/new.rb +++ b/qa/qa/page/dashboard/snippet/new.rb @@ -5,16 +5,33 @@ module QA module Dashboard module Snippet class New < Page::Base + view 'app/assets/javascripts/snippets/components/edit.vue' do + element :submit_button + end + + view 'app/assets/javascripts/snippets/components/snippet_description_edit.vue' do + element :snippet_description_field + element :description_placeholder, required: true + end + + view 'app/assets/javascripts/snippets/components/snippet_title.vue' do + element :snippet_title, required: true + end + + view 'app/assets/javascripts/snippets/components/snippet_blob_edit.vue' do + element :snippet_file_name + end + view 'app/views/shared/form_elements/_description.html.haml' do element :issuable_form_description end view 'app/views/shared/snippets/_form.html.haml' do - element :description_field + element :snippet_description_field element :description_placeholder element :snippet_title element :snippet_file_name - element :create_snippet_button + element :submit_button end view 'app/views/projects/_zen.html.haml' do @@ -28,7 +45,7 @@ module QA def fill_description(description) click_element :description_placeholder - fill_element :description_field, description + fill_element :snippet_description_field, description end def set_visibility(visibility) @@ -46,7 +63,8 @@ module QA end def click_create_snippet_button - click_element :create_snippet_button + wait_until(reload: false) { !find_element(:submit_button).disabled? } + click_element :submit_button end private |