mirror of
https://github.com/portainer/portainer.git
synced 2025-08-06 14:25:31 +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
|
@ -57,6 +57,7 @@ export function ResultsDatatable({
|
|||
downloadLogs: onDownloadLogs,
|
||||
clearLogs: onClearLogs,
|
||||
})}
|
||||
data-cy="edge-job-results-datatable"
|
||||
/>
|
||||
);
|
||||
|
||||
|
|
|
@ -41,10 +41,16 @@ function ActionsCell({
|
|||
case LogsStatus.Collected:
|
||||
return (
|
||||
<>
|
||||
<Button onClick={() => tableMeta.downloadLogs(item.EndpointId)}>
|
||||
<Button
|
||||
onClick={() => tableMeta.downloadLogs(item.EndpointId)}
|
||||
data-cy={`edge-job-download-logs-${item.Endpoint.Name}`}
|
||||
>
|
||||
Download logs
|
||||
</Button>
|
||||
<Button onClick={() => tableMeta.clearLogs(item.EndpointId)}>
|
||||
<Button
|
||||
onClick={() => tableMeta.clearLogs(item.EndpointId)}
|
||||
data-cy={`edge-job-clear-logs-${item.Endpoint.Name}`}
|
||||
>
|
||||
Clear logs
|
||||
</Button>
|
||||
</>
|
||||
|
@ -52,7 +58,10 @@ function ActionsCell({
|
|||
case LogsStatus.Idle:
|
||||
default:
|
||||
return (
|
||||
<Button onClick={() => tableMeta.collectLogs(item.EndpointId)}>
|
||||
<Button
|
||||
onClick={() => tableMeta.collectLogs(item.EndpointId)}
|
||||
data-cy={`edge-job-retrieve-logs-${item.Endpoint.Name}`}
|
||||
>
|
||||
Retrieve logs
|
||||
</Button>
|
||||
);
|
||||
|
|
|
@ -29,6 +29,7 @@ export function EdgeJobsDatatable() {
|
|||
renderTableActions={(selectedItems) => (
|
||||
<TableActions selectedItems={selectedItems} />
|
||||
)}
|
||||
data-cy="edge-jobs-datatable"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -20,9 +20,10 @@ export function TableActions({
|
|||
confirmMessage="Do you want to remove the selected Edge Job(s)?"
|
||||
disabled={selectedItems.length === 0}
|
||||
onConfirmed={() => handleRemove(selectedItems)}
|
||||
data-cy="remove-edge-jobs-button"
|
||||
/>
|
||||
|
||||
<AddButton>Add Edge job</AddButton>
|
||||
<AddButton data-cy="add-edge-job-button">Add Edge job</AddButton>
|
||||
</div>
|
||||
);
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import { EdgeJob } from '../types';
|
|||
const columnHelper = createColumnHelper<EdgeJob>();
|
||||
|
||||
export const columns = [
|
||||
buildNameColumn<EdgeJob>('Name', '.job'),
|
||||
buildNameColumn<EdgeJob>('Name', '.job', 'edge-job-name'),
|
||||
columnHelper.accessor('CronExpression', {
|
||||
header: 'Cron Expression',
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue