Fixes more tests.

git-svn-id: https://svn.redmine.org/redmine/trunk@22991 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2024-08-30 15:50:22 +00:00
parent 6b327b8852
commit dc68230e05
4 changed files with 13 additions and 11 deletions

View File

@@ -1716,7 +1716,8 @@ class ApplicationHelperTest < Redmine::HelperTest
Regexp.new(
'<div class="contextual heading-2" title="Edit this section" id="section-4">' \
'<a class="icon-only icon-edit" href="/projects/1/wiki/Test/edit\?section=4">' \
'Edit this section' \
'<svg class="s14" aria-hidden="true"><use href="\/assets\/icons-.*.svg#icon--edit"></use></svg>' \
'<span class="icon-label">Edit this section</span>' \
'</a></div>' \
'<a name="Subtitle-with-inline-code"></a>' \
'<h2 >Subtitle with ' \
@@ -1730,7 +1731,8 @@ class ApplicationHelperTest < Redmine::HelperTest
Regexp.new(
'<div class="contextual heading-2" title="Edit this section" id="section-5">' \
'<a class="icon-only icon-edit" href="/projects/1/wiki/Test/edit\?section=5">' \
'Edit this section' \
'<svg class="s14" aria-hidden="true"><use href="\/assets\/icons-.*.svg#icon--edit"></use></svg>' \
'<span class="icon-label">Edit this section</span>' \
'</a></div>' \
'<a name="Subtitle-after-pre-tag"></a>' \
'<h2 >Subtitle after pre tag' \

View File

@@ -28,7 +28,7 @@ class WatchersHelperTest < Redmine::HelperTest
test '#watcher_link with a non-watched object' do
expected = link_to(
"Watch",
icon_with_label("fav-off", "Watch"),
"/watchers/watch?object_id=1&object_type=issue",
:remote => true, :method => 'post', :class => "issue-1-watcher icon icon-fav-off"
)
@@ -37,7 +37,7 @@ class WatchersHelperTest < Redmine::HelperTest
test '#watcher_link with a single object array' do
expected = link_to(
"Watch",
icon_with_label("fav-off","Watch"),
"/watchers/watch?object_id=1&object_type=issue",
:remote => true, :method => 'post', :class => "issue-1-watcher icon icon-fav-off"
)
@@ -46,7 +46,7 @@ class WatchersHelperTest < Redmine::HelperTest
test '#watcher_link with a multiple objects array' do
expected = link_to(
"Watch",
icon_with_label("fav-off", "Watch"),
"/watchers/watch?object_id%5B%5D=1&object_id%5B%5D=3&object_type=issue",
:remote => true, :method => 'post', :class => "issue-bulk-watcher icon icon-fav-off"
)
@@ -61,7 +61,7 @@ class WatchersHelperTest < Redmine::HelperTest
Watcher.create!(:watchable => Issue.find(1), :user => User.find(1))
expected = link_to(
"Unwatch",
icon_with_label("fav","Unwatch"),
"/watchers/watch?object_id=1&object_type=issue",
:remote => true, :method => 'delete', :class => "issue-1-watcher icon icon-fav"
)