diff --git a/app/react/components/LinkButton.tsx b/app/react/components/LinkButton.tsx index 7bae0bcdc..f4e63ad66 100644 --- a/app/react/components/LinkButton.tsx +++ b/app/react/components/LinkButton.tsx @@ -25,9 +25,8 @@ export function LinkButton({ props={{ to, params, - 'data-cy': `${dataCy}-link`, }} - data-cy={`${dataCy}-button`} + data-cy={dataCy} > {children} diff --git a/app/react/components/buttons/AddButton.tsx b/app/react/components/buttons/AddButton.tsx index 6f222342c..9891839f8 100644 --- a/app/react/components/buttons/AddButton.tsx +++ b/app/react/components/buttons/AddButton.tsx @@ -25,10 +25,10 @@ export function AddButton({ return ( diff --git a/app/react/portainer/environments/ListView/columns/actions.tsx b/app/react/portainer/environments/ListView/columns/actions.tsx index d525271e9..9e40f621b 100644 --- a/app/react/portainer/environments/ListView/columns/actions.tsx +++ b/app/react/portainer/environments/ListView/columns/actions.tsx @@ -31,7 +31,6 @@ function Cell({ props={{ to: 'portainer.endpoints.endpoint.access', params: { id: environment.Id }, - 'data-cy': `environment-manage-access-${environment.Name}`, }} color="link" icon={Users} diff --git a/app/react/portainer/environments/environment-groups/ListView/EnvironmentGroupsDatatable/columns.tsx b/app/react/portainer/environments/environment-groups/ListView/EnvironmentGroupsDatatable/columns.tsx index 63773d33d..98118911b 100644 --- a/app/react/portainer/environments/environment-groups/ListView/EnvironmentGroupsDatatable/columns.tsx +++ b/app/react/portainer/environments/environment-groups/ListView/EnvironmentGroupsDatatable/columns.tsx @@ -26,7 +26,6 @@ function ActionsCell({ props={{ to: '.group.access', params: { id: item.Id }, - 'data-cy': `manage-access-link_${item.Name}`, }} color="link" icon={Users} diff --git a/app/react/portainer/registries/ListView/RegistriesDatatable/columns/actions.tsx b/app/react/portainer/registries/ListView/RegistriesDatatable/columns/actions.tsx index 86735e3d5..da26992c3 100644 --- a/app/react/portainer/registries/ListView/RegistriesDatatable/columns/actions.tsx +++ b/app/react/portainer/registries/ListView/RegistriesDatatable/columns/actions.tsx @@ -57,7 +57,6 @@ export function BrowseButton({ props={{ to: 'portainer.registries.registry.repositories', params: { id: registry.Id, endpointId: environmentId }, - 'data-cy': `browse-registry-link-${registry.Name}`, }} disabled={isLimited} icon={Search} diff --git a/app/react/portainer/registries/environments/ListView/EnvironmentRegistriesDatatable/columns/actions.tsx b/app/react/portainer/registries/environments/ListView/EnvironmentRegistriesDatatable/columns/actions.tsx index 28f612854..b4562d550 100644 --- a/app/react/portainer/registries/environments/ListView/EnvironmentRegistriesDatatable/columns/actions.tsx +++ b/app/react/portainer/registries/environments/ListView/EnvironmentRegistriesDatatable/columns/actions.tsx @@ -43,7 +43,6 @@ function Cell({ props={{ to: '.access', params: { id: item.Id }, - 'data-cy': `manage-access-link-${item.Name}`, }} data-cy={`registry-manage-access-button-${item.Name}`} > diff --git a/app/react/portainer/templates/app-templates/AppTemplatesListItem.tsx b/app/react/portainer/templates/app-templates/AppTemplatesListItem.tsx index 9c2ebed7b..b39c500bf 100644 --- a/app/react/portainer/templates/app-templates/AppTemplatesListItem.tsx +++ b/app/react/portainer/templates/app-templates/AppTemplatesListItem.tsx @@ -46,7 +46,6 @@ export function AppTemplatesListItem({ appTemplateId: template.Id, type: duplicateCustomTemplateType, }, - 'data-cy': `app-templates-duplicate-${template.Name}`, }} > Copy as Custom diff --git a/app/react/portainer/templates/custom-templates/ListView/CustomTemplatesListItem.tsx b/app/react/portainer/templates/custom-templates/ListView/CustomTemplatesListItem.tsx index 32b058acc..95c6c9a3c 100644 --- a/app/react/portainer/templates/custom-templates/ListView/CustomTemplatesListItem.tsx +++ b/app/react/portainer/templates/custom-templates/ListView/CustomTemplatesListItem.tsx @@ -54,7 +54,6 @@ export function CustomTemplatesListItem({ params: { id: template.Id, }, - 'data-cy': `custom-templates-edit-link-${template.Id}`, }} icon={Edit} data-cy={`custom-templates-edit-button-${template.Id}`} diff --git a/app/react/portainer/templates/custom-templates/ListView/StackFromCustomTemplateFormWidget/DeployForm.tsx b/app/react/portainer/templates/custom-templates/ListView/StackFromCustomTemplateFormWidget/DeployForm.tsx index 983a8cf19..3bea73914 100644 --- a/app/react/portainer/templates/custom-templates/ListView/StackFromCustomTemplateFormWidget/DeployForm.tsx +++ b/app/react/portainer/templates/custom-templates/ListView/StackFromCustomTemplateFormWidget/DeployForm.tsx @@ -159,7 +159,6 @@ export function DeployForm({ as={Link} props={{ to: '.', - 'data-cy': 'cancel-stack-creation', params: { template: null }, }} color="default"