diff --git a/app/views/wiki/revisions.html.erb b/app/views/wiki/revisions.html.erb
index daa64b4d1f..869a50a905 100644
--- a/app/views/wiki/revisions.html.erb
+++ b/app/views/wiki/revisions.html.erb
@@ -28,7 +28,7 @@
| <%= distance_of_time_in_words(revision.created_at, Time.current, { include_seconds: false, scope: 'datetime.time_ago_in_words' }) %>
<%= raw RDiscount.new(revision.body).to_html %>
- <%= translation('wiki.revisions.revert') %> |
+ <%= translation('wiki.revisions.revert') %> |
<% if logged_in_as(['admin', 'moderator']) %>
<% if revision.status == 1 %>
|
diff --git a/test/system/post_test.rb b/test/system/post_test.rb
index fe562e603e..e78878f178 100644
--- a/test/system/post_test.rb
+++ b/test/system/post_test.rb
@@ -148,7 +148,7 @@ def assert_page_does_not_reload(message = "page should not reload")
accept_confirm "Are you sure?" do
# revert to the previous version of wiki
- find('#row0 a[data-confirm="Are you sure?"]', text: "Revert").click()
+ find('#row0 .btn-revert').click()
end
wiki_content = find("#content p").text