aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projects/components
diff options
context:
space:
mode:
authorViktor Vorona <viktor.vorona@sonarsource.com>2024-10-09 09:53:38 +0200
committersonartech <sonartech@sonarsource.com>2024-10-16 20:02:59 +0000
commitc8d599a0ee672ee5e7c5db2d88cb1b6482d65db7 (patch)
tree32887e96c9223c1147c783965bb71f7ae66fb981 /server/sonar-web/src/main/js/apps/projects/components
parentfc85e01586e220eab0b385a74c71843d861babca (diff)
downloadsonarqube-c8d599a0ee672ee5e7c5db2d88cb1b6482d65db7.tar.gz
sonarqube-c8d599a0ee672ee5e7c5db2d88cb1b6482d65db7.zip
SONAR-23188 MQR Mode setting
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects/components')
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/__tests__/PageSidebar-test.tsx4
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/project-card/__tests__/ProjectCard-test.tsx4
2 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/PageSidebar-test.tsx b/server/sonar-web/src/main/js/apps/projects/components/__tests__/PageSidebar-test.tsx
index 927df18e7aa..c1d41c9b149 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/PageSidebar-test.tsx
+++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/PageSidebar-test.tsx
@@ -85,7 +85,7 @@ it('should allow to clear all filters', async () => {
});
it('should show legacy filters', async () => {
- settingsHandler.set(SettingsKey.LegacyMode, 'true');
+ settingsHandler.set(SettingsKey.MQRMode, 'false');
renderPageSidebar();
expect(await screen.findAllByText(/projects.facets.rating_option/)).toHaveLength(20);
@@ -96,7 +96,7 @@ it('should show legacy filters', async () => {
});
it('should show non legacy filters', async () => {
- settingsHandler.set(SettingsKey.LegacyMode, 'false');
+ settingsHandler.set(SettingsKey.MQRMode, 'true');
renderPageSidebar();
expect(await screen.findAllByText(/projects.facets.rating_option/)).toHaveLength(20);
diff --git a/server/sonar-web/src/main/js/apps/projects/components/project-card/__tests__/ProjectCard-test.tsx b/server/sonar-web/src/main/js/apps/projects/components/project-card/__tests__/ProjectCard-test.tsx
index f2754c4aeaf..b6bd24cf673 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/project-card/__tests__/ProjectCard-test.tsx
+++ b/server/sonar-web/src/main/js/apps/projects/components/project-card/__tests__/ProjectCard-test.tsx
@@ -310,7 +310,7 @@ describe('upgrade scenario (awaiting scan)', () => {
});
it('should not display awaiting analysis badge if legacy mode is enabled', async () => {
- settingsHandler.set(SettingsKey.LegacyMode, 'true');
+ settingsHandler.set(SettingsKey.MQRMode, 'false');
renderProjectCard({
...PROJECT,
measures: {
@@ -329,7 +329,7 @@ describe('upgrade scenario (awaiting scan)', () => {
});
it('should not display new values if legacy mode is enabled', async () => {
- settingsHandler.set(SettingsKey.LegacyMode, 'true');
+ settingsHandler.set(SettingsKey.MQRMode, 'false');
measuresHandler.registerComponentMeasures({
[PROJECT.key]: {
...newRatings,