From df130cf0365090cd64cb83cd2df55d1f45fc8278 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 27 Oct 2026 04:22:55 +0000 Subject: [PATCH 1/2] test(ui): pin the read-mode copy button's keyboard focus reveal Claude-Session: https://claude.ai/code/session_01SMps7wq7rBTk53e8KTSEup Co-authored-by: Claude --- .../copyButton.focusReveal-26329.test.tsx | 149 ++++++++++++++++++ 1 file changed, 149 insertions(+) create mode 100644 ui/packages/plugin-detail/src/__tests__/copyButton.focusReveal-26329.test.tsx diff --git a/ui/packages/plugin-detail/src/__tests__/copyButton.focusReveal-26329.test.tsx b/ui/packages/plugin-detail/src/__tests__/copyButton.focusReveal-26329.test.tsx new file mode 100644 index 00000000000..a28bc2c9efc --- /dev/null +++ b/ui/packages/plugin-detail/src/__tests__/copyButton.focusReveal-26329.test.tsx @@ -0,0 +1,149 @@ +/** + * ObjectUI + * Copyright (c) 2024-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import { describe, it, expect, vi, beforeAll, afterEach } from 'vitest'; +import { render, fireEvent, cleanup } from '@testing-library/react'; +import type { DetailViewSection } from '@object-ui/types'; +import { DetailSection } from '../DetailSection'; + +/** + * objectstack#26329 — the read-mode copy-to-clipboard button on a copyable, + * non-editable field was revealed on HOVER only (`opacity-0 + * group-hover:opacity-100`). It is a real `