[MM-51233] Updates for Trial Requests (#22620)
* Add new trial form to enrich trial requests with more customer info * Update snapshots * One more addition * Fixes from PR feedback * Fix types, i18n, update e2e tests * Fix linter * Fix i18n? * Fix blank translation * update snapshot * Update snapshot properly * Remove inapplicable test * Fix business email validation only happening once * UX Feedback * Fix linter * Fix linter again, not working locally * FIX LINTER * Move isvalid check until after some fields are set * Fix for overlapping modals * Fix linter * UX feedback * UX Feedback * Fix typo in error modal * [MM-51551] Add new Trial Form to Playbooks trial requests (#22650) * Playbooks start trial entrypoints opens new trial form modal * Fix style --------- Co-authored-by: Mattermost Build <build@mattermost.com> * [MM-51347] Trial form error modal for embargoed and air gapped entities (#22656) * Playbooks start trial entrypoints opens new trial form modal * Add support for air gapped environments when making trial requests * Add specific handling for embargoed entities * undo some code * Fix linter * Fix types * Fix style * Updates because TE has to upgrade to E0 before it can activate a trial --------- Co-authored-by: Mattermost Build <build@mattermost.com> --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
@@ -72,7 +72,7 @@ describe('component/user_groups_modal/ad_ldap_upsell_banner', () => {
|
||||
);
|
||||
|
||||
expect(wrapper.find('#ad_ldap_upsell_banner')).toHaveLength(1);
|
||||
expect(wrapper.find('.ad-ldap-banner-btn').text()).toEqual('Try free for 30 days');
|
||||
expect(wrapper.find('.ad-ldap-banner-btn').text()).toEqual('Start trial');
|
||||
});
|
||||
|
||||
test('should display for admin users on professional with option to start trial if no cloud trial before', async () => {
|
||||
@@ -108,7 +108,7 @@ describe('component/user_groups_modal/ad_ldap_upsell_banner', () => {
|
||||
await actImmediate(wrapper);
|
||||
|
||||
expect(wrapper.find('#ad_ldap_upsell_banner')).toHaveLength(1);
|
||||
expect(wrapper.find('.ad-ldap-banner-btn').text()).toEqual('Try free for 30 days');
|
||||
expect(wrapper.find('.ad-ldap-banner-btn').text()).toEqual('Start trial');
|
||||
});
|
||||
|
||||
test('should display for admin users on professional with option to contact sales if self-hosted trialed before', () => {
|
||||
|
||||
@@ -93,7 +93,7 @@ function ADLDAPUpsellBanner() {
|
||||
let btn = (
|
||||
<StartTrialBtn
|
||||
btnClass='ad-ldap-banner-btn'
|
||||
message={formatMessage({id: 'adldap_upsell_banner.trial_btn', defaultMessage: 'Try free for 30 days'})}
|
||||
message={formatMessage({id: 'adldap_upsell_banner.trial_btn', defaultMessage: 'Start trial'})}
|
||||
telemetryId={'start_self-hosted_trial_from_adldap_upsell_banner'}
|
||||
renderAsButton={true}
|
||||
onClick={() => setConfirmed(true)}
|
||||
@@ -103,7 +103,7 @@ function ADLDAPUpsellBanner() {
|
||||
btn = (
|
||||
<CloudStartTrialButton
|
||||
extraClass='ad-ldap-banner-btn'
|
||||
message={formatMessage({id: 'adldap_upsell_banner.trial_btn', defaultMessage: 'Try free for 30 days'})}
|
||||
message={formatMessage({id: 'adldap_upsell_banner.trial_btn', defaultMessage: 'Start trial'})}
|
||||
telemetryId={'start_cloud_trial_from_adldap_upsell_banner'}
|
||||
onClick={() => setConfirmed(true)}
|
||||
/>
|
||||
|
||||
Ссылка в новой задаче
Block a user