Feature #41294 » Fixed-tests-for-the-partial-quoting-feature-that-randomly-fail.patch
test/system/messages_test.rb | ||
---|---|---|
23 | 23 |
fixtures :projects, :users, :roles, :members, :member_roles, |
24 | 24 |
:enabled_modules, :enumerations, |
25 | 25 |
:custom_fields, :custom_values, :custom_fields_trackers, |
26 |
:watchers, :boards, :messages |
|
26 |
:watchers, :boards, :messages, :attachments
|
|
27 | 27 | |
28 | 28 |
def test_reply_to_topic_message |
29 | 29 |
with_text_formatting 'common_mark' do |
test/unit/lib/redmine/quote_reply_helper_test.rb | ||
---|---|---|
26 | 26 |
fixtures :issues |
27 | 27 | |
28 | 28 |
def test_quote_reply |
29 |
url = quoted_issue_path(issues(:issues_001)) |
|
29 |
with_locale 'en' do |
|
30 |
url = quoted_issue_path(issues(:issues_001)) |
|
30 | 31 | |
31 |
a_tag = quote_reply(url, '#issue_description_wiki') |
|
32 |
assert_includes a_tag, %|onclick="#{h "quoteReply('/issues/1/quoted', '#issue_description_wiki', 'common_mark'); return false;"}"| |
|
33 |
assert_includes a_tag, %|class="icon icon-comment"| |
|
34 |
assert_not_includes a_tag, 'title=' |
|
32 |
a_tag = quote_reply(url, '#issue_description_wiki')
|
|
33 |
assert_includes a_tag, %|onclick="#{h "quoteReply('/issues/1/quoted', '#issue_description_wiki', 'common_mark'); return false;"}"|
|
|
34 |
assert_includes a_tag, %|class="icon icon-comment"|
|
|
35 |
assert_not_includes a_tag, 'title='
|
|
35 | 36 | |
36 |
# When icon_only is true |
|
37 |
a_tag = quote_reply(url, '#issue_description_wiki', icon_only: true) |
|
38 |
assert_includes a_tag, %|title="Quote"| |
|
37 |
# When icon_only is true |
|
38 |
a_tag = quote_reply(url, '#issue_description_wiki', icon_only: true) |
|
39 |
assert_includes a_tag, %|title="Quote"| |
|
40 |
end |
|
39 | 41 |
end |
40 | 42 |
end |
- « Previous
- 1
- …
- 15
- 16
- 17
- Next »