diff --git a/client/src/components/buttons/Button.tsx b/client/src/components/buttons/Button.tsx
index 307d045ea8..68e0b4e8bb 100644
--- a/client/src/components/buttons/Button.tsx
+++ b/client/src/components/buttons/Button.tsx
@@ -125,6 +125,7 @@ interface ButtonWithMenuV2Props {
children?: React.ReactNode;
className?: string;
color?: string;
+ dataCy?: string;
default: React.ReactNode;
direction?: "up" | "down" | "start" | "end";
disabled?: boolean;
@@ -139,6 +140,7 @@ export function SplitButtonWithMenu({
children,
className,
color,
+ dataCy,
default: defaultButton,
direction,
disabled,
@@ -168,7 +170,7 @@ export function SplitButtonWithMenu({
className={cx("border-start-0", "dropdown-toggle-split")}
data-bs-toggle="dropdown"
color={color ?? "primary"}
- data-cy="button-with-menu-dropdown"
+ data-cy={dataCy ?? "button-with-menu-dropdown"}
disabled={isDisabledDropdownToggle ?? disabled}
/>
{children}
diff --git a/client/src/features/ProjectPageV2/ProjectPageContent/ProjectInformation/ProjectInformation.tsx b/client/src/features/ProjectPageV2/ProjectPageContent/ProjectInformation/ProjectInformation.tsx
index 42b96fe635..964d6fcadc 100644
--- a/client/src/features/ProjectPageV2/ProjectPageContent/ProjectInformation/ProjectInformation.tsx
+++ b/client/src/features/ProjectPageV2/ProjectPageContent/ProjectInformation/ProjectInformation.tsx
@@ -160,7 +160,9 @@ export default function ProjectInformation({
title="Namespace:"
>
- {namespaceName}
+
+ {namespaceName}
+
} title="Visibility:">
diff --git a/client/src/features/dashboardV2/DashboardV2.tsx b/client/src/features/dashboardV2/DashboardV2.tsx
index 287e365694..75956824c8 100644
--- a/client/src/features/dashboardV2/DashboardV2.tsx
+++ b/client/src/features/dashboardV2/DashboardV2.tsx
@@ -347,6 +347,7 @@ function UserDashboard() {
@{userInfo.username ?? "unknown"}
diff --git a/client/src/features/dataConnectorsV2/components/DataConnectorActions.tsx b/client/src/features/dataConnectorsV2/components/DataConnectorActions.tsx
index 97bf6e2b5a..69f214cad9 100644
--- a/client/src/features/dataConnectorsV2/components/DataConnectorActions.tsx
+++ b/client/src/features/dataConnectorsV2/components/DataConnectorActions.tsx
@@ -490,6 +490,7 @@ function DataConnectorActionsInner({
) : (
+
{resourceClassName && (
{resourceClassName}
diff --git a/client/src/features/sessionsV2/DeleteSessionLauncherModal.tsx b/client/src/features/sessionsV2/DeleteSessionLauncherModal.tsx
index 140386af2b..5043268dbe 100644
--- a/client/src/features/sessionsV2/DeleteSessionLauncherModal.tsx
+++ b/client/src/features/sessionsV2/DeleteSessionLauncherModal.tsx
@@ -69,7 +69,7 @@ export default function DeleteSessionLauncherModal({
size="lg"
toggle={toggle}
>
-
+
Delete session launcher
@@ -107,6 +107,7 @@ export default function DeleteSessionLauncherModal({
@@ -470,15 +471,17 @@ function EnvironmentRow({ children }: { children?: ReactNode }) {
function EnvironmentRowWithLabel({
label,
value,
+ dataCy,
}: {
label: string;
value?: string | number | null;
+ dataCy?: string;
}) {
return (
- {value ?? "-"}
+ {value ?? "-"}
);
diff --git a/client/src/features/sessionsV2/SessionView/SessionView.tsx b/client/src/features/sessionsV2/SessionView/SessionView.tsx
index a34d180d3d..c6914c0dd7 100644
--- a/client/src/features/sessionsV2/SessionView/SessionView.tsx
+++ b/client/src/features/sessionsV2/SessionView/SessionView.tsx
@@ -383,6 +383,7 @@ export function SessionView({
<>
-
Default Resource Class
+
Default Resource Class
{launcher && (
diff --git a/client/src/features/sessionsV2/SessionsV2.tsx b/client/src/features/sessionsV2/SessionsV2.tsx
index c619818e29..cb4cf3e1e9 100644
--- a/client/src/features/sessionsV2/SessionsV2.tsx
+++ b/client/src/features/sessionsV2/SessionsV2.tsx
@@ -211,6 +211,7 @@ export function SessionV2Actions({
<>
-
+
Set default resource class
@@ -176,7 +176,7 @@ export function ModifyResourcesLauncherModal({
)}
{result.isSuccess && (
-
+
Default resource class updated
@@ -269,7 +269,7 @@ export function ModifyResourcesLauncherModal({
)}
-
+
Cancel
@@ -284,6 +284,7 @@ export function ModifyResourcesLauncherModal({
}
onClick={onSubmit}
type="submit"
+ data-cy="set-resource-class-submit-button"
>
{result.isLoading ? (