diff options
author | Rémy Coutable <remy@rymai.me> | 2017-01-06 17:38:59 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-01-06 17:38:59 +0000 |
commit | 2dec1772f537ab607ff167cfb43b5ed5c99d5522 (patch) | |
tree | 4d05beaa3e3cf83a20c06b6c1929a769f6624458 | |
parent | a3b3b5d383a808d036e70616df759de029109756 (diff) | |
parent | 9ab5c42df49432d003fbe5b15857ce41cbfd50fc (diff) | |
download | gitlab-ce-2dec1772f537ab607ff167cfb43b5ed5c99d5522.tar.gz |
Merge branch 'fixed-failing-markdown-input-tests' into 'master'
Fixed failing markdown button tests
See merge request !8471
-rw-r--r-- | spec/features/issues/markdown_toolbar_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/issues/markdown_toolbar_spec.rb b/spec/features/issues/markdown_toolbar_spec.rb index 6ad4d4adbed..c8c9c50396b 100644 --- a/spec/features/issues/markdown_toolbar_spec.rb +++ b/spec/features/issues/markdown_toolbar_spec.rb @@ -16,7 +16,7 @@ feature 'Issue markdown toolbar', feature: true, js: true do find('#note_note').native.send_key(:enter) find('#note_note').native.send_keys('bold') - page.evaluate_script('document.getElementById("note_note").setSelectionRange(4, 9)') + page.evaluate_script('document.querySelectorAll(".js-main-target-form #note_note")[0].setSelectionRange(4, 9)') first('.toolbar-btn').click @@ -28,7 +28,7 @@ feature 'Issue markdown toolbar', feature: true, js: true do find('#note_note').native.send_key(:enter) find('#note_note').native.send_keys('underline') - page.evaluate_script('document.getElementById("note_note").setSelectionRange(4, 50)') + page.evaluate_script('document.querySelectorAll(".js-main-target-form #note_note")[0].setSelectionRange(4, 50)') find('.toolbar-btn:nth-child(2)').click |