1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

chore(sidebar): add data-cys [EE-3605] (#7143)

* chore(sidebar): add data-cys [EE-3605]

fix [EE-3605]
This commit is contained in:
Chaim Lev-Ari 2022-06-28 19:36:40 +03:00 committed by GitHub
parent ed8f9b5931
commit 882051cc30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 158 additions and 25 deletions

View file

@ -1,21 +1,27 @@
import { Layout } from 'react-feather';
import { EnvironmentId } from '@/portainer/environments/types';
import { AutomationTestingProps } from '@/types';
import { SidebarItem } from '../SidebarItem';
interface Props {
interface Props extends AutomationTestingProps {
environmentId: EnvironmentId;
platformPath: string;
}
export function DashboardLink({ environmentId, platformPath }: Props) {
export function DashboardLink({
environmentId,
platformPath,
'data-cy': dataCy,
}: Props) {
return (
<SidebarItem
to={`${platformPath}.dashboard`}
params={{ endpointId: environmentId }}
icon={Layout}
label="Dashboard"
data-cy={dataCy}
/>
);
}