Skip to content

Commit 109633b

Browse files
john-bintz-sonarsourcesonartech
authored andcommitted
SCA-1174 Hide SCA settings test in community builds (#3638)
GitOrigin-RevId: 4016394aa8ad115fdc670d5556a281426cb11128
1 parent 42cd548 commit 109633b

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

apps/sq-server/src/main/js/apps/settings/components/__tests__/SettingsApp-it.tsx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -141,24 +141,6 @@ describe('Global Settings', () => {
141141
expect(await ui.jsGeneralSubCategoryHeading.find()).toBeInTheDocument();
142142
});
143143

144-
it('renders Advanced Security category', async () => {
145-
const user = userEvent.setup();
146-
entitlementsMock.data.purchasableFeatures = [
147-
{ featureKey: 'sca', isAvailable: true, isEnabled: false },
148-
];
149-
renderSettingsApp();
150-
151-
// Navigating to Advanced Security category
152-
await user.click(await ui.categoryLink('property.category.Advanced Security').find());
153-
154-
expect(await ui.scaHeading.find()).toBeInTheDocument();
155-
156-
await user.click(ui.settingsSearchInput.get());
157-
await user.type(ui.settingsSearchInput.get(), 'global');
158-
expect(ui.searchItem('sonar.sca.featureEnabled').query()).not.toBeInTheDocument();
159-
await user.type(ui.settingsSearchInput.get(), 'sca');
160-
expect(ui.searchItem('sonar.sca.featureEnabled').query()).not.toBeInTheDocument();
161-
});
162144

163145
it('can search definitions by name or key', async () => {
164146
const user = userEvent.setup();

0 commit comments

Comments
 (0)