Commit 00238139 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'fix-notes_on_personal_snippets_spec-timeago-assertion' into 'master'

Fix notes_on_personal_snippets_spec EE

See merge request !1846
parents 7ece669c 4ea42240
...@@ -78,9 +78,11 @@ describe 'Comments on personal snippets', :js, feature: true do ...@@ -78,9 +78,11 @@ describe 'Comments on personal snippets', :js, feature: true do
end end
page.within("#notes-list li#note_#{snippet_notes[0].id}") do 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_css('.note_edited_ago')
expect(page).to have_content('new content') expect(page).to have_content('new content')
expect(find('.note_edited_ago').text).to match(/less than a minute ago/) expect(edited_text).to have_selector('.note_edited_ago')
end end
end end
end end
......
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