Commit 2dec1772 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'fixed-failing-markdown-input-tests' into 'master'

Fixed failing markdown button tests

See merge request !8471
parents a3b3b5d3 9ab5c42d
...@@ -16,7 +16,7 @@ feature 'Issue markdown toolbar', feature: true, js: true do ...@@ -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_key(:enter)
find('#note_note').native.send_keys('bold') 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 first('.toolbar-btn').click
...@@ -28,7 +28,7 @@ feature 'Issue markdown toolbar', feature: true, js: true do ...@@ -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_key(:enter)
find('#note_note').native.send_keys('underline') 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 find('.toolbar-btn:nth-child(2)').click
......
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