fix(kubeshell): add back data-cy EE-4054 (#7538)

pull/7560/head
Ali 2022-08-22 10:52:24 +06:00 committed by GitHub
parent c17baa36ef
commit 8d304b78cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 3 deletions

View File

@ -101,6 +101,12 @@ fieldset[disabled] .btn {
background-color: var(--ui-gray-3);
}
.btn-link {
@apply text-blue-8 hover:text-blue-9 disabled:text-gray-5;
@apply th-dark:text-blue-8 th-dark:hover:text-blue-7;
@apply th-highcontrast:text-blue-8 th-highcontrast:hover:text-blue-7;
}
.hyperlink,
.hyperlink:focus {
color: var(--ui-blue-8);

View File

@ -131,10 +131,18 @@ export function KubeCtlShell({ environmentId, onClose }: Props) {
kubectl shell
</div>
<div className={clsx(styles.actions, 'space-x-8')}>
<Button color="link" onClick={clearScreen}>
<Button
color="link"
onClick={clearScreen}
data-cy="k8sShell-refreshButton"
>
<Icon icon="rotate-cw" feather size="md" />
</Button>
<Button color="link" onClick={toggleMinimize}>
<Button
color="link"
onClick={toggleMinimize}
data-cy={shell.minimized ? 'k8sShell-restore' : 'k8sShell-minimise'}
>
<Icon
icon={shell.minimized ? 'maximize-2' : 'minimize-2'}
feather
@ -144,7 +152,11 @@ export function KubeCtlShell({ environmentId, onClose }: Props) {
}
/>
</Button>
<Button color="link" onClick={handleClose}>
<Button
color="link"
onClick={handleClose}
data-cy="k8sShell-closeButton"
>
<Icon icon="x" feather size="md" />
</Button>
</div>