From 76accff06136fe38497ab843476134bb00855f34 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Mon, 6 Nov 2017 12:09:19 +0100 Subject: [PATCH] SONAR-9937 Add TOS checkbox when installing an edition in the marketplace --- .../components/LicenseEditionForm.tsx | 7 +- .../components/LicenseEditionSet.tsx | 124 +++++++++++------- .../__tests__/LicenseEditionForm-test.tsx | 25 +++- .../__tests__/LicenseEditionSet-test.tsx | 36 ++++- .../LicenseEditionForm-test.tsx.snap | 30 ----- .../LicenseEditionSet-test.tsx.snap | 25 ++-- 6 files changed, 143 insertions(+), 104 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/marketplace/components/LicenseEditionForm.tsx b/server/sonar-web/src/main/js/apps/marketplace/components/LicenseEditionForm.tsx index abab7c84ed4..778c63fb457 100644 --- a/server/sonar-web/src/main/js/apps/marketplace/components/LicenseEditionForm.tsx +++ b/server/sonar-web/src/main/js/apps/marketplace/components/LicenseEditionForm.tsx @@ -81,7 +81,7 @@ export default class LicenseEditionForm extends React.PureComponent {submitting && } {status && ( - -`; - -exports[`should correctly change the button based on the status 2`] = ` - -`; - -exports[`should correctly change the button based on the status 3`] = ` - -`; - exports[`should display correctly 1`] = ` marketplace.license_preview_status.NO_INSTALL.Foo

@@ -10,7 +10,7 @@ exports[`should correctly display status message after checking license 1`] = ` exports[`should correctly display status message after checking license 2`] = `

marketplace.license_preview_status.AUTOMATIC_INSTALL.Foo

@@ -18,7 +18,7 @@ exports[`should correctly display status message after checking license 2`] = ` exports[`should correctly display status message after checking license 3`] = `

marketplace.license_preview_status.MANUAL_INSTALL.Foo

@@ -52,7 +52,6 @@ exports[`should display correctly 1`] = ` value="" /> - - marketplace.i_need_a_license - + + `; -- 2.39.5