File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
redisinsight/ui/src/pages/rdi
pipeline-management/components/download Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ const ConfirmLeavePagePopup = (props: Props) => {
43
43
</ EuiText >
44
44
</ section >
45
45
< div className = { styles . footer } >
46
- < Download />
46
+ < Download dataTestid = "popup-download-pipeline-btn" />
47
47
< EuiButton
48
48
fill
49
49
color = "secondary"
Original file line number Diff line number Diff line change 23
23
justify-content : space-between ;
24
24
align-items : center ;
25
25
padding-top : 40px ;
26
- padding-bottom : 1 px ;
26
+ padding-bottom : 6 px ;
27
27
}
28
28
29
29
.button {
35
35
}
36
36
37
37
:global {
38
- .euiModal__closeIcon {
38
+ .euiButtonIcon. euiModal__closeIcon {
39
39
right : 35px ;
40
40
top : 35px ;
41
41
}
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ import { IPipeline } from 'uiSrc/slices/interfaces'
10
10
import { rdiPipelineSelector } from 'uiSrc/slices/rdi/pipeline'
11
11
import { sendEventTelemetry , TelemetryEvent } from 'uiSrc/telemetry'
12
12
13
- const Download = ( ) => {
13
+ interface Props {
14
+ dataTestid ?: string
15
+ }
16
+
17
+ const Download = ( { dataTestid } : Props ) => {
14
18
const { loading } = useSelector ( rdiPipelineSelector )
15
19
16
20
const { rdiInstanceId } = useParams < { rdiInstanceId : string } > ( )
@@ -45,7 +49,7 @@ const Download = () => {
45
49
disabled = { loading }
46
50
onClick = { handleDownloadClick }
47
51
aria-labelledby = "Download pipeline button"
48
- data-testid = " download-pipeline-btn"
52
+ data-testid = { dataTestid || ' download-pipeline-btn' }
49
53
>
50
54
Download
51
55
</ EuiButtonEmpty >
You can’t perform that action at this time.
0 commit comments