File tree Expand file tree Collapse file tree 6 files changed +16
-3
lines changed
ProjectPageV2/ProjectPageContent/ProjectInformation
dataConnectorsV2/components Expand file tree Collapse file tree 6 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ interface ButtonWithMenuV2Props {
125125 children ?: React . ReactNode ;
126126 className ?: string ;
127127 color ?: string ;
128+ dataCy ?: string ;
128129 default : React . ReactNode ;
129130 direction ?: "up" | "down" | "start" | "end" ;
130131 disabled ?: boolean ;
@@ -139,6 +140,7 @@ export function SplitButtonWithMenu({
139140 children,
140141 className,
141142 color,
143+ dataCy,
142144 default : defaultButton ,
143145 direction,
144146 disabled,
@@ -168,7 +170,7 @@ export function SplitButtonWithMenu({
168170 className = { cx ( "border-start-0" , "dropdown-toggle-split" ) }
169171 data-bs-toggle = "dropdown"
170172 color = { color ?? "primary" }
171- data-cy = "button-with-menu-dropdown"
173+ data-cy = { dataCy ?? "button-with-menu-dropdown" }
172174 disabled = { isDisabledDropdownToggle ?? disabled }
173175 />
174176 < DropdownMenu end > { children } </ DropdownMenu >
Original file line number Diff line number Diff line change @@ -160,7 +160,9 @@ export default function ProjectInformation({
160160 title = "Namespace:"
161161 >
162162 < p className = "mb-0" >
163- < Link to = { namespaceUrl } > { namespaceName } </ Link >
163+ < Link data-cy = "project-namespace-link" to = { namespaceUrl } >
164+ { namespaceName }
165+ </ Link >
164166 </ p >
165167 </ ProjectInformationBox >
166168 < ProjectInformationBox icon = { < Eye className = "bi" /> } title = "Visibility:" >
Original file line number Diff line number Diff line change @@ -347,6 +347,7 @@ function UserDashboard() {
347347 < Link
348348 to = { userPageUrl }
349349 className = { cx ( "link-primary" , "stretched-link" ) }
350+ data-cy = "user-namespace-link"
350351 >
351352 @{ userInfo . username ?? "unknown" }
352353 </ Link >
Original file line number Diff line number Diff line change @@ -490,6 +490,7 @@ function DataConnectorActionsInner({
490490 ) : (
491491 < ButtonWithMenuV2
492492 color = "outline-primary"
493+ dataCy = "data-connector-menu-dropdown"
493494 default = {
494495 < Button
495496 color = "outline-primary"
Original file line number Diff line number Diff line change @@ -69,7 +69,12 @@ export default function DeleteSessionLauncherModal({
6969 size = "lg"
7070 toggle = { toggle }
7171 >
72- < ModalHeader className = "text-danger" tag = "h2" toggle = { toggle } >
72+ < ModalHeader
73+ className = "text-danger"
74+ data-cy = "delete-session-launcher-modal-title"
75+ tag = "h2"
76+ toggle = { toggle }
77+ >
7378 Delete session launcher
7479 </ ModalHeader >
7580 < ModalBody >
@@ -107,6 +112,7 @@ export default function DeleteSessionLauncherModal({
107112 </ Button >
108113 < Button
109114 color = "danger"
115+ data-cy = "delete-session-launcher-modal-button"
110116 disabled = { result . isLoading }
111117 onClick = { onDelete }
112118 type = "button"
Original file line number Diff line number Diff line change @@ -211,6 +211,7 @@ export function SessionV2Actions({
211211 < >
212212 < ButtonWithMenuV2
213213 color = "outline-primary"
214+ dataCy = "session-launcher-menu-dropdown"
214215 default = { defaultAction }
215216 preventPropagation
216217 size = "sm"
You can’t perform that action at this time.
0 commit comments