Avoid targetting "fa-" icon in test, prepare for FA5 in Discourse core
This commit is contained in:
parent
5beaa359b7
commit
762300ab22
|
@ -2,7 +2,7 @@
|
||||||
<div class='pull-right'>
|
<div class='pull-right'>
|
||||||
{{d-button action="edit" actionParam=channel icon="pencil" title="chat_integration.edit_channel" label="chat_integration.edit_channel"}}
|
{{d-button action="edit" actionParam=channel icon="pencil" title="chat_integration.edit_channel" label="chat_integration.edit_channel"}}
|
||||||
|
|
||||||
{{d-button action="test" actionParam=channel icon="rocket" title="chat_integration.test_channel" label="chat_integration.test_channel"}}
|
{{d-button action="test" actionParam=channel icon="rocket" title="chat_integration.test_channel" label="chat_integration.test_channel" class="btn-chat-test"}}
|
||||||
|
|
||||||
{{d-button class='cancel' action="delete" actionParam=channel icon="trash" title="chat_integration.delete_channel" label="chat_integration.delete_channel"}}
|
{{d-button class='cancel' action="delete" actionParam=channel icon="trash" title="chat_integration.delete_channel" label="chat_integration.delete_channel"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -8,6 +8,8 @@ enabled_site_setting :chat_integration_enabled
|
||||||
|
|
||||||
register_asset "stylesheets/chat-integration-admin.scss"
|
register_asset "stylesheets/chat-integration-admin.scss"
|
||||||
|
|
||||||
|
register_svg_icon "rocket" if respond_to?(:register_svg_icon)
|
||||||
|
|
||||||
# Site setting validators must be loaded before initialize
|
# Site setting validators must be loaded before initialize
|
||||||
require_relative "lib/discourse_chat/provider/slack/slack_enabled_setting_validator"
|
require_relative "lib/discourse_chat/provider/slack/slack_enabled_setting_validator"
|
||||||
|
|
||||||
|
|
|
@ -266,7 +266,7 @@ test("Test channel works", assert => {
|
||||||
visit("/admin/plugins/chat");
|
visit("/admin/plugins/chat");
|
||||||
|
|
||||||
andThen(() => {
|
andThen(() => {
|
||||||
click(".fa-rocket");
|
click(".btn-chat-test");
|
||||||
});
|
});
|
||||||
|
|
||||||
andThen(() => {
|
andThen(() => {
|
||||||
|
|
Loading…
Reference in New Issue