Commit 1d0aa480 authored by Sean McGivern's avatar Sean McGivern

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

Fix notes_on_personal_snippets_spec

Closes #31938

See merge request !11160
parents 0b8bf5ed 4c25701d
...@@ -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