mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +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
|
@ -25,8 +25,13 @@ export function EnvironmentActions({ environment }: Props) {
|
|||
to="edge.browse.containers"
|
||||
params={{ environmentId: environment.Id, edgeStackId }}
|
||||
className="!text-inherit hover:!no-underline"
|
||||
data-cy="browse-snapshot-link"
|
||||
>
|
||||
<Button color="none" title="Browse Snapshot">
|
||||
<Button
|
||||
color="none"
|
||||
title="Browse Snapshot"
|
||||
data-cy="browse-snapshot-button"
|
||||
>
|
||||
<Icon icon={Search} className="searchIcon" />
|
||||
</Button>
|
||||
</Link>
|
||||
|
|
|
@ -116,9 +116,11 @@ export function EnvironmentsDatatable() {
|
|||
value={statusFilter}
|
||||
onChange={(e) => setStatusFilter(e ?? undefined)}
|
||||
options={envStatusSelectOptions}
|
||||
data-cy="edge-stacks-environments-status-filter"
|
||||
/>
|
||||
</div>
|
||||
}
|
||||
data-cy="edge-stacks-environments-datatable"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -34,7 +34,12 @@ export function LogsActions({ environmentId, edgeStackId }: Props) {
|
|||
|
||||
return (
|
||||
<>
|
||||
<Button color="none" title="Retrieve logs" onClick={handleCollectLogs}>
|
||||
<Button
|
||||
color="none"
|
||||
title="Retrieve logs"
|
||||
onClick={handleCollectLogs}
|
||||
data-cy="edge-stack-logs-collect-button"
|
||||
>
|
||||
<Icon
|
||||
icon={clsx({
|
||||
'file-text': !collecting,
|
||||
|
@ -44,6 +49,7 @@ export function LogsActions({ environmentId, edgeStackId }: Props) {
|
|||
</Button>
|
||||
<Button
|
||||
color="none"
|
||||
data-cy="edge-stack-logs-download-button"
|
||||
title="Download logs"
|
||||
disabled={status !== 'collected'}
|
||||
onClick={handleDownloadLogs}
|
||||
|
@ -60,6 +66,7 @@ export function LogsActions({ environmentId, edgeStackId }: Props) {
|
|||
title="Delete logs"
|
||||
disabled={status !== 'collected'}
|
||||
onClick={handleDeleteLogs}
|
||||
data-cy="edge-stack-logs-delete-button"
|
||||
>
|
||||
<Icon
|
||||
icon={clsx({
|
||||
|
|
|
@ -30,7 +30,11 @@ export const columns = _.compact([
|
|||
cell({ row: { original: env } }) {
|
||||
const { to, params } = getDashboardRoute(env);
|
||||
return (
|
||||
<Link to={to} params={params}>
|
||||
<Link
|
||||
to={to}
|
||||
params={params}
|
||||
data-cy={`edge-stack-environment-link-${env.Name}`}
|
||||
>
|
||||
{env.Name}
|
||||
</Link>
|
||||
);
|
||||
|
@ -112,7 +116,10 @@ export const columns = _.compact([
|
|||
: []),
|
||||
]);
|
||||
|
||||
function ErrorCell({ getValue }: CellContext<EdgeStackEnvironment, string>) {
|
||||
function ErrorCell({
|
||||
getValue,
|
||||
row,
|
||||
}: CellContext<EdgeStackEnvironment, string>) {
|
||||
const [isExpanded, setIsExpanded] = useState(false);
|
||||
|
||||
const value = getValue();
|
||||
|
@ -125,6 +132,7 @@ function ErrorCell({ getValue }: CellContext<EdgeStackEnvironment, string>) {
|
|||
color="none"
|
||||
className="flex cursor-pointer"
|
||||
onClick={() => setIsExpanded(!isExpanded)}
|
||||
data-cy={`edge-stack-environment-error-${row.index}`}
|
||||
>
|
||||
<div className="pr-1 pt-0.5">
|
||||
<Icon icon={isExpanded ? ChevronDown : ChevronRight} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue