mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
chore(data-cy): require data-cy attributes [EE-6880] (#11453)
Some checks are pending
ci / build_images (map[arch:amd64 platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
ci / build_images (map[arch:arm platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:arm64 platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:ppc64le platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:s390x platform:linux version:]) (push) Waiting to run
ci / build_manifests (push) Blocked by required conditions
/ triage (push) Waiting to run
Lint / Run linters (push) Waiting to run
Test / test-client (push) Waiting to run
Test / test-server (map[arch:amd64 platform:linux]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
Test / test-server (map[arch:arm64 platform:linux]) (push) Waiting to run
Some checks are pending
ci / build_images (map[arch:amd64 platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
ci / build_images (map[arch:arm platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:arm64 platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:ppc64le platform:linux version:]) (push) Waiting to run
ci / build_images (map[arch:s390x platform:linux version:]) (push) Waiting to run
ci / build_manifests (push) Blocked by required conditions
/ triage (push) Waiting to run
Lint / Run linters (push) Waiting to run
Test / test-client (push) Waiting to run
Test / test-server (map[arch:amd64 platform:linux]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
Test / test-server (map[arch:arm64 platform:linux]) (push) Waiting to run
This commit is contained in:
parent
3cad13388c
commit
d38085a560
538 changed files with 2571 additions and 595 deletions
|
@ -0,0 +1,13 @@
|
|||
diff a/app/react/kubernetes/cluster/ConfigureView/ConfigureForm/EnableMetricsInput.tsx b/app/react/kubernetes/cluster/ConfigureView/ConfigureForm/EnableMetricsInput.tsx (rejected hunks)
|
||||
@@ -103,7 +103,10 @@ export function EnableMetricsInput({ value, error, environmentId }: Props) {
|
||||
<TextTip color="red" icon={XCircle}>
|
||||
Unable to reach metrics API. You can enable the metrics-server
|
||||
addon in the{' '}
|
||||
- <Link to="kubernetes.cluster">Cluster Details view</Link>.
|
||||
+ <Link to="kubernetes.cluster" data-cy="cluster-details-view-link">
|
||||
+ Cluster Details view
|
||||
+ </Link>
|
||||
+ .
|
||||
</TextTip>
|
||||
)}
|
||||
{metricsFound === true && (
|
|
@ -37,7 +37,7 @@ export function StorageClassDatatable({ storageClassValues }: Props) {
|
|||
checked
|
||||
)
|
||||
}
|
||||
className="mr-2 mb-0"
|
||||
className="mb-0 mr-2"
|
||||
id={`kubeSetup-storageToggle${storageClassValue.Name}`}
|
||||
name={`kubeSetup-storageToggle${storageClassValue.Name}`}
|
||||
data-cy={`kubeSetup-storageToggle${storageClassValue.Name}`}
|
||||
|
@ -68,7 +68,7 @@ export function StorageClassDatatable({ storageClassValues }: Props) {
|
|||
checked
|
||||
)
|
||||
}
|
||||
className="mr-2 mb-0"
|
||||
className="mb-0 mr-2"
|
||||
data-cy={`kubeSetup-storageExpansionToggle${storageClassValue.Name}`}
|
||||
id={`kubeSetup-storageExpansionToggle${storageClassValue.Name}`}
|
||||
name={`kubeSetup-storageExpansionToggle${storageClassValue.Name}`}
|
||||
|
|
|
@ -65,6 +65,7 @@ export function NodesDatatable() {
|
|||
/>
|
||||
</TableSettingsMenu>
|
||||
)}
|
||||
data-cy="k8s-nodes-datatable"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@ function ActionsCell({
|
|||
to="kubernetes.cluster.node.stats"
|
||||
params={{ nodeName }}
|
||||
className="flex items-center p-1"
|
||||
data-cy="nodeStatsButton"
|
||||
>
|
||||
<Icon icon={BarChart} />
|
||||
</Link>
|
||||
|
|
|
@ -25,7 +25,11 @@ function NameCell({
|
|||
childrenUnauthorized={nodeName}
|
||||
adminOnlyCE
|
||||
>
|
||||
<Link to="kubernetes.cluster.node" params={{ nodeName }}>
|
||||
<Link
|
||||
to="kubernetes.cluster.node"
|
||||
params={{ nodeName }}
|
||||
data-cy={`node-name-link-${nodeName}`}
|
||||
>
|
||||
{nodeName}
|
||||
</Link>
|
||||
</Authorized>
|
||||
|
|
|
@ -51,6 +51,7 @@ export function NodeApplicationsDatatable({
|
|||
/>
|
||||
</TableSettingsMenu>
|
||||
)}
|
||||
data-cy="node-applications-datatable"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -24,6 +24,7 @@ function Cell({
|
|||
<Link
|
||||
to="kubernetes.applications.application"
|
||||
params={{ name: item.Name, namespace: item.ResourcePool }}
|
||||
data-cy={`application-link-${item.Name}`}
|
||||
>
|
||||
{item.Name}
|
||||
</Link>
|
||||
|
|
|
@ -26,6 +26,7 @@ export function useColumns(areStacksVisible: boolean) {
|
|||
<Link
|
||||
to="kubernetes.resourcePools.resourcePool"
|
||||
params={{ id: namespace }}
|
||||
data-cy={`namespace-link-${namespace}`}
|
||||
>
|
||||
{namespace}
|
||||
</Link>
|
||||
|
|
|
@ -51,8 +51,10 @@ export function AccessTable({
|
|||
</>
|
||||
}
|
||||
onConfirmed={() => onRemove(selectedItems)}
|
||||
data-cy="remove-registry-access-button"
|
||||
/>
|
||||
)}
|
||||
data-cy="registry-access-datatable"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ interface Props {
|
|||
value: string[];
|
||||
onChange(value: string[]): void;
|
||||
namespaces: Namespace[];
|
||||
dataCy?: string;
|
||||
dataCy: string;
|
||||
inputId?: string;
|
||||
placeholder?: string;
|
||||
}
|
||||
|
|
|
@ -50,6 +50,7 @@ export function IngressClassDatatable({
|
|||
getRowId={(row) => `${row.Name}-${row.ClassName}-${row.Type}`}
|
||||
renderTableActions={(selectedRows) => renderTableActions(selectedRows)}
|
||||
description={renderIngressClassDescription()}
|
||||
data-cy="ingress-class-datatable"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
@ -59,6 +60,7 @@ export function IngressClassDatatable({
|
|||
<div className="flex items-start">
|
||||
<ButtonGroup>
|
||||
<Button
|
||||
data-cy="disallow-ingress-controllers-button"
|
||||
disabled={
|
||||
selectedRows.filter((row) => row.Availability === true).length ===
|
||||
0
|
||||
|
@ -72,6 +74,7 @@ export function IngressClassDatatable({
|
|||
Disallow selected
|
||||
</Button>
|
||||
<Button
|
||||
data-cy="allow-ingress-controllers-button"
|
||||
disabled={
|
||||
selectedRows.filter((row) => row.Availability === false)
|
||||
.length === 0
|
||||
|
|
|
@ -105,6 +105,7 @@ export function IngressClassDatatableAngular({
|
|||
getRowId={(row) => `${row.Name}-${row.ClassName}-${row.Type}`}
|
||||
renderTableActions={(selectedRows) => renderTableActions(selectedRows)}
|
||||
description={renderIngressClassDescription()}
|
||||
data-cy="k8s-ingress-classes-datatable"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
@ -127,6 +128,7 @@ export function IngressClassDatatableAngular({
|
|||
false
|
||||
)
|
||||
}
|
||||
data-cy="k8s-disallow-selected-ingress-controllers-button"
|
||||
>
|
||||
Disallow selected
|
||||
</Button>
|
||||
|
@ -144,6 +146,7 @@ export function IngressClassDatatableAngular({
|
|||
true
|
||||
)
|
||||
}
|
||||
data-cy="k8s-allow-selected-ingress-controllers-button"
|
||||
>
|
||||
Allow selected
|
||||
</Button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue