import { addDays, subDays } from 'date-fns';
import { byRole, byText } from '~sonar-aligned/helpers/testSelector';
import SystemServiceMock from '../../../api/mocks/SystemServiceMock';
+import { getEdition } from '../../../helpers/editions';
import { mockAppState } from '../../../helpers/testMocks';
import { renderComponent } from '../../../helpers/testReactTestingUtils';
import { AppState } from '../../../types/appstate';
const systemMock = new SystemServiceMock();
+const COMMUNITY = getEdition(EditionKey.community).name;
+
afterEach(() => {
systemMock.reset();
});
expect(ui.footerListItems.getAll()).toHaveLength(7);
- expect(byText('Community Edition').get()).toBeInTheDocument();
+ expect(byText(COMMUNITY).get()).toBeInTheDocument();
expect(await ui.versionLabel('4.2').find()).toBeInTheDocument();
expect(ui.ltaDocumentationLinkActive.query()).not.toBeInTheDocument();
expect(ui.apiLink.get()).toBeInTheDocument();
expect(ui.footerListItems.getAll()).toHaveLength(5);
- expect(byText('Community Edition').query()).not.toBeInTheDocument();
+ expect(byText(COMMUNITY).query()).not.toBeInTheDocument();
expect(ui.versionLabel().query()).not.toBeInTheDocument();
});
expect(ui.footerListItems.getAll()).toHaveLength(4);
- expect(byText('Community Edition').query()).not.toBeInTheDocument();
+ expect(byText(COMMUNITY).query()).not.toBeInTheDocument();
expect(ui.versionLabel().query()).not.toBeInTheDocument();
expect(ui.apiLink.query()).not.toBeInTheDocument();
});
import userEvent from '@testing-library/user-event';
import { byRole, byText } from '~sonar-aligned/helpers/testSelector';
import { showLicense } from '../../../api/editions';
+import { getEdition } from '../../../helpers/editions';
import { save } from '../../../helpers/storage';
import { mockAppState, mockCurrentUser } from '../../../helpers/testMocks';
import { renderApp } from '../../../helpers/testReactTestingUtils';
it.each([
[
- 'community edition',
+ getEdition(EditionKey.community).name,
{ appState: mockAppState({ canAdmin: true, edition: EditionKey.community }) },
],
['Cannot admin', { appState: mockAppState({ canAdmin: false, edition: EditionKey.enterprise }) }],
/*
* standalone mode is true when cluster mode is not active. We preserve this
- * condition if it ever becomes possible to have a community edition NOT in standalone mode.
+ * condition if it ever becomes possible to have a community build NOT in standalone mode.
*/
const allowActions =
currentEdition === EditionKey.community &&
<p className="sw-mt-4">
<em>Built for Developers by Developers</em>
</p>
- <p className="sw-mt-4">Community Edition functionality plus:</p>
+ <p className="sw-mt-4">Community Build functionality plus:</p>
<UnorderedList className="sw-ml-8" ticks>
<li>
<span>PR / MR decoration & Quality Gate</span>
import AlmSettingsServiceMock from '../../../../../api/mocks/AlmSettingsServiceMock';
import SettingsServiceMock from '../../../../../api/mocks/SettingsServiceMock';
import { AvailableFeaturesContext } from '../../../../../app/components/available-features/AvailableFeaturesContext';
+import { getEdition } from '../../../../../helpers/editions';
import { renderComponent } from '../../../../../helpers/testReactTestingUtils';
import { AlmKeys } from '../../../../../types/alm-settings';
+import { EditionKey } from '../../../../../types/editions';
import { Feature } from '../../../../../types/features';
import { SettingsKey } from '../../../../../types/settings';
import AlmIntegration from '../AlmIntegration';
expect(ui.serverBaseUrlMissingInformation.query()).not.toBeInTheDocument();
});
-it('should not display the serverBaseURL message for Community edition', async () => {
+it(`should not display the serverBaseURL message for ${getEdition(EditionKey.community).name}`, async () => {
const { ui } = getPageObjects();
renderAlmIntegration();
expect(await ui.almHeading.find()).toBeInTheDocument();
*/
import { byRole, byText } from '~sonar-aligned/helpers/testSelector';
+import { getEdition } from '../../../../helpers/editions';
import { mockAppState } from '../../../../helpers/testMocks';
import { renderApp } from '../../../../helpers/testReactTestingUtils';
import { EditionKey } from '../../../../types/editions';
nextStepLinks: byRole('link'),
};
-describe('Community Edition', () => {
+describe(`${getEdition(EditionKey.community).name}`, () => {
it('should inform the user about available next steps', async () => {
renderDoneNextSteps();
const EDITIONS: { [x in EditionKey]: Edition } = {
community: {
key: EditionKey.community,
- name: 'Community Edition',
+ name: 'Community Build',
homeUrl: 'https://www.sonarsource.com/open-source-editions/',
downloadProperty: 'downloadUrl',
},
Plugins are not provided by SonarSource and are therefore installed at your own risk. SonarSource disclaims all liability for installing and using such plugins.
-COMMUNITY EDITION
+COMMUNITY BUILD
Administrators can either:
marketplace.page=Marketplace
marketplace.page.description=Discover the additional benefits offered in SonarQube Server Commercial Editions
marketplace.page.description_best_edition=This edition includes access to all the SonarQube Server-SonarQube for IDE Ecosystem features!
-marketplace.page.you_are_running.community=You are currently running a Community Edition.
+marketplace.page.you_are_running.community=You are currently running a Community Build.
marketplace.page.you_are_running.developer=You are currently running a Developer Edition.
marketplace.page.you_are_running.enterprise=You are currently running an Enterprise Edition.
marketplace.page.you_are_running.datacenter=You are currently running a Data Center Edition.