File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
client/src/features/sessionsV2 Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -163,10 +163,10 @@ export default function SessionImageModal({
163163 isOpen = { isOpen }
164164 size = "lg"
165165 >
166- < ModalHeader tag = "h2" > Session image not accessible</ ModalHeader >
166+ < ModalHeader tag = "h2" data-cy = "session-image-not-accessible-header" > Session image not accessible</ ModalHeader >
167167 < ModalBody > { content } </ ModalBody >
168168 < ModalFooter >
169- < Button color = "outline-danger" onClick = { onCancel } >
169+ < Button color = "outline-danger" onClick = { onCancel } data-cy = "session-image-not-accessible-cancel-button" >
170170 < XLg className = { cx ( "bi" , "me-1" ) } />
171171 Cancel
172172 </ Button >
Original file line number Diff line number Diff line change @@ -267,6 +267,7 @@ function CustomImageEnvironmentValues({
267267 ) }
268268 </ div >
269269 < EnvironmentRowWithLabel
270+ dataCy = "session-view-session-environment-image"
270271 label = "Container image"
271272 value = { environment ?. container_image || "" }
272273 />
@@ -470,15 +471,17 @@ function EnvironmentRow({ children }: { children?: ReactNode }) {
470471function EnvironmentRowWithLabel ( {
471472 label,
472473 value,
474+ dataCy,
473475} : {
474476 label : string ;
475477 value ?: string | number | null ;
478+ dataCy ?: string ;
476479} ) {
477480 return (
478481 < EnvironmentRow >
479482 < div className = "d-block" >
480483 < label className = { cx ( "text-nowrap" , "mb-0" , "me-2" ) } > { label } :</ label >
481- < code > { value ?? "-" } </ code >
484+ < code data-cy = { dataCy } > { value ?? "-" } </ code >
482485 </ div >
483486 </ EnvironmentRow >
484487 ) ;
Original file line number Diff line number Diff line change @@ -383,6 +383,7 @@ export function SessionView({
383383 < >
384384 < Button
385385 color = "outline-primary"
386+ data-cy = "session-view-modify-session-environment-button"
386387 id = "modify-session-environment-button"
387388 onClick = { toggle }
388389 size = "sm"
You can’t perform that action at this time.
0 commit comments