diff --git a/packages/html-reporter/src/copyToClipboard.tsx b/packages/html-reporter/src/copyToClipboard.tsx
index a24015a67125d..85132a40dfd8d 100644
--- a/packages/html-reporter/src/copyToClipboard.tsx
+++ b/packages/html-reporter/src/copyToClipboard.tsx
@@ -34,5 +34,5 @@ export const CopyToClipboard: React.FunctionComponent<{
});
}, [value]);
const iconElement = icon === 'check' ? icons.check() : icon === 'cross' ? icons.cross() : icons.copy();
- return ;
+ return ;
};
diff --git a/packages/html-reporter/src/testCaseView.css b/packages/html-reporter/src/testCaseView.css
index b7727a5a8c8ad..93e26a9b79001 100644
--- a/packages/html-reporter/src/testCaseView.css
+++ b/packages/html-reporter/src/testCaseView.css
@@ -75,12 +75,12 @@
flex-wrap: wrap;
}
-#annotation-copy-button{
+.annotation-copy-button{
padding-left: 3px;
display: none;
}
-.test-case-annotation:hover #annotation-copy-button{
+.test-case-annotation:hover .annotation-copy-button{
padding-left: 3px;
display: inline;
}
\ No newline at end of file
diff --git a/packages/html-reporter/src/testCaseView.spec.tsx b/packages/html-reporter/src/testCaseView.spec.tsx
index 28fe8247f5861..94d37ec570f81 100644
--- a/packages/html-reporter/src/testCaseView.spec.tsx
+++ b/packages/html-reporter/src/testCaseView.spec.tsx
@@ -64,7 +64,13 @@ const testCase: TestCase = {
test('should render test case', async ({ mount }) => {
const component = await mount(