[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>
Этот коммит содержится в:
Nick Misasi
2023-03-30 14:57:07 -04:00
коммит произвёл GitHub
родитель e09d5690a7
Коммит 957f999266
51 изменённых файлов: 2575 добавлений и 970 удалений

Просмотреть файл

@@ -334,7 +334,7 @@ describe('Pricing modal', () => {
// * Check that enterprise card action button shows Try free for 30 days
cy.get('#pricingModal').should('be.visible');
cy.get('#start_cloud_trial_btn').contains('Try free for 30 days');
cy.get('#start_cloud_trial_btn').contains('Start trial');
});
it('should open pricing modal when Upgrade button clicked while in enterprise trial sku', () => {
@@ -365,7 +365,7 @@ describe('Pricing modal', () => {
// * Check that enterprise card action button is disabled
cy.get('#enterprise > .bottom > .bottom_container').should('be.visible');
cy.get('#start_cloud_trial_btn').contains('Try free for 30 days');
cy.get('#start_cloud_trial_btn').contains('Start trial');
cy.get('#enterprise > .bottom > .bottom_container').should('be.visible');
cy.get('#start_cloud_trial_btn').should('be.disabled');
});

Просмотреть файл

@@ -102,7 +102,7 @@ describe('Self hosted Pricing modal', () => {
// * Check that enteprise trial button is available
cy.get('#pricingModal').should('be.visible');
cy.get('#enterprise').should('be.visible');
cy.get('#start_trial_btn').should('not.be.disabled').contains('Try free for 30 days');
cy.get('#start_trial_btn').should('not.be.disabled').contains('Start trial');
});
it('Upgrade button should open pricing modal admin users when the server has requested a trial before on free plan', () => {

Просмотреть файл

@@ -53,7 +53,7 @@ describe('Feature discovery cloud', () => {
const testForTrialButton = () => {
cy.get('#start_cloud_trial_btn').should('exist');
cy.get('#start_cloud_trial_btn').contains('Try free for 30 days');
cy.get('#start_cloud_trial_btn').contains('Start trial');
};
const testForUpgradeToProfessionalOption = () => {