diff --git a/packages/gitbook/e2e/internal.spec.ts b/packages/gitbook/e2e/internal.spec.ts index d7784bf316..45f3abf2e5 100644 --- a/packages/gitbook/e2e/internal.spec.ts +++ b/packages/gitbook/e2e/internal.spec.ts @@ -1056,8 +1056,8 @@ const testCases: TestsCase[] = [ url: 'blocks/annotations', run: async (page) => { await waitForCookiesDialog(page); - await page.waitForSelector('[data-testid="annotation-button"]'); - await page.click('[data-testid="annotation-button"]'); + await page.waitForSelector('[data-annotation]'); + await page.click('[data-annotation]'); }, }, { diff --git a/packages/gitbook/src/components/DocumentView/Annotation/AnnotationPopover.tsx b/packages/gitbook/src/components/DocumentView/Annotation/AnnotationPopover.tsx index 2c36150e6d..1293433d03 100644 --- a/packages/gitbook/src/components/DocumentView/Annotation/AnnotationPopover.tsx +++ b/packages/gitbook/src/components/DocumentView/Annotation/AnnotationPopover.tsx @@ -18,7 +18,7 @@ export function AnnotationPopover(props: { children: React.ReactNode; body: Reac arrowProps={{ className: 'fill-tint-1' }} >