BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
4c25701d
Commit
4c25701d
authored
May 08, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just assert the existence of the timeago element
parent
17fc18ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
notes_on_personal_snippets_spec.rb
spec/features/snippets/notes_on_personal_snippets_spec.rb
+3
-4
No files found.
spec/features/snippets/notes_on_personal_snippets_spec.rb
View file @
4c25701d
...
...
@@ -67,9 +67,6 @@ describe 'Comments on personal snippets', :js, feature: true do
end
context
'when editing a note'
do
# Matches `less than a minute ago`, `about a minute ago` and `N minutes ago`
let
(
:timeago_regex
)
{
/((less than|about) a minute|\d+? minutes) ago/
}
it
'changes the text'
do
page
.
within
(
"#notes-list li#note_
#{
snippet_notes
[
0
].
id
}
"
)
do
click_on
'Edit comment'
...
...
@@ -81,9 +78,11 @@ describe 'Comments on personal snippets', :js, feature: true do
end
page
.
within
(
"#notes-list li#note_
#{
snippet_notes
[
0
].
id
}
"
)
do
edited_text
=
find
(
'.edited-text'
)
expect
(
page
).
to
have_css
(
'.note_edited_ago'
)
expect
(
page
).
to
have_content
(
'new content'
)
expect
(
find
(
'.note_edited_ago'
).
text
).
to
match
(
timeago_regex
)
expect
(
edited_text
).
to
have_selector
(
'.note_edited_ago'
)
end
end
end
...
...
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