From 199b78fa48b55983bdd08e76446c7393bf9ea9f7 Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Mon, 28 Oct 2019 17:50:30 +0100 Subject: [PATCH] SONAR-12512 SONAR-12514 SONAR-12515 Add ITs --- .../pullRequestDecoration/AlmPRDecorationTable.tsx | 8 ++++---- .../components/pullRequestDecoration/TabHeader.tsx | 4 +++- .../__snapshots__/AlmPRDecorationTable-test.tsx.snap | 10 +++++++++- .../__tests__/__snapshots__/TabHeader-test.tsx.snap | 2 ++ .../PRDecorationBindingRenderer.tsx | 4 ++-- .../PRDecorationBindingRenderer-test.tsx.snap | 6 +++++- 6 files changed, 25 insertions(+), 9 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecoration/AlmPRDecorationTable.tsx b/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecoration/AlmPRDecorationTable.tsx index 7aebe33e42e..251cf7b3e1a 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecoration/AlmPRDecorationTable.tsx +++ b/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecoration/AlmPRDecorationTable.tsx @@ -55,14 +55,14 @@ export default function AlmPRDecorationTable(props: AlmPRDecorationTableProps) { {definitions.length === 0 ? ( - + {translate('settings.pr_decoration.table.empty', alm)} ) : ( definitions.map(({ key, additionalColumns }) => ( - + {key} @@ -71,12 +71,12 @@ export default function AlmPRDecorationTable(props: AlmPRDecorationTableProps) { {value} ))} - + props.onEdit(key)}> - + props.onDelete(key)} /> diff --git a/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecoration/TabHeader.tsx b/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecoration/TabHeader.tsx index f6506c5126a..0ad31c0d701 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecoration/TabHeader.tsx +++ b/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecoration/TabHeader.tsx @@ -50,7 +50,9 @@ export default function TabHeader(props: TabHeaderProps) {

{translate('settings.pr_decoration.table.title')}

- +
); diff --git a/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecoration/__tests__/__snapshots__/AlmPRDecorationTable-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecoration/__tests__/__snapshots__/AlmPRDecorationTable-test.tsx.snap index 8e7fab9dfe0..1334b79e8bf 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecoration/__tests__/__snapshots__/AlmPRDecorationTable-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecoration/__tests__/__snapshots__/AlmPRDecorationTable-test.tsx.snap @@ -22,7 +22,9 @@ exports[`should render correctly 1`] = ` - + @@ -66,6 +68,7 @@ exports[`should render correctly 2`] = ` )} {!saving && success && ( diff --git a/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/PRDecorationBindingRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/PRDecorationBindingRenderer-test.tsx.snap index 9d291a7610f..7cd05d1aa31 100644 --- a/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/PRDecorationBindingRenderer-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/PRDecorationBindingRenderer-test.tsx.snap @@ -469,7 +469,11 @@ exports[`should render multiple instances correctly 2`] = ` className="spacer-right" onClick={[MockFunction]} > - reset_verb + + reset_verb + -- 2.39.5