Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4c313725
Commit
4c313725
authored
Jul 29, 2019
by
Patrick Derichs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add edit_note helper method
parent
67ffe3ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
spec/support/helpers/features/notes_helpers.rb
spec/support/helpers/features/notes_helpers.rb
+8
-0
No files found.
spec/support/helpers/features/notes_helpers.rb
View file @
4c313725
...
...
@@ -23,6 +23,14 @@ module Spec
end
end
def
edit_note
(
note_text_to_edit
,
new_note_text
)
page
.
within
(
'#notes-list li.note'
,
text:
note_text_to_edit
)
do
find
(
'.js-note-edit'
).
click
fill_in
(
'note[note]'
,
with:
new_note_text
)
find
(
'.js-comment-button'
).
click
end
end
def
preview_note
(
text
)
page
.
within
(
'.js-main-target-form'
)
do
filled_text
=
fill_in
(
'note[note]'
,
with:
text
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment