diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-16 12:09:12 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-16 12:09:12 +0000 |
commit | cbfe03ae04a52d9825ff7cbeccdfe5d313adf6a2 (patch) | |
tree | e4879b35d019d3bbba1689f3ac4c48b81bf7b451 /qa/qa/page/project | |
parent | 3fd97b4bba24ca412112aad025a38a32c7a6cf8c (diff) | |
download | gitlab-ce-cbfe03ae04a52d9825ff7cbeccdfe5d313adf6a2.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/qa/page/project')
-rw-r--r-- | qa/qa/page/project/web_ide/edit.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qa/qa/page/project/web_ide/edit.rb b/qa/qa/page/project/web_ide/edit.rb index 73b0856b445..a9b82ac6046 100644 --- a/qa/qa/page/project/web_ide/edit.rb +++ b/qa/qa/page/project/web_ide/edit.rb @@ -48,6 +48,10 @@ module QA element :start_new_mr_checkbox end + view 'app/assets/javascripts/ide/components/repo_editor.vue' do + element :editor_container + end + def has_file?(file_name) within_element(:file_list) do page.has_content? file_name @@ -113,6 +117,17 @@ module QA raise "The changes do not appear to have been committed successfully." unless commit_success_msg_shown end + + def add_to_modified_content(content) + finished_loading? + modified_text_area.set content + end + + def modified_text_area + within_element(:editor_container) do + find('.modified textarea.inputarea') + end + end end end end |