aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorMathieu Suen <mathieu.suen@sonarsource.com>2021-11-30 17:27:41 +0100
committersonartech <sonartech@sonarsource.com>2021-12-03 20:03:33 +0000
commit9c87b99000a36a1de7acd25c597cb7d0ae1ac5f4 (patch)
tree66825e3a09b1eb866524ced8ccd33a2a24f7427c /server
parent63cfc466262815718d808f211ec16427d5c60649 (diff)
downloadsonarqube-9c87b99000a36a1de7acd25c597cb7d0ae1ac5f4.tar.gz
sonarqube-9c87b99000a36a1de7acd25c597cb7d0ae1ac5f4.zip
SONAR-15702 Adding IT to check Application is lock
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/app/components/NonAdminPagesContainer.tsx5
-rw-r--r--server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/NonAdminPagesContainer-test.tsx.snap2
2 files changed, 5 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/app/components/NonAdminPagesContainer.tsx b/server/sonar-web/src/main/js/app/components/NonAdminPagesContainer.tsx
index 57d7e3ab19f..52ba2178c46 100644
--- a/server/sonar-web/src/main/js/app/components/NonAdminPagesContainer.tsx
+++ b/server/sonar-web/src/main/js/app/components/NonAdminPagesContainer.tsx
@@ -45,7 +45,10 @@ export default function NonAdminPagesContainer(props: NonAdminPagesContainerProp
if (isApplication(component.qualifier) && !component.canBrowseAllChildProjects) {
return (
<div className="page page-limited display-flex-justify-center">
- <Alert className="max-width-60 huge-spacer-top" display="block" variant="error">
+ <Alert
+ className="it__alert-no-access-all-child-project max-width-60 huge-spacer-top"
+ display="block"
+ variant="error">
<p>{translate('application.cannot_access_all_child_projects1')}</p>
<br />
<p>{translate('application.cannot_access_all_child_projects2')}</p>
diff --git a/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/NonAdminPagesContainer-test.tsx.snap b/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/NonAdminPagesContainer-test.tsx.snap
index e3c581a762d..ec24550e566 100644
--- a/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/NonAdminPagesContainer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/NonAdminPagesContainer-test.tsx.snap
@@ -5,7 +5,7 @@ exports[`should render correctly 1`] = `
className="page page-limited display-flex-justify-center"
>
<Alert
- className="max-width-60 huge-spacer-top"
+ className="it__alert-no-access-all-child-project max-width-60 huge-spacer-top"
display="block"
variant="error"
>