From: David Cho-Lerat Date: Wed, 12 Jul 2023 18:30:42 +0000 (+0200) Subject: SONAR-19777 Lock project security reports page X-Git-Tag: 10.2.0.77647~347 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=09d49d33da7a76c1fe3c5e3c5e8c415286d1861c;p=sonarqube.git SONAR-19777 Lock project security reports page --- diff --git a/server/sonar-web/src/main/js/app/components/indexation/PageUnavailableDueToIndexation.tsx b/server/sonar-web/src/main/js/app/components/indexation/PageUnavailableDueToIndexation.tsx index eead7093fcc..6dfa918d7bc 100644 --- a/server/sonar-web/src/main/js/app/components/indexation/PageUnavailableDueToIndexation.tsx +++ b/server/sonar-web/src/main/js/app/components/indexation/PageUnavailableDueToIndexation.tsx @@ -40,24 +40,24 @@ export class PageUnavailableDueToIndexation extends React.PureComponent - {translate('indexation.page_unavailable.description')} -
- - {translate('learn_more')} - - ), - }} - /> + + {translate('indexation.page_unavailable.description')} + + + {translate('learn_more')} + + ), + }} + /> + +
); diff --git a/server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/PageUnavailableDueToIndexation-test.tsx.snap b/server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/PageUnavailableDueToIndexation-test.tsx.snap index 43fa2200495..53932900198 100644 --- a/server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/PageUnavailableDueToIndexation-test.tsx.snap +++ b/server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/PageUnavailableDueToIndexation-test.tsx.snap @@ -8,22 +8,28 @@ exports[`should render correctly 1`] = ` className="sw-m-10" variant="info" > - indexation.page_unavailable.description -
- - learn_more - , - } - } - /> + + indexation.page_unavailable.description + + + learn_more + , + } + } + /> + + `; diff --git a/server/sonar-web/src/main/js/components/hoc/__tests__/withIndexationGuard-test.tsx b/server/sonar-web/src/main/js/components/hoc/__tests__/withIndexationGuard-test.tsx index 13683555887..4884755b7ad 100644 --- a/server/sonar-web/src/main/js/components/hoc/__tests__/withIndexationGuard-test.tsx +++ b/server/sonar-web/src/main/js/components/hoc/__tests__/withIndexationGuard-test.tsx @@ -26,7 +26,9 @@ import withIndexationGuard from '../withIndexationGuard'; describe('withIndexationGuard', () => { it('should render indexation message when showIndexationMessage returns true', () => { renderComponentWithIndexationGuard(() => true); - expect(screen.getByText(/indexation\.page_unavailable\.description/)).toBeInTheDocument(); + expect( + screen.getByText(/indexation\.page_unavailable\.description\.additional_information/) + ).toBeInTheDocument(); }); it('should render children when showIndexationMessage returns false', () => {