Skip to content

Commit 1700907

Browse files
sessions
1 parent 5d66b5c commit 1700907

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

client/src/features/sessionsV2/SessionImageModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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>

client/src/features/sessionsV2/SessionView/EnvironmentCard.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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 }) {
470471
function 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
);

client/src/features/sessionsV2/SessionView/SessionView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)