= ({ children, value }) => {
+ return
+ {children}
+
+
+
+ ;
};
diff --git a/packages/html-reporter/src/testCaseView.css b/packages/html-reporter/src/testCaseView.css
index 42f72bf438..f4d7448242 100644
--- a/packages/html-reporter/src/testCaseView.css
+++ b/packages/html-reporter/src/testCaseView.css
@@ -75,8 +75,3 @@
flex-wrap: wrap;
}
-.copy-button-container {
- display: inline-flex;
- margin-left: 8px;
- vertical-align: bottom;
-}
diff --git a/packages/html-reporter/src/testCaseView.spec.tsx b/packages/html-reporter/src/testCaseView.spec.tsx
index 68f5738971..21b1535911 100644
--- a/packages/html-reporter/src/testCaseView.spec.tsx
+++ b/packages/html-reporter/src/testCaseView.spec.tsx
@@ -79,6 +79,7 @@ test('should render test case', async ({ mount }) => {
test('should render copy buttons for annotations', async ({ mount }) => {
const component = await mount();
await expect(component.getByText('Annotation text', { exact: false }).first()).toBeVisible();
+ component.getByText('Annotation text', { exact: false }).first().hover();
await expect(component.getByRole('button').first()).toBeVisible();
});
diff --git a/packages/html-reporter/src/testCaseView.tsx b/packages/html-reporter/src/testCaseView.tsx
index a9e8e1859f..1fe4f42ed3 100644
--- a/packages/html-reporter/src/testCaseView.tsx
+++ b/packages/html-reporter/src/testCaseView.tsx
@@ -26,7 +26,7 @@ import { TestResultView } from './testResultView';
import { linkifyText } from '@web/renderUtils';
import { hashStringToInt, msToString } from './utils';
import { clsx } from '@web/uiUtils';
-import { CopyToClipboard } from './copyToClipboard';
+import { CopyToClipboardContainer } from './copyToClipboard';
export const TestCaseView: React.FC<{
projectNames: string[],
@@ -74,10 +74,7 @@ function TestCaseAnnotationView({ annotation: { type, description } }: { annotat
return (
{type}
- {description && : {linkifyText(description)}}
- {description &&
-
- }
+ {description && : {linkifyText(description)}}
);
}