aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js
diff options
context:
space:
mode:
author7PH <benjamin.raymond@sonarsource.com>2023-04-05 12:07:32 +0200
committersonartech <sonartech@sonarsource.com>2023-04-06 20:03:15 +0000
commitfd9ce05c370f2b891aaf875c74f88ea3624e86a1 (patch)
tree7efc82bc6266b93205165e6f7d4c8731b227f98c /server/sonar-web/src/main/js
parent03fcb178955c33889058d434b63e46e8233ad108 (diff)
downloadsonarqube-fd9ce05c370f2b891aaf875c74f88ea3624e86a1.tar.gz
sonarqube-fd9ce05c370f2b891aaf875c74f88ea3624e86a1.zip
SONAR-19002 Drop it-governance DownloadPDFReport Selenium UI tests
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r--server/sonar-web/src/main/js/components/controls/ComponentReportActionsRenderer.tsx3
-rw-r--r--server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ComponentReportActionsRenderer-test.tsx.snap5
2 files changed, 1 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/components/controls/ComponentReportActionsRenderer.tsx b/server/sonar-web/src/main/js/components/controls/ComponentReportActionsRenderer.tsx
index dffeda76983..c2deafcd193 100644
--- a/server/sonar-web/src/main/js/components/controls/ComponentReportActionsRenderer.tsx
+++ b/server/sonar-web/src/main/js/components/controls/ComponentReportActionsRenderer.tsx
@@ -19,8 +19,8 @@
*/
import * as React from 'react';
import { getReportUrl } from '../../api/component-report';
-import { Button } from '../../components/controls/buttons';
import Dropdown from '../../components/controls/Dropdown';
+import { Button } from '../../components/controls/buttons';
import DropdownIcon from '../../components/icons/DropdownIcon';
import { translate, translateWithParameters } from '../../helpers/l10n';
import { Branch } from '../../types/branch-like';
@@ -46,7 +46,6 @@ export default function ComponentReportActionsRenderer(props: ComponentReportAct
download={[component.name, branch?.name, 'PDF Report.pdf'].filter((s) => !!s).join(' - ')}
href={getReportUrl(component.key, branch?.name)}
target="_blank"
- data-test="overview__download-pdf-report-button"
rel="noopener noreferrer"
>
{simple
diff --git a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ComponentReportActionsRenderer-test.tsx.snap b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ComponentReportActionsRenderer-test.tsx.snap
index 7187b548ea9..65a22152a37 100644
--- a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ComponentReportActionsRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ComponentReportActionsRenderer-test.tsx.snap
@@ -8,7 +8,6 @@ exports[`should render correctly: can subscribe, not subscribed 1`] = `
>
<li>
<a
- data-test="overview__download-pdf-report-button"
download="MyProject - PDF Report.pdf"
href="/api/governance_reports/download?componentKey=my-project"
rel="noopener noreferrer"
@@ -48,7 +47,6 @@ exports[`should render correctly: can subscribe, subscribed 1`] = `
>
<li>
<a
- data-test="overview__download-pdf-report-button"
download="MyProject - PDF Report.pdf"
href="/api/governance_reports/download?componentKey=my-project"
rel="noopener noreferrer"
@@ -82,7 +80,6 @@ exports[`should render correctly: can subscribe, subscribed 1`] = `
exports[`should render correctly: cannot subscribe 1`] = `
<a
- data-test="overview__download-pdf-report-button"
download="MyProject - PDF Report.pdf"
href="/api/governance_reports/download?componentKey=my-project"
rel="noopener noreferrer"
@@ -100,7 +97,6 @@ exports[`should render correctly: current user without email 1`] = `
>
<li>
<a
- data-test="overview__download-pdf-report-button"
download="MyProject - PDF Report.pdf"
href="/api/governance_reports/download?componentKey=my-project"
rel="noopener noreferrer"
@@ -138,7 +134,6 @@ exports[`should render correctly: not a portfolio 1`] = `
>
<li>
<a
- data-test="overview__download-pdf-report-button"
download="MyProject - PDF Report.pdf"
href="/api/governance_reports/download?componentKey=my-project"
rel="noopener noreferrer"