Defect #44703 ยป fix-tests-for-nokogiri-1_19_5.patch
| test/functional/issues_controller_test.rb | ||
|---|---|---|
| 2352 | 2352 |
assert_select 'div.attachments a.icon-attachment[href=?]', '/attachments/4' |
| 2353 | 2353 |
assert_select 'div.attachments span.attachment-journal a', 1 |
| 2354 | 2354 |
assert_select 'div.attachments span.attachment-journal a[href=?][title=?]', '#note-1', '#note-1' do |
| 2355 |
assert_select "svg.icon-svg use:match('href', ?)", /assets\/icons-\w+.svg#icon--chevrons-down/
|
|
| 2355 |
assert_select "svg.icon-svg use:match('href', ?)", %r{assets/icons-[0-9a-f]+.svg#icon--chevrons-down}
|
|
| 2356 | 2356 |
end |
| 2357 | 2357 |
end |
| 2358 | 2358 | |
| ... | ... | |
| 2379 | 2379 |
assert_response :success |
| 2380 | 2380 |
assert_select 'div.attachments' do |
| 2381 | 2381 |
assert_select 'a.icon-attachment[href=?]', '/attachments/1' do |
| 2382 |
assert_select "svg.icon-svg use:match('href', ?)", /assets\/icons-\w+.svg#icon--text-plain/
|
|
| 2382 |
assert_select "svg.icon-svg use:match('href', ?)", %r{assets/icons-[0-9a-f]+.svg#icon--text-plain}
|
|
| 2383 | 2383 |
end |
| 2384 | 2384 |
assert_select 'a.icon-attachment[href=?]', '/attachments/6' do |
| 2385 |
assert_select "svg.icon-svg use:match('href', ?)", /assets\/icons-\w+.svg#icon--application-zip/
|
|
| 2385 |
assert_select "svg.icon-svg use:match('href', ?)", %r{assets/icons-[0-9a-f]+.svg#icon--application-zip}
|
|
| 2386 | 2386 |
end |
| 2387 | 2387 |
end |
| 2388 | 2388 |
end |
| ... | ... | |
| 6462 | 6462 |
assert_response :success |
| 6463 | 6463 |
reason = l(:notice_issue_not_closable_by_blocking_issue) |
| 6464 | 6464 |
assert_select 'span.icon-warning[title=?]', reason do |
| 6465 |
assert_select "svg.icon-svg use:match('href', ?)", /assets\/icons-\w+.svg#icon--warning/
|
|
| 6465 |
assert_select "svg.icon-svg use:match('href', ?)", %r{assets/icons-[0-9a-f]+.svg#icon--warning}
|
|
| 6466 | 6466 |
assert_select 'span.icon-label', test: reason |
| 6467 | 6467 |
end |
| 6468 | 6468 |
end |
| test/integration/layout_test.rb | ||
|---|---|---|
| 58 | 58 | |
| 59 | 59 |
get '/projects/ecookbook/issues/new' |
| 60 | 60 |
assert_select "head script:match('src',?)", %r{/assets/jstoolbar/}, 0
|
| 61 |
assert_select "head link[rel=stylesheet]:match('href',?)", %r{/assets/jstoolbar-\w+.css}
|
|
| 61 |
assert_select "head link[rel=stylesheet]:match('href',?)", %r{/assets/jstoolbar-[0-9a-f]+.css}
|
|
| 62 | 62 |
assert_include "var wikiImageMimeTypes = #{Redmine::MimeType.by_type('image').to_json};", response.body
|
| 63 | 63 |
assert_select 'div.jstBlock:has(textarea#issue_description)' do |
| 64 | 64 |
UserPreference::DEFAULT_TOOLBAR_LANGUAGE_OPTIONS.each do |lang| |
| test/integration/lib/redmine/themes_test.rb | ||
|---|---|---|
| 34 | 34 |
get '/' |
| 35 | 35 | |
| 36 | 36 |
assert_response :success |
| 37 |
assert_select "link[rel=stylesheet]:match('href', ?)", %r{/assets/themes/#{@theme.dir}/application-\w+\.css}
|
|
| 37 |
assert_select "link[rel=stylesheet]:match('href', ?)", %r{/assets/themes/#{@theme.dir}/application-[0-9a-f]+.css}
|
|
| 38 | 38 |
end |
| 39 | 39 | |
| 40 | 40 |
def test_without_theme_js |
| ... | ... | |
| 62 | 62 |
get '/' |
| 63 | 63 | |
| 64 | 64 |
assert_response :success |
| 65 |
assert_select "link[rel='shortcut icon']:match('href',?)", %r{/assets/favicon-\w+\.ico}
|
|
| 65 |
assert_select "link[rel='shortcut icon']:match('href',?)", %r{/assets/favicon-[0-9a-f]+.ico}
|
|
| 66 | 66 |
end |
| 67 | 67 | |
| 68 | 68 |
def test_use_theme_favicon_if_theme_provides_one |
| ... | ... | |
| 108 | 108 |
get '/' |
| 109 | 109 | |
| 110 | 110 |
assert_response :success |
| 111 |
assert_select "link[rel=stylesheet]:match('href', ?)", %r{/foo/assets/themes/#{@theme.dir}/application-\w+\.css}
|
|
| 111 |
assert_select "link[rel=stylesheet]:match('href', ?)", %r{/foo/assets/themes/#{@theme.dir}/application-[0-9a-f]+.css}
|
|
| 112 | 112 |
assert_select "script[src^=?]", "/foo/assets/themes/#{@theme.dir}/theme.js"
|
| 113 | 113 |
assert_select 'link[rel="shortcut icon"][href^=?]', "/foo/assets/themes/#{@theme.dir}/a.ico"
|
| 114 | 114 |
ensure |