summaryrefslogtreecommitdiff
path: root/qa/qa/page/dashboard/snippet/edit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/dashboard/snippet/edit.rb')
-rw-r--r--qa/qa/page/dashboard/snippet/edit.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/qa/qa/page/dashboard/snippet/edit.rb b/qa/qa/page/dashboard/snippet/edit.rb
index cd8ac77ae04..939413f6d76 100644
--- a/qa/qa/page/dashboard/snippet/edit.rb
+++ b/qa/qa/page/dashboard/snippet/edit.rb
@@ -23,7 +23,8 @@ module QA
end
def add_to_file_content(content)
- text_area.set content
+ text_area.click
+ text_area.send_keys(:home, content) # starts in the beginning of the line
text_area.has_text?(content) # wait for changes to take effect
end