-
@@ -443,7 +443,7 @@ exports[`components/AboutBuildModal should match snapshot for team edition 1`] =
className="about-modal__notice form-group padding-top x2"
>
-
@@ -694,7 +694,7 @@ exports[`components/AboutBuildModal should show ci if a ci build 1`] = `
className="about-modal__notice form-group padding-top x2"
>
-
@@ -933,7 +933,7 @@ exports[`components/AboutBuildModal should show dev if this is a dev build 1`] =
className="about-modal__notice form-group padding-top x2"
>
-
diff --git a/components/access_history_modal/__snapshots__/access_history_modal.test.tsx.snap b/components/access_history_modal/__snapshots__/access_history_modal.test.tsx.snap
index 7d1e9519ccb1..4dd7d0ae543b 100644
--- a/components/access_history_modal/__snapshots__/access_history_modal.test.tsx.snap
+++ b/components/access_history_modal/__snapshots__/access_history_modal.test.tsx.snap
@@ -52,7 +52,7 @@ exports[`components/AccessHistoryModal should match snapshot when audits exist 1
bsClass="modal-body"
componentClass="div"
>
-
-
}
helpText={
-
@@ -79,7 +79,7 @@ exports[`components/AdminConsole/CustomEnableDisableGuestAccountsSetting initial
/>
}
helpText={
-
diff --git a/components/admin_console/__snapshots__/elasticsearch_settings.test.jsx.snap b/components/admin_console/__snapshots__/elasticsearch_settings.test.jsx.snap
index 190597546c99..d45fbf3ac89d 100644
--- a/components/admin_console/__snapshots__/elasticsearch_settings.test.jsx.snap
+++ b/components/admin_console/__snapshots__/elasticsearch_settings.test.jsx.snap
@@ -271,7 +271,7 @@ exports[`components/ElasticSearchSettings should match snapshot, disabled 1`] =
-
@@ -165,7 +165,7 @@ exports[`components/PluginManagement should match snapshot 1`] = `
/>
}
helpText={
-
@@ -199,7 +199,7 @@ exports[`components/PluginManagement should match snapshot 1`] = `
/>
}
helpText={
-
@@ -233,7 +233,7 @@ exports[`components/PluginManagement should match snapshot 1`] = `
/>
}
helpText={
-
@@ -261,7 +261,7 @@ exports[`components/PluginManagement should match snapshot 1`] = `
disabled={false}
helpText={
-
@@ -301,6 +301,7 @@ exports[`components/PluginManagement should match snapshot 1`] = `
@@ -392,7 +393,7 @@ exports[`components/PluginManagement should match snapshot when \`Enable Plugins
/>
}
helpText={
-
@@ -469,7 +470,7 @@ exports[`components/PluginManagement should match snapshot when \`Enable Plugins
-
@@ -486,7 +487,7 @@ exports[`components/PluginManagement should match snapshot when \`Enable Plugins
/>
}
helpText={
-
@@ -520,7 +521,7 @@ exports[`components/PluginManagement should match snapshot when \`Enable Plugins
/>
}
helpText={
-
@@ -554,7 +555,7 @@ exports[`components/PluginManagement should match snapshot when \`Enable Plugins
/>
}
helpText={
-
@@ -582,7 +583,7 @@ exports[`components/PluginManagement should match snapshot when \`Enable Plugins
disabled={false}
helpText={
-
@@ -622,6 +623,7 @@ exports[`components/PluginManagement should match snapshot when \`Enable Plugins
@@ -713,7 +715,7 @@ exports[`components/PluginManagement should match snapshot when \`Enable Remote
/>
}
helpText={
-
@@ -747,7 +749,7 @@ exports[`components/PluginManagement should match snapshot when \`Enable Remote
/>
}
helpText={
-
@@ -824,7 +826,7 @@ exports[`components/PluginManagement should match snapshot when \`Enable Remote
-
@@ -841,7 +843,7 @@ exports[`components/PluginManagement should match snapshot when \`Enable Remote
/>
}
helpText={
-
@@ -875,7 +877,7 @@ exports[`components/PluginManagement should match snapshot when \`Enable Remote
/>
}
helpText={
-
@@ -909,7 +911,7 @@ exports[`components/PluginManagement should match snapshot when \`Enable Remote
/>
}
helpText={
-
@@ -937,7 +939,7 @@ exports[`components/PluginManagement should match snapshot when \`Enable Remote
disabled={true}
helpText={
-
@@ -977,6 +979,7 @@ exports[`components/PluginManagement should match snapshot when \`Enable Remote
@@ -1068,7 +1071,7 @@ exports[`components/PluginManagement should match snapshot when \`Require Signat
/>
}
helpText={
-
@@ -1102,7 +1105,7 @@ exports[`components/PluginManagement should match snapshot when \`Require Signat
/>
}
helpText={
-
@@ -1179,7 +1182,7 @@ exports[`components/PluginManagement should match snapshot when \`Require Signat
-
@@ -1196,7 +1199,7 @@ exports[`components/PluginManagement should match snapshot when \`Require Signat
/>
}
helpText={
-
@@ -1230,7 +1233,7 @@ exports[`components/PluginManagement should match snapshot when \`Require Signat
/>
}
helpText={
-
@@ -1264,7 +1267,7 @@ exports[`components/PluginManagement should match snapshot when \`Require Signat
/>
}
helpText={
-
@@ -1292,7 +1295,7 @@ exports[`components/PluginManagement should match snapshot when \`Require Signat
disabled={false}
helpText={
-
@@ -1332,6 +1335,7 @@ exports[`components/PluginManagement should match snapshot when \`Require Signat
@@ -1423,7 +1427,7 @@ exports[`components/PluginManagement should match snapshot, No installed plugins
/>
}
helpText={
-
@@ -1457,7 +1461,7 @@ exports[`components/PluginManagement should match snapshot, No installed plugins
/>
}
helpText={
-
@@ -1534,7 +1538,7 @@ exports[`components/PluginManagement should match snapshot, No installed plugins
-
@@ -1551,7 +1555,7 @@ exports[`components/PluginManagement should match snapshot, No installed plugins
/>
}
helpText={
-
@@ -1585,7 +1589,7 @@ exports[`components/PluginManagement should match snapshot, No installed plugins
/>
}
helpText={
-
@@ -1619,7 +1623,7 @@ exports[`components/PluginManagement should match snapshot, No installed plugins
/>
}
helpText={
-
@@ -1647,7 +1651,7 @@ exports[`components/PluginManagement should match snapshot, No installed plugins
disabled={false}
helpText={
-
@@ -1687,6 +1691,7 @@ exports[`components/PluginManagement should match snapshot, No installed plugins
@@ -1783,7 +1788,7 @@ exports[`components/PluginManagement should match snapshot, allow insecure URL e
/>
}
helpText={
-
@@ -1817,7 +1822,7 @@ exports[`components/PluginManagement should match snapshot, allow insecure URL e
/>
}
helpText={
-
@@ -1894,7 +1899,7 @@ exports[`components/PluginManagement should match snapshot, allow insecure URL e
-
@@ -1911,7 +1916,7 @@ exports[`components/PluginManagement should match snapshot, allow insecure URL e
/>
}
helpText={
-
@@ -1945,7 +1950,7 @@ exports[`components/PluginManagement should match snapshot, allow insecure URL e
/>
}
helpText={
-
@@ -1979,7 +1984,7 @@ exports[`components/PluginManagement should match snapshot, allow insecure URL e
/>
}
helpText={
-
@@ -2007,7 +2012,7 @@ exports[`components/PluginManagement should match snapshot, allow insecure URL e
disabled={false}
helpText={
-
@@ -2047,6 +2052,7 @@ exports[`components/PluginManagement should match snapshot, allow insecure URL e
@@ -2138,7 +2144,7 @@ exports[`components/PluginManagement should match snapshot, disabled 1`] = `
/>
}
helpText={
-
@@ -2172,7 +2178,7 @@ exports[`components/PluginManagement should match snapshot, disabled 1`] = `
/>
}
helpText={
-
@@ -2249,7 +2255,7 @@ exports[`components/PluginManagement should match snapshot, disabled 1`] = `
-
@@ -2266,7 +2272,7 @@ exports[`components/PluginManagement should match snapshot, disabled 1`] = `
/>
}
helpText={
-
@@ -2300,7 +2306,7 @@ exports[`components/PluginManagement should match snapshot, disabled 1`] = `
/>
}
helpText={
-
@@ -2334,7 +2340,7 @@ exports[`components/PluginManagement should match snapshot, disabled 1`] = `
/>
}
helpText={
-
@@ -2362,7 +2368,7 @@ exports[`components/PluginManagement should match snapshot, disabled 1`] = `
disabled={true}
helpText={
-
@@ -2466,7 +2472,7 @@ exports[`components/PluginManagement should match snapshot, text entered into th
/>
}
helpText={
-
@@ -2500,7 +2506,7 @@ exports[`components/PluginManagement should match snapshot, text entered into th
/>
}
helpText={
-
@@ -2577,7 +2583,7 @@ exports[`components/PluginManagement should match snapshot, text entered into th
-
@@ -2594,7 +2600,7 @@ exports[`components/PluginManagement should match snapshot, text entered into th
/>
}
helpText={
-
@@ -2628,7 +2634,7 @@ exports[`components/PluginManagement should match snapshot, text entered into th
/>
}
helpText={
-
@@ -2662,7 +2668,7 @@ exports[`components/PluginManagement should match snapshot, text entered into th
/>
}
helpText={
-
@@ -2690,7 +2696,7 @@ exports[`components/PluginManagement should match snapshot, text entered into th
disabled={false}
helpText={
-
@@ -2730,6 +2736,7 @@ exports[`components/PluginManagement should match snapshot, text entered into th
@@ -2821,7 +2828,7 @@ exports[`components/PluginManagement should match snapshot, upload disabled 1`]
/>
}
helpText={
-
@@ -2855,7 +2862,7 @@ exports[`components/PluginManagement should match snapshot, upload disabled 1`]
/>
}
helpText={
-
@@ -2932,7 +2939,7 @@ exports[`components/PluginManagement should match snapshot, upload disabled 1`]
-
@@ -2949,7 +2956,7 @@ exports[`components/PluginManagement should match snapshot, upload disabled 1`]
/>
}
helpText={
-
@@ -2983,7 +2990,7 @@ exports[`components/PluginManagement should match snapshot, upload disabled 1`]
/>
}
helpText={
-
@@ -3017,7 +3024,7 @@ exports[`components/PluginManagement should match snapshot, upload disabled 1`]
/>
}
helpText={
-
@@ -3045,7 +3052,7 @@ exports[`components/PluginManagement should match snapshot, upload disabled 1`]
disabled={false}
helpText={
-
@@ -3085,6 +3092,7 @@ exports[`components/PluginManagement should match snapshot, upload disabled 1`]
@@ -3176,7 +3184,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -3210,7 +3218,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -3287,7 +3295,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
-
@@ -3304,7 +3312,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -3338,7 +3346,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -3372,7 +3380,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -3400,7 +3408,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
disabled={false}
helpText={
-
@@ -3440,6 +3448,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
@@ -3592,7 +3601,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -3626,7 +3635,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -3703,7 +3712,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
-
@@ -3720,7 +3729,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -3754,7 +3763,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -3788,7 +3797,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -3816,7 +3825,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
disabled={false}
helpText={
-
@@ -3856,6 +3865,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
@@ -3977,7 +3987,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -4011,7 +4021,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -4088,7 +4098,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
-
@@ -4105,7 +4115,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -4139,7 +4149,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -4173,7 +4183,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -4201,7 +4211,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
disabled={false}
helpText={
-
@@ -4241,6 +4251,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
@@ -4362,7 +4373,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -4396,7 +4407,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -4473,7 +4484,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
-
@@ -4490,7 +4501,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -4524,7 +4535,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -4558,7 +4569,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -4586,7 +4597,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
disabled={false}
helpText={
-
@@ -4626,6 +4637,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
@@ -4747,7 +4759,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -4781,7 +4793,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -4858,7 +4870,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
-
@@ -4875,7 +4887,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -4909,7 +4921,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -4943,7 +4955,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
/>
}
helpText={
-
@@ -4971,7 +4983,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
disabled={false}
helpText={
-
-
-
-
-
-
-
test
-
diff --git a/components/admin_console/team_channel_settings/team/details/__snapshots__/team_profile.test.jsx.snap b/components/admin_console/team_channel_settings/team/details/__snapshots__/team_profile.test.jsx.snap
index 93ef2aec51df..a08a77bfe21c 100644
--- a/components/admin_console/team_channel_settings/team/details/__snapshots__/team_profile.test.jsx.snap
+++ b/components/admin_console/team_channel_settings/team/details/__snapshots__/team_profile.test.jsx.snap
@@ -33,7 +33,7 @@ exports[`admin_console/team_channel_settings/team/TeamProfile should match snaps
-
@@ -43,7 +43,7 @@ exports[`admin_console/team_channel_settings/team/TeamProfile should match snaps
-
diff --git a/components/announcement_bar/__snapshots__/announcement_bar.test.jsx.snap b/components/announcement_bar/__snapshots__/announcement_bar.test.jsx.snap
index 143e5c77eee6..1e6e6d54da5a 100644
--- a/components/announcement_bar/__snapshots__/announcement_bar.test.jsx.snap
+++ b/components/announcement_bar/__snapshots__/announcement_bar.test.jsx.snap
@@ -14,7 +14,7 @@ exports[`components/AnnouncementBar should match snapshot, bar not showing 1`] =
id="announcement-bar__tooltip"
placement="right"
>
-
@@ -28,7 +28,7 @@ exports[`components/AnnouncementBar should match snapshot, bar not showing 1`] =
}
>
-
@@ -50,7 +50,7 @@ exports[`components/AnnouncementBar should match snapshot, bar showing 1`] = `
id="announcement-bar__tooltip"
placement="right"
>
-
@@ -64,7 +64,7 @@ exports[`components/AnnouncementBar should match snapshot, bar showing 1`] = `
}
>
-
@@ -86,7 +86,7 @@ exports[`components/AnnouncementBar should match snapshot, bar showing, no dismi
id="announcement-bar__tooltip"
placement="right"
>
-
@@ -100,7 +100,7 @@ exports[`components/AnnouncementBar should match snapshot, bar showing, no dismi
}
>
-
@@ -122,7 +122,7 @@ exports[`components/AnnouncementBar should match snapshot, dismissal 1`] = `
id="announcement-bar__tooltip"
placement="right"
>
-
@@ -136,7 +136,7 @@ exports[`components/AnnouncementBar should match snapshot, dismissal 1`] = `
}
>
-
@@ -158,7 +158,7 @@ exports[`components/AnnouncementBar should match snapshot, dismissal 2`] = `
id="announcement-bar__tooltip"
placement="right"
>
-
@@ -172,7 +172,7 @@ exports[`components/AnnouncementBar should match snapshot, dismissal 2`] = `
}
>
-
@@ -194,7 +194,7 @@ exports[`components/AnnouncementBar should match snapshot, dismissal 3`] = `
id="announcement-bar__tooltip"
placement="right"
>
-
@@ -208,7 +208,7 @@ exports[`components/AnnouncementBar should match snapshot, dismissal 3`] = `
}
>
-
@@ -230,7 +230,7 @@ exports[`components/AnnouncementBar should match snapshot, props change 1`] = `
id="announcement-bar__tooltip"
placement="right"
>
-
@@ -244,7 +244,7 @@ exports[`components/AnnouncementBar should match snapshot, props change 1`] = `
}
>
-
@@ -266,7 +266,7 @@ exports[`components/AnnouncementBar should match snapshot, props change 2`] = `
id="announcement-bar__tooltip"
placement="right"
>
-
@@ -280,7 +280,7 @@ exports[`components/AnnouncementBar should match snapshot, props change 2`] = `
}
>
-
@@ -302,7 +302,7 @@ exports[`components/AnnouncementBar should match snapshot, props change 3`] = `
id="announcement-bar__tooltip"
placement="right"
>
-
@@ -316,7 +316,7 @@ exports[`components/AnnouncementBar should match snapshot, props change 3`] = `
}
>
-
@@ -338,7 +338,7 @@ exports[`components/AnnouncementBar should match snapshot, props change 4`] = `
id="announcement-bar__tooltip"
placement="right"
>
-
@@ -352,7 +352,7 @@ exports[`components/AnnouncementBar should match snapshot, props change 4`] = `
}
>
-
diff --git a/components/at_mention/__snapshots__/at_mention.test.jsx.snap b/components/at_mention/__snapshots__/at_mention.test.jsx.snap
index e11a3caf99b5..dd24175f7a14 100644
--- a/components/at_mention/__snapshots__/at_mention.test.jsx.snap
+++ b/components/at_mention/__snapshots__/at_mention.test.jsx.snap
@@ -21,7 +21,7 @@ exports[`components/AtMention should match snapshot when mentioning current user
rootClose={true}
show={false}
>
-
-
-
-
-
-
-
-
+ }
+ placement="bottom"
+ rootClose={true}
+ trigger="click"
>
-
-
-
-
-
-
-
-
+
+
+
+
+
+
`;
@@ -144,33 +160,6 @@ exports[`components/ChannelHeaderMobile/ChannelInfoButton should match snapshot,
"id": "channel_id",
}
}
- intl={
- Object {
- "defaultFormats": Object {},
- "defaultLocale": "en",
- "formatDate": [Function],
- "formatHTMLMessage": [Function],
- "formatMessage": [Function],
- "formatNumber": [Function],
- "formatPlural": [Function],
- "formatRelative": [Function],
- "formatTime": [Function],
- "formats": Object {},
- "formatters": Object {
- "getDateTimeFormat": [Function],
- "getMessageFormat": [Function],
- "getNumberFormat": [Function],
- "getPluralFormat": [Function],
- "getRelativeFormat": [Function],
- },
- "locale": "en",
- "messages": Object {},
- "now": [Function],
- "onError": [Function],
- "textComponent": "span",
- "timeZone": "Etc/UTC",
- }
- }
isReadOnly={false}
>
-
+ }
+ placement="bottom"
+ rootClose={true}
+ trigger="click"
>
-
-
-
-
-
-
-
-
+
+
+
+
+
+
`;
diff --git a/components/channel_header_mobile/channel_info_button/channel_info_button.test.js b/components/channel_header_mobile/channel_info_button/channel_info_button.test.js
index 31096a06462e..03228ca750b8 100644
--- a/components/channel_header_mobile/channel_info_button/channel_info_button.test.js
+++ b/components/channel_header_mobile/channel_info_button/channel_info_button.test.js
@@ -2,7 +2,8 @@
// See LICENSE.txt for license information.
import React from 'react';
-import {OverlayTrigger} from 'react-bootstrap';
+
+import OverlayTrigger from 'components/overlay_trigger';
import {mountWithIntl} from 'tests/helpers/intl-test-helper';
diff --git a/components/channel_selector_modal/__snapshots__/channel_selector_modal.test.jsx.snap b/components/channel_selector_modal/__snapshots__/channel_selector_modal.test.jsx.snap
index 69fb34038a3c..05fb20bfcde1 100644
--- a/components/channel_selector_modal/__snapshots__/channel_selector_modal.test.jsx.snap
+++ b/components/channel_selector_modal/__snapshots__/channel_selector_modal.test.jsx.snap
@@ -40,7 +40,7 @@ exports[`components/ChannelSelectorModal should match snapshot 1`] = `
componentClass="h1"
id="channelSelectorModalLabel"
>
-
diff --git a/components/common/comment_icon.tsx b/components/common/comment_icon.tsx
index 875dddc2cc93..eead954a9c53 100644
--- a/components/common/comment_icon.tsx
+++ b/components/common/comment_icon.tsx
@@ -55,7 +55,6 @@ export default class CommentIcon extends React.PureComponent {
return (
-
-
-
-
-
-
-
@@ -235,7 +235,7 @@ exports[`components/create_post should match snapshot for center textbox 1`] = `
-
-
-
-
-
@@ -44,7 +44,7 @@ exports[`components/integrations/ConfirmIntegration should match snapshot, comma
-
-
@@ -121,7 +121,7 @@ exports[`components/integrations/ConfirmIntegration should match snapshot, incom
-
-
@@ -200,7 +200,7 @@ exports[`components/integrations/ConfirmIntegration should match snapshot, oauth
-
-
-
-
@@ -316,7 +316,7 @@ exports[`components/integrations/ConfirmIntegration should match snapshot, outgo
-
-
-
-
-
-
-
}
emptyTextSearch={
-
diff --git a/components/integrations/installed_outgoing_webhooks/__snapshots__/installed_outgoing_webhooks.test.jsx.snap b/components/integrations/installed_outgoing_webhooks/__snapshots__/installed_outgoing_webhooks.test.jsx.snap
index a3834d6db53b..1cb02812e57c 100644
--- a/components/integrations/installed_outgoing_webhooks/__snapshots__/installed_outgoing_webhooks.test.jsx.snap
+++ b/components/integrations/installed_outgoing_webhooks/__snapshots__/installed_outgoing_webhooks.test.jsx.snap
@@ -126,7 +126,7 @@ exports[`components/integrations/InstalledOutgoingWebhooks should match snapshot
/>
}
emptyTextSearch={
-
diff --git a/components/intl_provider/intl_provider.jsx b/components/intl_provider/intl_provider.jsx
index 8c4e909f9163..7252297f17db 100644
--- a/components/intl_provider/intl_provider.jsx
+++ b/components/intl_provider/intl_provider.jsx
@@ -68,6 +68,7 @@ export default class IntlProvider extends React.PureComponent {
key={this.props.locale}
locale={this.props.locale}
messages={this.props.translations}
+ textComponent='span'
>
{this.props.children}
diff --git a/components/invitation_modal/__snapshots__/invitation_modal.test.jsx.snap b/components/invitation_modal/__snapshots__/invitation_modal.test.jsx.snap
index 802f8fc97f17..b70e37d91979 100644
--- a/components/invitation_modal/__snapshots__/invitation_modal.test.jsx.snap
+++ b/components/invitation_modal/__snapshots__/invitation_modal.test.jsx.snap
@@ -2,7 +2,7 @@
exports[`components/invitation_modal/InvitationModal should match the snapshot 1`] = `
-
-
+
`;
exports[`components/invitation_modal/InvitationModal should match the snapshot when I have no permission to add users 1`] = `
-
-
+
`;
exports[`components/invitation_modal/InvitationModal should match the snapshot when I have no permission to invite guests 1`] = `
-
}
/>
-
-
+
`;
exports[`components/invitation_modal/InvitationModal should match the snapshot when not show 1`] = `
-
-
+
`;
diff --git a/components/invitation_modal/__snapshots__/invitation_modal_confirm_step.test.jsx.snap b/components/invitation_modal/__snapshots__/invitation_modal_confirm_step.test.jsx.snap
index b994844abd16..b4e3cc6bed44 100644
--- a/components/invitation_modal/__snapshots__/invitation_modal_confirm_step.test.jsx.snap
+++ b/components/invitation_modal/__snapshots__/invitation_modal_confirm_step.test.jsx.snap
@@ -12,7 +12,7 @@ exports[`components/invitation_modal/InvitationModalConfirmStep should match the
-
-
-
-
-
-
-
-
@@ -332,7 +332,7 @@ exports[`components/invitation_modal/InvitationModalConfirmStep should match the
-
-
-
-
-
@@ -67,7 +67,7 @@ exports[`components/invitation_modal/InvitationModalInitialStep should match the
-
diff --git a/components/invitation_modal/__snapshots__/invitation_modal_members_step.test.jsx.snap b/components/invitation_modal/__snapshots__/invitation_modal_members_step.test.jsx.snap
index eca31d67d471..de9b3c3f36e9 100644
--- a/components/invitation_modal/__snapshots__/invitation_modal_members_step.test.jsx.snap
+++ b/components/invitation_modal/__snapshots__/invitation_modal_members_step.test.jsx.snap
@@ -12,7 +12,7 @@ exports[`components/invitation_modal/InvitationModalMembersStep should match the
-
-
diff --git a/components/overlay_trigger.test.tsx b/components/overlay_trigger.test.tsx
new file mode 100644
index 000000000000..08b7d683b656
--- /dev/null
+++ b/components/overlay_trigger.test.tsx
@@ -0,0 +1,71 @@
+// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
+// See LICENSE.txt for license information.
+
+import {mount} from 'enzyme';
+import React from 'react';
+import {OverlayTrigger as BaseOverlayTrigger} from 'react-bootstrap';
+import {FormattedMessage, IntlProvider} from 'react-intl';
+
+import OverlayTrigger from './overlay_trigger';
+
+describe('OverlayTrigger', () => {
+ const testId = 'test.value';
+
+ const intlProviderProps = {
+ defaultLocale: 'en',
+ locale: 'en',
+ messages: {
+ [testId]: 'Actual value',
+ },
+ };
+ const testOverlay = (
+
+ );
+
+ // Intercept console error messages since we intentionally cause some as part of these tests
+ let originalConsoleError: () => void;
+
+ beforeEach(() => {
+ originalConsoleError = console.error;
+ console.error = jest.fn();
+ });
+
+ afterEach(() => {
+ console.error = originalConsoleError;
+ });
+
+ test('base OverlayTrigger should fail to pass intl to overlay', () => {
+ const wrapper = mount(
+
+
+
+
+
+ );
+
+ const overlay = mount(wrapper.find(BaseOverlayTrigger).prop('overlay'));
+
+ expect(overlay.text()).toBe('Default value');
+
+ // console.error will have been called by FormattedMessage because its intl context is missing
+ expect(console.error).toHaveBeenCalled();
+ });
+
+ test('custom OverlayTrigger should fail to pass intl to overlay', () => {
+ const wrapper = mount(
+
+
+
+
+
+ );
+
+ const overlay = mount(wrapper.find(BaseOverlayTrigger).prop('overlay'));
+
+ expect(overlay.text()).toBe('Actual value');
+ expect(console.error).not.toHaveBeenCalled();
+ });
+});
diff --git a/components/overlay_trigger.tsx b/components/overlay_trigger.tsx
index cbd531580197..5e4af38fca2b 100644
--- a/components/overlay_trigger.tsx
+++ b/components/overlay_trigger.tsx
@@ -1,9 +1,38 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
-// This dummy component will be replaced by a functional one when react-intl is upgrade. For now, it just exists
-// to reduce the size of eventual diff of that upgrade.
+import React from 'react';
+import {OverlayTrigger as BaseOverlayTrigger, OverlayTriggerProps} from 'react-bootstrap';
+import {IntlContext, IntlShape} from 'react-intl';
-import {OverlayTrigger as BaseOverlayTrigger} from 'react-bootstrap';
+type Props = OverlayTriggerProps;
-export default BaseOverlayTrigger;
+export default class OverlayTrigger extends React.PureComponent {
+ static defaultProps = {
+ defaultOverlayShown: false,
+ trigger: ['hover', 'focus']
+ }
+
+ render() {
+ const {overlay, ...props} = this.props;
+
+ // The overlay is rendered outside of the regular React context, and our version react-bootstrap can't forward
+ // that context itself, so we have to manually forward the react-intl context to this component's child.
+ const OverlayWrapper = ({intl, ...otherProps}: {intl: IntlShape}) => (
+
+ {React.cloneElement(overlay, otherProps)}
+
+ );
+
+ return (
+
+ {(intl): React.ReactNode => (
+ }
+ />
+ )}
+
+ );
+ }
+}
diff --git a/components/permalink_view/__snapshots__/permalink_view.test.jsx.snap b/components/permalink_view/__snapshots__/permalink_view.test.jsx.snap
index 08e18dad8a73..f86f67be9c48 100644
--- a/components/permalink_view/__snapshots__/permalink_view.test.jsx.snap
+++ b/components/permalink_view/__snapshots__/permalink_view.test.jsx.snap
@@ -5,7 +5,7 @@ exports[`components/PermalinkView should match snapshot 1`] = `
className="app__content"
id="app-content"
>
-
-
-
diff --git a/components/plugin_marketplace/__snapshots__/marketplace_modal.test.js.snap b/components/plugin_marketplace/__snapshots__/marketplace_modal.test.js.snap
index 73896ba07563..618bbbdf50ea 100644
--- a/components/plugin_marketplace/__snapshots__/marketplace_modal.test.js.snap
+++ b/components/plugin_marketplace/__snapshots__/marketplace_modal.test.js.snap
@@ -161,7 +161,7 @@ exports[`components/marketplace/ InstalledPlugins should render with one plugin
exports[`components/marketplace/ MarketplaceModal should render with error banner 1`] = `
-
-
-
+
`;
exports[`components/marketplace/ MarketplaceModal should render with no plugins installed 1`] = `
-
-
+
`;
exports[`components/marketplace/ MarketplaceModal should render with plugins installed 1`] = `
-
-
+
`;
diff --git a/components/plugin_marketplace/marketplace_item/__snapshots__/marketplace_item.test.js.snap b/components/plugin_marketplace/marketplace_item/__snapshots__/marketplace_item.test.js.snap
index 16951d5d91b9..2f4444413c6b 100644
--- a/components/plugin_marketplace/marketplace_item/__snapshots__/marketplace_item.test.js.snap
+++ b/components/plugin_marketplace/marketplace_item/__snapshots__/marketplace_item.test.js.snap
@@ -860,6 +860,7 @@ exports[`components/MarketplaceItem UpdateConfirmationModal should add extra war
release notes to learn about the changes included in this update."
id="marketplace_modal.list.update_confirmation.message.current_with_release_notes"
+ tagName="span"
values={
Object {
"installedVersion": "0.0.1",
@@ -874,6 +875,7 @@ exports[`components/MarketplaceItem UpdateConfirmationModal should add extra war
release notes before upgrading."
id="marketplace_modal.list.update_confirmation.message.warning_major_version_with_release_notes"
+ tagName="span"
values={
Object {
"releaseNotesUrl": "http://example.com/release",
@@ -1013,33 +1015,6 @@ exports[`components/MarketplaceItem UpdateConfirmationModal should render withou
exports[`components/MarketplaceItem UpdateDetails should render with release notes url 1`] = `
-
@@ -44,7 +17,7 @@ exports[`components/post_view/DateSeparator should render date with timezone ena
-
Sat, Jan 13, 2018
-
+
@@ -99,33 +76,6 @@ exports[`components/post_view/DateSeparator should render date with timezone ena
exports[`components/post_view/DateSeparator should render date without timezone 1`] = `
-
Fri, Jan 12, 2018
-
+
@@ -192,33 +146,6 @@ exports[`components/post_view/DateSeparator should render date without timezone
@@ -232,7 +159,7 @@ exports[`components/post_view/DateSeparator should render date without timezone
-
Fri, Jan 12, 2018
-
+
diff --git a/components/post_view/post_list/__snapshots__/post_list.test.jsx.snap b/components/post_view/post_list/__snapshots__/post_list.test.jsx.snap
index 09fcdcab116e..8c9fb1c60a6c 100644
--- a/components/post_view/post_list/__snapshots__/post_list.test.jsx.snap
+++ b/components/post_view/post_list/__snapshots__/post_list.test.jsx.snap
@@ -12,7 +12,7 @@ exports[`components/post_view/post_list snapshot for loading when there are no p
className="post-list__content"
id="virtualizedPostListContent"
>
-
- `;
exports[`components/post_view/post_list_row should render combined post 1`] = `
-
-
Add to a Channel
-
+