From 1a4d4ee96aef0362cc70361a4cf0359411674fcb Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Tue, 11 Oct 2022 14:12:17 +0200 Subject: [PATCH] SONAR-17004 SONAR-17011 Write RTL ITs --- .../activity-graph/GraphsHeader.tsx | 4 +- .../__tests__/ActivityGraph-it.tsx | 346 ++++++++++++++++++ .../__tests__/AddGraphMetric-test.tsx | 39 -- .../__tests__/AddGraphMetricPopup-test.tsx | 64 ---- .../__tests__/DataTableModal-test.tsx | 113 ++++++ .../__tests__/EventInner-test.tsx | 75 ---- .../__tests__/GraphHistory-test.tsx | 63 ---- .../__tests__/GraphsHistory-test.tsx | 118 ------ .../AddGraphMetric-test.tsx.snap | 37 -- .../AddGraphMetricPopup-test.tsx.snap | 93 ----- .../__snapshots__/EventInner-test.tsx.snap | 105 ------ .../__snapshots__/GraphHistory-test.tsx.snap | 106 ------ .../__snapshots__/GraphsHistory-test.tsx.snap | 288 --------------- .../main/js/components/controls/Checkbox.tsx | 1 + .../main/js/helpers/mocks/project-activity.ts | 29 +- 15 files changed, 490 insertions(+), 991 deletions(-) create mode 100644 server/sonar-web/src/main/js/components/activity-graph/__tests__/ActivityGraph-it.tsx delete mode 100644 server/sonar-web/src/main/js/components/activity-graph/__tests__/AddGraphMetric-test.tsx delete mode 100644 server/sonar-web/src/main/js/components/activity-graph/__tests__/AddGraphMetricPopup-test.tsx create mode 100644 server/sonar-web/src/main/js/components/activity-graph/__tests__/DataTableModal-test.tsx delete mode 100644 server/sonar-web/src/main/js/components/activity-graph/__tests__/EventInner-test.tsx delete mode 100644 server/sonar-web/src/main/js/components/activity-graph/__tests__/GraphHistory-test.tsx delete mode 100644 server/sonar-web/src/main/js/components/activity-graph/__tests__/GraphsHistory-test.tsx delete mode 100644 server/sonar-web/src/main/js/components/activity-graph/__tests__/__snapshots__/AddGraphMetric-test.tsx.snap delete mode 100644 server/sonar-web/src/main/js/components/activity-graph/__tests__/__snapshots__/AddGraphMetricPopup-test.tsx.snap delete mode 100644 server/sonar-web/src/main/js/components/activity-graph/__tests__/__snapshots__/EventInner-test.tsx.snap delete mode 100644 server/sonar-web/src/main/js/components/activity-graph/__tests__/__snapshots__/GraphHistory-test.tsx.snap delete mode 100644 server/sonar-web/src/main/js/components/activity-graph/__tests__/__snapshots__/GraphsHistory-test.tsx.snap diff --git a/server/sonar-web/src/main/js/components/activity-graph/GraphsHeader.tsx b/server/sonar-web/src/main/js/components/activity-graph/GraphsHeader.tsx index 6f8559169b4..c15aaac724a 100644 --- a/server/sonar-web/src/main/js/components/activity-graph/GraphsHeader.tsx +++ b/server/sonar-web/src/main/js/components/activity-graph/GraphsHeader.tsx @@ -67,11 +67,11 @@ export default class GraphsHeader extends React.PureComponent {
-