Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-01-06 13:02:16 +0300
committerPhil Hughes <me@iamphill.com>2017-01-06 16:56:16 +0300
commit9ab5c42df49432d003fbe5b15857ce41cbfd50fc (patch)
tree9ff140f9797e853a6b0ceeee0f2658ae51e4a59d /spec/features/issues/markdown_toolbar_spec.rb
parent6003f6ea93f8935ef4b6e9972f06a6a11aa48e69 (diff)
Fixed failing markdown button tests
Diffstat (limited to 'spec/features/issues/markdown_toolbar_spec.rb')
-rw-r--r--spec/features/issues/markdown_toolbar_spec.rb4
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