fix failing tests
This commit is contained in:
parent
68c1e3a156
commit
7f3fc26ec9
3 changed files with 4 additions and 4 deletions
|
@ -21,9 +21,9 @@
|
||||||
|
|
||||||
.snippet-info
|
.snippet-info
|
||||||
#{snippet.to_reference} ·
|
#{snippet.to_reference} ·
|
||||||
authored #{time_ago_with_tooltip(snippet.created_at, placement: 'bottom')} by
|
authored #{time_ago_with_tooltip(snippet.created_at, placement: 'bottom', html_class: 'snippet-created-ago')} by
|
||||||
= link_to user_snippets_path(snippet.author) do
|
= link_to user_snippets_path(snippet.author) do
|
||||||
= snippet.author_name
|
= snippet.author_name
|
||||||
|
|
||||||
.pull-right.snippet-updated-at
|
.pull-right.snippet-updated-at
|
||||||
%span updated #{time_ago_with_tooltip(snippet.updated_at, placement: 'bottom', html_class: 'snippet_update_ago')}
|
%span updated #{time_ago_with_tooltip(snippet.updated_at, placement: 'bottom')}
|
||||||
|
|
|
@ -22,7 +22,7 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
|
||||||
end
|
end
|
||||||
|
|
||||||
step 'I click link "New snippet"' do
|
step 'I click link "New snippet"' do
|
||||||
click_link "New snippet"
|
first(:link, "New snippet").click
|
||||||
end
|
end
|
||||||
|
|
||||||
step 'I click link "Snippet one"' do
|
step 'I click link "Snippet one"' do
|
||||||
|
|
|
@ -36,7 +36,7 @@ feature 'Tooltips on .timeago dates', feature: true, js: true do
|
||||||
visit user_snippets_path(user)
|
visit user_snippets_path(user)
|
||||||
wait_for_ajax()
|
wait_for_ajax()
|
||||||
|
|
||||||
page.find('.js-timeago').hover
|
page.find('.js-timeago.snippet-created-ago').hover
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'has the datetime formated correctly' do
|
it 'has the datetime formated correctly' do
|
||||||
|
|
Loading…
Reference in a new issue